Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00189/0.00189, allocations: 102 kB / 21.22 MB, free: 0.6562 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001848/0.001848, allocations: 185.2 kB / 24.51 MB, free: 4.012 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.574/1.574, allocations: 225.6 MB / 253.3 MB, free: 13.05 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2527/0.2527, allocations: 44.91 MB / 353.5 MB, free: 11.83 MB / 286.1 MB
"
[Timeout remaining time 179]
Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo)
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo)
Running command: translateModel(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|y1|y2|y3|y4|y5|clock.y|mux5.y.1.|mux5.y.2.|mux5.y.3.|mux5.y.4.|mux5.y.5.|demux5.y.1.|demux5.y.2.|demux5.y.3.|demux5.y.4.|demux5.y.5.|mux3.y.1.|mux3.y.2.|mux3.y.3.|mux2.y.1.|mux2.y.2.|demux2.y.1.|demux2.y.2.|demux3.y.1.|demux3.y.2.|demux3.y.3.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux")
translateModel(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|y1|y2|y3|y4|y5|clock.y|mux5.y.1.|mux5.y.2.|mux5.y.3.|mux5.y.4.|mux5.y.5.|demux5.y.1.|demux5.y.2.|demux5.y.3.|demux5.y.4.|demux5.y.5.|mux3.y.1.|mux3.y.2.|mux3.y.3.|mux2.y.1.|mux2.y.2.|demux2.y.1.|demux2.y.2.|demux3.y.1.|demux3.y.2.|demux3.y.3.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.002074/0.002074, allocations: 63.89 kB / 497.7 MB, free: 1.02 MB / 350.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4446/0.4467, allocations: 64.29 MB / 0.5488 GB, free: 13.13 MB / 398.1 MB
Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003903/0.4506, allocations: 1.563 MB / 0.5503 GB, free: 11.91 MB / 398.1 MB
Notification: Performance of NFInst.instExpressions: time 0.0001895/0.4508, allocations: 48.3 kB / 0.5504 GB, free: 11.87 MB / 398.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 9.457e-05/0.4509, allocations: 10.12 kB / 0.5504 GB, free: 11.86 MB / 398.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001876/0.4511, allocations: 18.02 kB / 0.5504 GB, free: 11.84 MB / 398.1 MB
Notification: Performance of NFTyping.typeBindings: time 2.858e-05/0.4511, allocations: 4.969 kB / 0.5504 GB, free: 11.84 MB / 398.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0001185/0.4512, allocations: 24.28 kB / 0.5504 GB, free: 11.82 MB / 398.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0001926/0.4514, allocations: 72.16 kB / 0.5505 GB, free: 11.78 MB / 398.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0003245/0.4518, allocations: 90.28 kB / 0.5506 GB, free: 11.71 MB / 398.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 6.269e-05/0.4518, allocations: 38.27 kB / 0.5506 GB, free: 11.69 MB / 398.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 8.753e-05/0.4519, allocations: 38.94 kB / 0.5507 GB, free: 11.66 MB / 398.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.105e-05/0.4519, allocations: 8.062 kB / 0.5507 GB, free: 11.66 MB / 398.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 2.21e-05/0.452, allocations: 8.688 kB / 0.5507 GB, free: 11.66 MB / 398.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001154/0.4521, allocations: 76.36 kB / 0.5508 GB, free: 11.62 MB / 398.1 MB
Notification: Performance of NFVerifyModel.verify: time 9.533e-05/0.4522, allocations: 62.73 kB / 0.5508 GB, free: 11.57 MB / 398.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002793/0.4525, allocations: 156.8 kB / 0.551 GB, free: 11.47 MB / 398.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.4525, allocations: 0 / 0.551 GB, free: 11.47 MB / 398.1 MB
Notification: Performance of FrontEnd: time 2.305e-06/0.4525, allocations: 0 / 0.551 GB, free: 11.47 MB / 398.1 MB
Notification: Performance of Transformations before backend: time 9.348e-06/0.4525, allocations: 0 / 0.551 GB, free: 11.47 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.0006876/0.4532, allocations: 366 kB / 0.5513 GB, free: 11.13 MB / 398.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.509e-05/0.4532, allocations: 10.86 kB / 0.5513 GB, free: 11.13 MB / 398.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 6.457e-05/0.4533, allocations: 19.95 kB / 0.5513 GB, free: 11.12 MB / 398.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002719/0.4535, allocations: 156.8 kB / 0.5515 GB, free: 10.96 MB / 398.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.048e-05/0.4536, allocations: 21.22 kB / 0.5515 GB, free: 10.95 MB / 398.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.345e-05/0.4536, allocations: 16.12 kB / 0.5515 GB, free: 10.95 MB / 398.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003978/0.454, allocations: 192.6 kB / 0.5517 GB, free: 10.83 MB / 398.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.454, allocations: 8.906 kB / 0.5517 GB, free: 10.82 MB / 398.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.046e-05/0.454, allocations: 5.062 kB / 0.5517 GB, free: 10.82 MB / 398.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.4541, allocations: 5.344 kB / 0.5517 GB, free: 10.82 MB / 398.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002513/0.4543, allocations: 126.4 kB / 0.5519 GB, free: 10.76 MB / 398.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008052/0.4551, allocations: 463.4 kB / 0.5523 GB, free: 10.36 MB / 398.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001306/0.4552, allocations: 35.56 kB / 0.5523 GB, free: 10.33 MB / 398.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 8.303e-05/0.4553, allocations: 34.44 kB / 0.5524 GB, free: 10.31 MB / 398.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.133e-05/0.4553, allocations: 3.938 kB / 0.5524 GB, free: 10.3 MB / 398.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.182e-05/0.4554, allocations: 35.81 kB / 0.5524 GB, free: 10.26 MB / 398.1 MB
Notification: Performance of pre-optimization done (n=5): time 1.413e-06/0.4554, allocations: 0 / 0.5524 GB, free: 10.26 MB / 398.1 MB
Notification: Performance of matching and sorting (n=5): time 0.0002926/0.4557, allocations: 74.16 kB / 0.5525 GB, free: 10.21 MB / 398.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/0.4557, allocations: 52.97 kB / 0.5525 GB, free: 10.15 MB / 398.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.4558, allocations: 111.2 kB / 0.5526 GB, free: 10.04 MB / 398.1 MB
Notification: Performance of collectPreVariables (initialization): time 1.951e-05/0.4559, allocations: 25.7 kB / 0.5527 GB, free: 10.01 MB / 398.1 MB
Notification: Performance of collectInitialEqns (initialization): time 9.864e-05/0.456, allocations: 137.2 kB / 0.5528 GB, free: 9.879 MB / 398.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.419e-05/0.456, allocations: 18.11 kB / 0.5528 GB, free: 9.863 MB / 398.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 3.488e-05/0.456, allocations: 18.28 kB / 0.5528 GB, free: 9.844 MB / 398.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001396/0.4562, allocations: 311.9 kB / 0.5531 GB, free: 9.531 MB / 398.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 4.888e-05/0.4562, allocations: 14.64 kB / 0.5531 GB, free: 9.523 MB / 398.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 3.538e-05/0.4562, allocations: 19.58 kB / 0.5531 GB, free: 9.512 MB / 398.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 8.377e-05/0.4563, allocations: 36.84 kB / 0.5532 GB, free: 9.488 MB / 398.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.4563, allocations: 0 / 0.5532 GB, free: 9.488 MB / 398.1 MB
Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001317/0.4565, allocations: 71.67 kB / 0.5532 GB, free: 9.434 MB / 398.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.4565, allocations: 4.344 kB / 0.5533 GB, free: 9.434 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.4565, allocations: 1.125 kB / 0.5533 GB, free: 9.434 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.406e-05/0.4565, allocations: 0 / 0.5533 GB, free: 9.434 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.202e-05/0.4566, allocations: 12.61 kB / 0.5533 GB, free: 9.43 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.4566, allocations: 0 / 0.5533 GB, free: 9.43 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.606e-05/0.4566, allocations: 6.25 kB / 0.5533 GB, free: 9.426 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.4566, allocations: 1.156 kB / 0.5533 GB, free: 9.426 MB / 398.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.0001454/0.4568, allocations: 143.7 kB / 0.5534 GB, free: 9.289 MB / 398.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.119e-05/0.4568, allocations: 14.16 kB / 0.5534 GB, free: 9.277 MB / 398.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.284e-05/0.4568, allocations: 9.312 kB / 0.5534 GB, free: 9.266 MB / 398.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.4568, allocations: 0 / 0.5534 GB, free: 9.266 MB / 398.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.4569, allocations: 1.188 kB / 0.5534 GB, free: 9.266 MB / 398.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.4569, allocations: 0 / 0.5534 GB, free: 9.266 MB / 398.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004622/0.4573, allocations: 334.6 kB / 0.5538 GB, free: 8.945 MB / 398.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.4573, allocations: 0 / 0.5538 GB, free: 8.945 MB / 398.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.582e-05/0.4574, allocations: 12.17 kB / 0.5538 GB, free: 8.941 MB / 398.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 6.152e-06/0.4574, allocations: 5.188 kB / 0.5538 GB, free: 8.938 MB / 398.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.4574, allocations: 4 kB / 0.5538 GB, free: 8.934 MB / 398.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.4574, allocations: 1 kB / 0.5538 GB, free: 8.934 MB / 398.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4574, allocations: 4.062 kB / 0.5538 GB, free: 8.93 MB / 398.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001989/0.4576, allocations: 163 kB / 0.5539 GB, free: 8.777 MB / 398.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 1.253e-05/0.4576, allocations: 6.266 kB / 0.5539 GB, free: 8.773 MB / 398.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.405e-05/0.4576, allocations: 0 / 0.5539 GB, free: 8.773 MB / 398.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.076e-05/0.4577, allocations: 2.25 kB / 0.5539 GB, free: 8.773 MB / 398.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.203e-05/0.4577, allocations: 13.11 kB / 0.554 GB, free: 8.762 MB / 398.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.4577, allocations: 2.25 kB / 0.554 GB, free: 8.762 MB / 398.1 MB
Notification: Performance of sorting global known variables: time 6.817e-05/0.4578, allocations: 88.81 kB / 0.554 GB, free: 8.68 MB / 398.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.4578, allocations: 0 / 0.554 GB, free: 8.68 MB / 398.1 MB
Notification: Performance of remove unused functions: time 0.0002355/0.458, allocations: 25.59 kB / 0.5541 GB, free: 8.668 MB / 398.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.0001286/0.4582, allocations: 90.38 kB / 0.5542 GB, free: 8.582 MB / 398.1 MB
Notification: Performance of simCode: created initialization part: time 0.0001987/0.4583, allocations: 35.41 kB / 0.5542 GB, free: 8.566 MB / 398.1 MB
Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.4584, allocations: 4 kB / 0.5542 GB, free: 8.562 MB / 398.1 MB
Notification: Performance of simCode: created simulation system equations: time 5.324e-05/0.4584, allocations: 23.44 kB / 0.5542 GB, free: 8.551 MB / 398.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003324/0.4587, allocations: 13.89 kB / 0.5542 GB, free: 8.543 MB / 398.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006573/0.4594, allocations: 265.7 kB / 0.5545 GB, free: 8.34 MB / 398.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004267/0.4598, allocations: 0.732 MB / 0.5552 GB, free: 7.613 MB / 398.1 MB
Notification: Performance of simCode: alias equations: time 4.127e-05/0.4599, allocations: 3.25 kB / 0.5552 GB, free: 7.613 MB / 398.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.364e-05/0.4599, allocations: 18.77 kB / 0.5552 GB, free: 7.598 MB / 398.1 MB
Notification: Performance of SimCode: time 2.8e-07/0.4599, allocations: 0 / 0.5552 GB, free: 7.598 MB / 398.1 MB
Notification: Performance of Templates: time 0.003586/0.4635, allocations: 0.7043 MB / 0.5559 GB, free: 7.246 MB / 398.1 MB
"
[Timeout remaining time 660]
make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.makefile [Timeout 660]
(rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 480]
diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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: 5.742230404168367]