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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_4.0.0_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_4.0.0_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009596/0.0009596, allocations: 180 kB / 8.519 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.19/1.19, allocations: 221.4 MB / 230.3 MB, free: 7.621 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009628/0.0009628, allocations: 94.34 kB / 281.2 MB, free: 5.461 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2054/0.2054, allocations: 44.15 MB / 376.1 MB, free: 3.227 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.105e-06/8.145e-06, allocations: 4.219 kB / 444 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1317, allocations: 61.91 MB / 0.4941 GB, free: 1.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3949/0.5267, allocations: 85.19 MB / 0.5773 GB, free: 11.55 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002022/0.527, allocations: 60.09 kB / 0.5773 GB, free: 11.52 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.003237/0.5302, allocations: 1.175 MB / 0.5785 GB, free: 10.4 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.278e-05/0.5303, allocations: 10.89 kB / 0.5785 GB, free: 10.39 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.0003512/0.5306, allocations: 402.3 kB / 0.5789 GB, free: 9.953 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.962e-05/0.5307, allocations: 11.97 kB / 0.5789 GB, free: 9.941 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.203e-05/0.5307, allocations: 19.81 kB / 0.5789 GB, free: 9.922 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000234/0.531, allocations: 222.6 kB / 0.5791 GB, free: 9.668 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.531, allocations: 4 kB / 0.5791 GB, free: 9.664 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.943e-05/0.531, allocations: 12 kB / 0.5791 GB, free: 9.652 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001813/0.5312, allocations: 108.7 kB / 0.5792 GB, free: 9.547 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002219/0.5314, allocations: 156.2 kB / 0.5794 GB, free: 9.391 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.5314, allocations: 7.984 kB / 0.5794 GB, free: 9.383 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.35e-05/0.5315, allocations: 0 / 0.5794 GB, free: 9.383 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.5315, allocations: 4 kB / 0.5794 GB, free: 9.379 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005679/0.532, allocations: 472 kB / 0.5798 GB, free: 8.879 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.472e-05/0.5321, allocations: 34.48 kB / 0.5799 GB, free: 8.836 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.437e-05/0.5322, allocations: 16.98 kB / 0.5799 GB, free: 8.816 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.576e-06/0.5322, allocations: 4 kB / 0.5799 GB, free: 8.812 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.98e-05/0.5322, allocations: 34.5 kB / 0.5799 GB, free: 8.77 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 1.072e-06/0.5322, allocations: 0 / 0.5799 GB, free: 8.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001302/0.5323, allocations: 45.69 kB / 0.58 GB, free: 8.719 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.014e-05/0.5324, allocations: 63.41 kB / 0.58 GB, free: 8.645 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.858e-05/0.5325, allocations: 96.91 kB / 0.5801 GB, free: 8.543 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.5325, allocations: 29.7 kB / 0.5802 GB, free: 8.508 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.282e-05/0.5326, allocations: 132 kB / 0.5803 GB, free: 8.375 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.92e-05/0.5326, allocations: 15.72 kB / 0.5803 GB, free: 8.359 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.765e-06/0.5326, allocations: 0 / 0.5803 GB, free: 8.359 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.926e-05/0.5327, allocations: 314.8 kB / 0.5806 GB, free: 8.043 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.52e-05/0.5327, allocations: 8 kB / 0.5806 GB, free: 8.035 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.131e-05/0.5327, allocations: 8 kB / 0.5806 GB, free: 8.027 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.063e-05/0.5328, allocations: 11.98 kB / 0.5806 GB, free: 8.016 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.5328, allocations: 0 / 0.5806 GB, free: 8.016 MB / 394.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.673e-05/0.5328, allocations: 53.55 kB / 0.5807 GB, free: 7.957 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.5329, allocations: 4 kB / 0.5807 GB, free: 7.953 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.5329, allocations: 0 / 0.5807 GB, free: 7.953 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.091e-05/0.5329, allocations: 0 / 0.5807 GB, free: 7.953 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.166e-05/0.533, allocations: 12.2 kB / 0.5807 GB, free: 7.941 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.101e-06/0.533, allocations: 4.844 kB / 0.5807 GB, free: 7.938 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.722e-05/0.533, allocations: 7.938 kB / 0.5807 GB, free: 7.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.533, allocations: 4 kB / 0.5807 GB, free: 7.926 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 5.906e-05/0.5331, allocations: 104.9 kB / 0.5808 GB, free: 7.816 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.443e-05/0.5331, allocations: 0 / 0.5808 GB, free: 7.816 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.756e-05/0.5332, allocations: 16.05 kB / 0.5808 GB, free: 7.801 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.5332, allocations: 0 / 0.5808 GB, free: 7.801 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.5332, allocations: 0 / 0.5808 GB, free: 7.801 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.5332, allocations: 3.906 kB / 0.5808 GB, free: 7.797 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002512/0.5334, allocations: 315 kB / 0.5811 GB, free: 7.445 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.5334, allocations: 320 / 0.5811 GB, free: 7.445 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.352e-05/0.5335, allocations: 19.98 kB / 0.5811 GB, free: 7.426 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.5335, allocations: 4 kB / 0.5812 GB, free: 7.422 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.5335, allocations: 0 / 0.5812 GB, free: 7.422 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.5335, allocations: 3.906 kB / 0.5812 GB, free: 7.418 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.5335, allocations: 0 / 0.5812 GB, free: 7.418 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001048/0.5337, allocations: 151.4 kB / 0.5813 GB, free: 7.254 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.163e-05/0.5337, allocations: 77.11 kB / 0.5814 GB, free: 7.16 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.555e-05/0.5337, allocations: 4 kB / 0.5814 GB, free: 7.156 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.759e-05/0.5338, allocations: 0 / 0.5814 GB, free: 7.156 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.185e-05/0.5338, allocations: 15.89 kB / 0.5814 GB, free: 7.141 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.5338, allocations: 0 / 0.5814 GB, free: 7.141 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.901e-05/0.5339, allocations: 79.28 kB / 0.5815 GB, free: 7.062 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002157/0.5341, allocations: 23.84 kB / 0.5815 GB, free: 7.039 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.0001017/0.5342, allocations: 95.25 kB / 0.5816 GB, free: 6.934 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.002e-05/0.5343, allocations: 20 kB / 0.5816 GB, free: 6.914 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.5343, allocations: 0 / 0.5816 GB, free: 6.914 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.109e-05/0.5343, allocations: 11.94 kB / 0.5816 GB, free: 6.902 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001787/0.5345, allocations: 19.89 kB / 0.5816 GB, free: 6.883 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003906/0.5349, allocations: 167.8 kB / 0.5818 GB, free: 6.691 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003505/0.5353, allocations: 0.7393 MB / 0.5825 GB, free: 5.926 MB / 394.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5353, allocations: 3.938 kB / 0.5825 GB, free: 5.922 MB / 394.7 MB Notification: Performance of Templates: time 0.002568/0.5378, allocations: 0.6009 MB / 0.5831 GB, free: 5.328 MB / 394.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.makefile (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) 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","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches