Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux") translateModel(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001585/0.001585, allocations: 174.4 kB / 8.148 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.744/1.744, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001324/0.001324, allocations: 87.42 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2712/0.2712, allocations: 43.49 MB / 353.2 MB, free: 2.055 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.606e-06/8.846e-06, allocations: 0 / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2911, allocations: 58.84 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1694/0.4606, allocations: 84.06 MB / 0.5475 GB, free: 15.02 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002743/0.4609, allocations: 55.97 kB / 0.5475 GB, free: 14.96 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.005393/0.4663, allocations: 1.163 MB / 0.5486 GB, free: 13.8 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.497e-05/0.4664, allocations: 4 kB / 0.5487 GB, free: 13.8 MB / 394.7 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.000518/0.4669, allocations: 409.5 kB / 0.549 GB, free: 13.36 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.983e-05/0.467, allocations: 15.97 kB / 0.5491 GB, free: 13.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.093e-05/0.4671, allocations: 15.81 kB / 0.5491 GB, free: 13.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003231/0.4674, allocations: 218.8 kB / 0.5493 GB, free: 13.07 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/0.4674, allocations: 4 kB / 0.5493 GB, free: 13.07 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.373e-05/0.4675, allocations: 23.92 kB / 0.5493 GB, free: 13.04 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003095/0.4678, allocations: 112.6 kB / 0.5494 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003979/0.4682, allocations: 160.2 kB / 0.5496 GB, free: 12.77 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.4682, allocations: 0 / 0.5496 GB, free: 12.77 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.014e-05/0.4683, allocations: 0 / 0.5496 GB, free: 12.77 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.334e-05/0.4683, allocations: 4 kB / 0.5496 GB, free: 12.77 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008768/0.4692, allocations: 471.9 kB / 0.55 GB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.548e-05/0.4693, allocations: 30.58 kB / 0.55 GB, free: 12.23 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.785e-05/0.4693, allocations: 20.98 kB / 0.5501 GB, free: 12.21 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.316e-06/0.4694, allocations: 0 / 0.5501 GB, free: 12.21 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.4694, allocations: 34.56 kB / 0.5501 GB, free: 12.16 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 1.804e-06/0.4694, allocations: 0 / 0.5501 GB, free: 12.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001828/0.4696, allocations: 49.69 kB / 0.5501 GB, free: 12.11 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.4697, allocations: 63.25 kB / 0.5502 GB, free: 12.04 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.366e-05/0.4698, allocations: 97 kB / 0.5503 GB, free: 11.93 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.4698, allocations: 25.7 kB / 0.5503 GB, free: 11.9 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.4699, allocations: 202.3 kB / 0.5505 GB, free: 11.7 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.762e-05/0.4699, allocations: 15.8 kB / 0.5505 GB, free: 11.69 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.727e-06/0.47, allocations: 0 / 0.5505 GB, free: 11.69 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.4701, allocations: 318.8 kB / 0.5508 GB, free: 11.37 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.195e-05/0.4701, allocations: 4 kB / 0.5508 GB, free: 11.36 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.232e-05/0.4702, allocations: 8 kB / 0.5509 GB, free: 11.36 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.624e-05/0.4702, allocations: 4 kB / 0.5509 GB, free: 11.35 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4702, allocations: 0 / 0.5509 GB, free: 11.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001052/0.4703, allocations: 49.69 kB / 0.5509 GB, free: 11.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.4704, allocations: 4 kB / 0.5509 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.4704, allocations: 0 / 0.5509 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.91e-05/0.4704, allocations: 7.906 kB / 0.5509 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.4706, allocations: 15.94 kB / 0.5509 GB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.588e-06/0.4706, allocations: 0 / 0.5509 GB, free: 11.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.073e-05/0.4706, allocations: 7.984 kB / 0.5509 GB, free: 11.26 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.4707, allocations: 0 / 0.5509 GB, free: 11.26 MB / 394.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.794e-05/0.4707, allocations: 27.11 kB / 0.551 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.97e-05/0.4708, allocations: 7.906 kB / 0.551 GB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.166e-05/0.4708, allocations: 4.062 kB / 0.551 GB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.4708, allocations: 0 / 0.551 GB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4708, allocations: 11.94 kB / 0.551 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.4709, allocations: 0 / 0.551 GB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000401/0.4713, allocations: 319.1 kB / 0.5513 GB, free: 10.85 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.4713, allocations: 4 kB / 0.5513 GB, free: 10.85 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.692e-05/0.4714, allocations: 8 kB / 0.5513 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.4714, allocations: 0 / 0.5513 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.722e-06/0.4714, allocations: 0 / 0.5513 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.4714, allocations: 0 / 0.5513 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4714, allocations: 4 kB / 0.5513 GB, free: 10.84 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001496/0.4716, allocations: 147.5 kB / 0.5514 GB, free: 10.68 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.548e-05/0.4717, allocations: 85.02 kB / 0.5515 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.771e-05/0.4717, allocations: 3.984 kB / 0.5515 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.844e-05/0.4718, allocations: 4 kB / 0.5515 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.126e-05/0.4718, allocations: 0 / 0.5515 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-06/0.4719, allocations: 4 kB / 0.5515 GB, free: 10.56 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.401e-05/0.4719, allocations: 91.27 kB / 0.5516 GB, free: 10.47 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002663/0.4722, allocations: 23.75 kB / 0.5516 GB, free: 10.45 MB / 394.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001191/0.4723, allocations: 95.19 kB / 0.5517 GB, free: 10.34 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001064/0.4725, allocations: 20 kB / 0.5518 GB, free: 10.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.4725, allocations: 0 / 0.5518 GB, free: 10.32 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.655e-05/0.4725, allocations: 12 kB / 0.5518 GB, free: 10.31 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002343/0.4728, allocations: 9.688 kB / 0.5518 GB, free: 10.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006252/0.4734, allocations: 213.3 kB / 0.552 GB, free: 10.06 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004303/0.4738, allocations: 0.7393 MB / 0.5527 GB, free: 9.293 MB / 394.7 MB Notification: Performance of SimCode: time 7.91e-07/0.4739, allocations: 4 kB / 0.5527 GB, free: 9.289 MB / 394.7 MB Notification: Performance of Templates: time 0.003581/0.4775, allocations: 1.227 MB / 0.5539 GB, free: 8.062 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches