Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002229/0.002234, allocations: 186.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.924/1.924, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001108/0.001108, allocations: 92.42 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5034/0.5034, allocations: 43.54 MB / 362.7 MB, free: 51.97 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004612/0.0004613, allocations: 11.94 kB / 431.4 MB, free: 5.973 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1216, allocations: 58.85 MB / 490.2 MB, free: 11.03 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4478/0.5695, allocations: 84.87 MB / 0.5616 GB, free: 1.707 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002184/0.5697, allocations: 63.97 kB / 0.5617 GB, free: 1.645 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004562/0.5743, allocations: 1.491 MB / 0.5631 GB, free: 176 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.5744, allocations: 0 / 0.5631 GB, free: 176 kB / 378.7 MB Notification: Performance of Transformations before backend: time 1.546e-05/0.5744, allocations: 8 kB / 0.5631 GB, free: 168 kB / 378.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.0005479/0.575, allocations: 411 kB / 0.5635 GB, free: 15.71 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.575, allocations: 8.031 kB / 0.5635 GB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.059e-05/0.5751, allocations: 25.91 kB / 0.5636 GB, free: 15.69 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003357/0.5754, allocations: 214.8 kB / 0.5638 GB, free: 15.44 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.217e-05/0.5755, allocations: 15.5 kB / 0.5638 GB, free: 15.43 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.552e-05/0.5755, allocations: 19.94 kB / 0.5638 GB, free: 15.41 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005604/0.5761, allocations: 200.3 kB / 0.564 GB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.5761, allocations: 0 / 0.564 GB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.556e-05/0.5762, allocations: 13.03 kB / 0.564 GB, free: 15.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.679e-06/0.5762, allocations: 4 kB / 0.564 GB, free: 15.2 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003962/0.5766, allocations: 123.7 kB / 0.5641 GB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009959/0.5776, allocations: 0.5036 MB / 0.5646 GB, free: 14.52 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001591/0.5778, allocations: 42.56 kB / 0.5647 GB, free: 14.47 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.5779, allocations: 0 / 0.5647 GB, free: 14.47 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.443e-05/0.5779, allocations: 34.56 kB / 0.5647 GB, free: 14.43 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 1.803e-06/0.5779, allocations: 0 / 0.5647 GB, free: 14.43 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.000384/0.5783, allocations: 85.64 kB / 0.5648 GB, free: 14.34 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.627e-05/0.5784, allocations: 51.41 kB / 0.5648 GB, free: 14.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.5785, allocations: 101 kB / 0.5649 GB, free: 14.17 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.856e-05/0.5785, allocations: 30.47 kB / 0.5649 GB, free: 14.13 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.5787, allocations: 206.3 kB / 0.5651 GB, free: 13.93 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.91e-05/0.5787, allocations: 15.81 kB / 0.5652 GB, free: 13.91 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.777e-06/0.5787, allocations: 0 / 0.5652 GB, free: 13.91 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.5789, allocations: 314.8 kB / 0.5655 GB, free: 13.6 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.829e-05/0.5789, allocations: 15.98 kB / 0.5655 GB, free: 13.58 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.172e-05/0.579, allocations: 11.98 kB / 0.5655 GB, free: 13.57 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.847e-05/0.5791, allocations: 16.88 kB / 0.5655 GB, free: 13.55 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.5792, allocations: 4 kB / 0.5655 GB, free: 13.55 MB / 394.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000214/0.5794, allocations: 65.62 kB / 0.5656 GB, free: 13.48 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.5794, allocations: 7.984 kB / 0.5656 GB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.5794, allocations: 0 / 0.5656 GB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.5795, allocations: 0 / 0.5656 GB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001278/0.5796, allocations: 12 kB / 0.5656 GB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.5796, allocations: 1.062 kB / 0.5656 GB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.1e-05/0.5797, allocations: 4.219 kB / 0.5656 GB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.219e-05/0.5797, allocations: 4 kB / 0.5656 GB, free: 13.45 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001756/0.5799, allocations: 141.7 kB / 0.5657 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.527e-05/0.5799, allocations: 7.906 kB / 0.5657 GB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.327e-05/0.58, allocations: 8.719 kB / 0.5657 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.58, allocations: 0 / 0.5657 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.58, allocations: 0 / 0.5657 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.58, allocations: 0 / 0.5657 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000629/0.5806, allocations: 380.4 kB / 0.5661 GB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.5807, allocations: 0 / 0.5661 GB, free: 12.87 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.124e-05/0.5808, allocations: 8 kB / 0.5661 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.5808, allocations: 0 / 0.5661 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.837e-06/0.5808, allocations: 3.938 kB / 0.5661 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.8e-06/0.5808, allocations: 3.984 kB / 0.5661 GB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5808, allocations: 0 / 0.5661 GB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002901/0.5811, allocations: 171.4 kB / 0.5663 GB, free: 12.67 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.955e-05/0.5812, allocations: 81.02 kB / 0.5664 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.064e-05/0.5812, allocations: 6.25 kB / 0.5664 GB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.012e-05/0.5813, allocations: 3.984 kB / 0.5664 GB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.2e-05/0.5814, allocations: 7.984 kB / 0.5664 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-06/0.5814, allocations: 0 / 0.5664 GB, free: 12.55 MB / 394.7 MB Notification: Performance of sorting global known variables: time 7.941e-05/0.5815, allocations: 95.27 kB / 0.5665 GB, free: 12.46 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5815, allocations: 0 / 0.5665 GB, free: 12.46 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003116/0.5818, allocations: 27.75 kB / 0.5665 GB, free: 12.43 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 () * 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 (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.0001366/0.582, allocations: 91.25 kB / 0.5666 GB, free: 12.34 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002298/0.5822, allocations: 35.92 kB / 0.5666 GB, free: 12.3 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.5822, allocations: 0 / 0.5666 GB, free: 12.3 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 8.554e-05/0.5823, allocations: 23.98 kB / 0.5666 GB, free: 12.28 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002473/0.5826, allocations: 15.95 kB / 0.5667 GB, free: 12.26 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008756/0.5835, allocations: 358.5 kB / 0.567 GB, free: 11.89 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004164/0.5839, allocations: 0.7355 MB / 0.5677 GB, free: 11.12 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.049e-05/0.584, allocations: 11.44 kB / 0.5677 GB, free: 11.12 MB / 394.7 MB Notification: Performance of SimCode: time 1.663e-06/0.584, allocations: 0 / 0.5677 GB, free: 11.12 MB / 394.7 MB Notification: Performance of Templates: time 0.004032/0.588, allocations: 1.206 MB / 0.5689 GB, free: 9.922 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/jenkins1/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