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.001492/0.001492, allocations: 105.5 kB / 19.81 MB, free: 2.516 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.001918/0.001918, allocations: 187.7 kB / 22.97 MB, free: 5.617 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.528/1.528, allocations: 225.6 MB / 251.6 MB, free: 13.33 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.2405/0.2405, allocations: 44.91 MB / 351.6 MB, free: 12.23 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.002063/0.002063, allocations: 63.91 kB / 495.2 MB, free: 1.867 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4405/0.4426, allocations: 64.25 MB / 0.5464 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.00342/0.446, allocations: 1.567 MB / 0.5479 GB, free: 11.97 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001615/0.4462, allocations: 51.66 kB / 0.548 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.838e-05/0.4462, allocations: 6.344 kB / 0.548 GB, free: 11.92 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000171/0.4464, allocations: 22.41 kB / 0.548 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.454e-05/0.4464, allocations: 3.938 kB / 0.548 GB, free: 11.9 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001019/0.4465, allocations: 25.28 kB / 0.548 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001409/0.4467, allocations: 64.81 kB / 0.5481 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003023/0.447, allocations: 88.42 kB / 0.5482 GB, free: 11.78 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.863e-05/0.447, allocations: 37.5 kB / 0.5482 GB, free: 11.76 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.685e-05/0.4471, allocations: 43.47 kB / 0.5482 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.61e-05/0.4471, allocations: 8.688 kB / 0.5482 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.628e-05/0.4471, allocations: 7.375 kB / 0.5483 GB, free: 11.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.4472, allocations: 72.81 kB / 0.5483 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.553e-05/0.4473, allocations: 63.23 kB / 0.5484 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002218/0.4475, allocations: 155.2 kB / 0.5485 GB, free: 11.54 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/0.4476, allocations: 1.031 kB / 0.5485 GB, free: 11.54 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.4476, allocations: 0 / 0.5485 GB, free: 11.54 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.4476, allocations: 0 / 0.5485 GB, free: 11.54 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.0006284/0.4482, allocations: 438.3 kB / 0.5489 GB, free: 11.11 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.4482, allocations: 9.938 kB / 0.549 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.652e-05/0.4483, allocations: 20.2 kB / 0.549 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002704/0.4486, allocations: 219.2 kB / 0.5492 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/0.4486, allocations: 12.94 kB / 0.5492 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.388e-05/0.4486, allocations: 19.75 kB / 0.5492 GB, free: 10.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003976/0.449, allocations: 201.8 kB / 0.5494 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.702e-05/0.449, allocations: 3.938 kB / 0.5494 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.31e-05/0.4491, allocations: 6.25 kB / 0.5494 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.828e-06/0.4491, allocations: 4 kB / 0.5494 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002594/0.4493, allocations: 123 kB / 0.5495 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007518/0.4501, allocations: 0.4888 MB / 0.55 GB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.856e-05/0.4502, allocations: 36.47 kB / 0.5501 GB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.236e-05/0.4503, allocations: 30.5 kB / 0.5501 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.368e-06/0.4503, allocations: 3.938 kB / 0.5501 GB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.4503, allocations: 39.89 kB / 0.5501 GB, free: 10.12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.092e-06/0.4503, allocations: 0 / 0.5501 GB, free: 10.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.000258/0.4506, allocations: 77.7 kB / 0.5502 GB, free: 10.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.4506, allocations: 56.83 kB / 0.5503 GB, free: 10 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001071/0.4507, allocations: 104 kB / 0.5504 GB, free: 9.902 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.4507, allocations: 29.69 kB / 0.5504 GB, free: 9.867 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.4508, allocations: 137.3 kB / 0.5505 GB, free: 9.738 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.333e-05/0.4509, allocations: 17.44 kB / 0.5505 GB, free: 9.723 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.756e-05/0.4509, allocations: 21.41 kB / 0.5505 GB, free: 9.699 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.4511, allocations: 316.3 kB / 0.5508 GB, free: 9.383 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.269e-05/0.4511, allocations: 11.34 kB / 0.5509 GB, free: 9.379 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.423e-05/0.4511, allocations: 10.58 kB / 0.5509 GB, free: 9.375 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.502e-05/0.4512, allocations: 33.09 kB / 0.5509 GB, free: 9.355 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.4512, allocations: 0 / 0.5509 GB, free: 9.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001231/0.4513, allocations: 75.58 kB / 0.551 GB, free: 9.297 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.4514, allocations: 7.5 kB / 0.551 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.4514, allocations: 5.922 kB / 0.551 GB, free: 9.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.4514, allocations: 4 kB / 0.551 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.756e-05/0.4515, allocations: 12.55 kB / 0.551 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.4515, allocations: 0 / 0.551 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.264e-05/0.4515, allocations: 1.344 kB / 0.551 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.818e-06/0.4515, allocations: 6.516 kB / 0.551 GB, free: 9.281 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.0001282/0.4516, allocations: 139.2 kB / 0.5511 GB, free: 9.148 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.554e-05/0.4517, allocations: 10.55 kB / 0.5512 GB, free: 9.141 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.793e-05/0.4517, allocations: 9.25 kB / 0.5512 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.756e-06/0.4517, allocations: 0 / 0.5512 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.4517, allocations: 1.469 kB / 0.5512 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.4517, allocations: 0 / 0.5512 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004284/0.4521, allocations: 371.3 kB / 0.5515 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.4521, allocations: 0 / 0.5515 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.841e-05/0.4522, allocations: 8.031 kB / 0.5515 GB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.4522, allocations: 5.156 kB / 0.5515 GB, free: 8.766 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.595e-06/0.4522, allocations: 0 / 0.5515 GB, free: 8.766 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.345e-06/0.4522, allocations: 1.125 kB / 0.5515 GB, free: 8.766 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.4522, allocations: 0 / 0.5515 GB, free: 8.766 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001861/0.4524, allocations: 165.8 kB / 0.5517 GB, free: 8.609 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.154e-05/0.4524, allocations: 82.66 kB / 0.5518 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.247e-05/0.4524, allocations: 1.25 kB / 0.5518 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.18e-05/0.4525, allocations: 6.312 kB / 0.5518 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.403e-05/0.4525, allocations: 5.234 kB / 0.5518 GB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-06/0.4525, allocations: 1.125 kB / 0.5518 GB, free: 8.504 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.57e-05/0.4526, allocations: 90.41 kB / 0.5519 GB, free: 8.422 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4526, allocations: 0 / 0.5519 GB, free: 8.422 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002211/0.4528, allocations: 25.38 kB / 0.5519 GB, free: 8.41 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.0001112/0.4529, allocations: 103.2 kB / 0.552 GB, free: 8.312 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001716/0.4531, allocations: 38.55 kB / 0.552 GB, free: 8.293 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.4531, allocations: 5.062 kB / 0.552 GB, free: 8.289 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.309e-05/0.4531, allocations: 18.73 kB / 0.552 GB, free: 8.281 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.4535, allocations: 5.469 kB / 0.5521 GB, free: 8.281 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007551/0.4543, allocations: 270.9 kB / 0.5523 GB, free: 8.082 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004995/0.4548, allocations: 0.7321 MB / 0.553 GB, free: 7.355 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.673e-05/0.4548, allocations: 3.5 kB / 0.553 GB, free: 7.355 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.082e-05/0.4548, allocations: 13.72 kB / 0.553 GB, free: 7.344 MB / 398.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4548, allocations: 0 / 0.553 GB, free: 7.344 MB / 398.1 MB Notification: Performance of Templates: time 0.003796/0.4586, allocations: 0.6976 MB / 0.5537 GB, free: 6.996 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.465120267122984]