Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001349/0.001349, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001467/0.001467, allocations: 205.4 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 230.5 MB / 257.4 MB, free: 7.73 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2203/0.2203, allocations: 46.96 MB / 360.8 MB, free: 3.902 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002536/0.002536, allocations: 75.88 kB / 0.4961 GB, free: 7.535 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3578/0.3603, allocations: 66.09 MB / 0.5607 GB, free: 4.031 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002974/0.3633, allocations: 1.531 MB / 0.5622 GB, free: 2.492 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002595/0.3635, allocations: 67.69 kB / 0.5622 GB, free: 2.426 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.546e-05/0.3636, allocations: 3.938 kB / 0.5623 GB, free: 2.422 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001299/0.3637, allocations: 19.84 kB / 0.5623 GB, free: 2.402 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.226e-05/0.3637, allocations: 3.938 kB / 0.5623 GB, free: 2.398 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001397/0.3639, allocations: 27.92 kB / 0.5623 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001266/0.364, allocations: 67.88 kB / 0.5624 GB, free: 2.305 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002551/0.3643, allocations: 93.42 kB / 0.5625 GB, free: 2.207 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.474e-05/0.3643, allocations: 39.86 kB / 0.5625 GB, free: 2.168 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.548e-05/0.3644, allocations: 39.83 kB / 0.5625 GB, free: 2.129 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.423e-05/0.3644, allocations: 8 kB / 0.5625 GB, free: 2.121 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.137e-05/0.3644, allocations: 8 kB / 0.5625 GB, free: 2.113 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.037e-05/0.3645, allocations: 63.83 kB / 0.5626 GB, free: 2.051 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.455e-05/0.3646, allocations: 55.67 kB / 0.5627 GB, free: 1.996 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002229/0.3648, allocations: 159.2 kB / 0.5628 GB, free: 1.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3648, allocations: 0 / 0.5628 GB, free: 1.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3648, allocations: 0 / 0.5628 GB, free: 1.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.992e-06/0.3648, allocations: 0 / 0.5628 GB, free: 1.84 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0005589/0.3654, allocations: 370.1 kB / 0.5632 GB, free: 1.449 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.097e-05/0.3655, allocations: 12.03 kB / 0.5632 GB, free: 1.438 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001073/0.3656, allocations: 63.11 kB / 0.5632 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.485e-05/0.3656, allocations: 20.84 kB / 0.5633 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002728/0.3659, allocations: 158.2 kB / 0.5634 GB, free: 1.164 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.385e-05/0.3659, allocations: 20.81 kB / 0.5634 GB, free: 1.145 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.899e-05/0.3659, allocations: 20.36 kB / 0.5634 GB, free: 1.125 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000359/0.3663, allocations: 211.5 kB / 0.5637 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.3663, allocations: 0 / 0.5637 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.911e-05/0.3663, allocations: 16 kB / 0.5637 GB, free: 0.8984 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.3663, allocations: 4 kB / 0.5637 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000231/0.3666, allocations: 129.7 kB / 0.5638 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006574/0.3672, allocations: 458.9 kB / 0.5642 GB, free: 284 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.867e-05/0.3673, allocations: 38.5 kB / 0.5643 GB, free: 236 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.432e-05/0.3674, allocations: 28.97 kB / 0.5643 GB, free: 204 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.481e-05/0.3674, allocations: 8 kB / 0.5643 GB, free: 196 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/0.3674, allocations: 30.56 kB / 0.5643 GB, free: 156 kB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.062e-06/0.3674, allocations: 0 / 0.5643 GB, free: 156 kB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002441/0.3677, allocations: 73.62 kB / 0.5644 GB, free: 76 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.247e-05/0.3677, allocations: 51.41 kB / 0.5645 GB, free: 12 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.3678, allocations: 113.9 kB / 0.5646 GB, free: 15.89 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.3678, allocations: 29.64 kB / 0.5646 GB, free: 15.85 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.528e-05/0.3679, allocations: 148.1 kB / 0.5647 GB, free: 15.7 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.901e-05/0.368, allocations: 11.89 kB / 0.5647 GB, free: 15.69 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.492e-05/0.368, allocations: 21.72 kB / 0.5648 GB, free: 15.66 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.3682, allocations: 322.8 kB / 0.5651 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.097e-05/0.3682, allocations: 7.984 kB / 0.5651 GB, free: 15.33 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.66e-05/0.3682, allocations: 15.98 kB / 0.5651 GB, free: 15.32 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.147e-05/0.3683, allocations: 33.22 kB / 0.5651 GB, free: 15.28 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.3683, allocations: 0 / 0.5651 GB, free: 15.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001249/0.3684, allocations: 65.64 kB / 0.5652 GB, free: 15.21 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.3685, allocations: 4 kB / 0.5652 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.3685, allocations: 0 / 0.5652 GB, free: 15.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.322e-05/0.3685, allocations: 4 kB / 0.5652 GB, free: 15.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.06e-05/0.3686, allocations: 15.92 kB / 0.5652 GB, free: 15.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.3686, allocations: 4 kB / 0.5652 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.833e-05/0.3686, allocations: 7.938 kB / 0.5652 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.272e-06/0.3686, allocations: 0 / 0.5652 GB, free: 15.18 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001214/0.3687, allocations: 137.8 kB / 0.5654 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.349e-05/0.3687, allocations: 4 kB / 0.5654 GB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.192e-05/0.3688, allocations: 12 kB / 0.5654 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.3688, allocations: 0 / 0.5654 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-06/0.3688, allocations: 0 / 0.5654 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.3688, allocations: 4 kB / 0.5654 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004059/0.3692, allocations: 345.5 kB / 0.5657 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3692, allocations: 0 / 0.5657 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.245e-05/0.3692, allocations: 8 kB / 0.5657 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.3692, allocations: 4 kB / 0.5657 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.752e-06/0.3692, allocations: 0 / 0.5657 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3692, allocations: 0 / 0.5657 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3692, allocations: 4.25 kB / 0.5657 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001736/0.3694, allocations: 159.7 kB / 0.5659 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.302e-05/0.3694, allocations: 15.95 kB / 0.5659 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.374e-05/0.3694, allocations: 4 kB / 0.5659 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.398e-05/0.3695, allocations: 3.984 kB / 0.5659 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.349e-05/0.3695, allocations: 7.938 kB / 0.5659 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.796e-06/0.3695, allocations: 0 / 0.5659 GB, free: 14.4 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.919e-05/0.3696, allocations: 95.25 kB / 0.566 GB, free: 14.31 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3696, allocations: 0 / 0.566 GB, free: 14.31 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000228/0.3698, allocations: 27.78 kB / 0.566 GB, free: 14.28 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005749/0.3704, allocations: 0.7007 MB / 0.5667 GB, free: 13.55 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001361/0.3705, allocations: 43.97 kB / 0.5667 GB, free: 13.51 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.3705, allocations: 0 / 0.5667 GB, free: 13.51 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.361e-05/0.3706, allocations: 15.98 kB / 0.5668 GB, free: 13.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003175/0.3709, allocations: 11.94 kB / 0.5668 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00159/0.3725, allocations: 1.442 MB / 0.5682 GB, free: 11.96 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001223/0.3726, allocations: 122.9 kB / 0.5683 GB, free: 11.82 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.516e-05/0.3726, allocations: 15.7 kB / 0.5683 GB, free: 11.81 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.708e-05/0.3727, allocations: 51.41 kB / 0.5684 GB, free: 11.76 MB / 414.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3727, allocations: 112 / 0.5684 GB, free: 11.76 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02733/0.4, allocations: 2.525 MB / 0.5708 GB, free: 9.348 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/11.1, allocations: 4 kB / 0.5708 GB, free: 9.344 MB / 414.1 MB " [Timeout remaining time 649] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.943982922006398]