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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.491/1.491, allocations: 221.5 MB / 230.7 MB, free: 7.512 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.0008335/0.0008337, allocations: 88.39 kB / 281.6 MB, free: 5.262 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.2012/0.2012, allocations: 44.14 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.284e-05/1.284e-05, allocations: 224 / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1256, allocations: 61.91 MB / 0.4947 GB, free: 1.262 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3694/0.4951, allocations: 85.26 MB / 0.5779 GB, free: 11.27 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001792/0.4953, allocations: 59.97 kB / 0.578 GB, free: 11.21 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003439/0.4987, allocations: 1.475 MB / 0.5794 GB, free: 9.742 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.4988, allocations: 4 kB / 0.5794 GB, free: 9.738 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.278e-05/0.4988, allocations: 6.953 kB / 0.5794 GB, free: 9.734 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.0004401/0.4992, allocations: 398.4 kB / 0.5798 GB, free: 9.297 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.4993, allocations: 11.98 kB / 0.5798 GB, free: 9.285 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.69e-05/0.4994, allocations: 19.81 kB / 0.5798 GB, free: 9.266 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002342/0.4996, allocations: 222.6 kB / 0.5801 GB, free: 9.012 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.518e-05/0.4996, allocations: 8.797 kB / 0.5801 GB, free: 9.004 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.325e-05/0.4996, allocations: 12 kB / 0.5801 GB, free: 8.992 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001883/0.4998, allocations: 96.72 kB / 0.5802 GB, free: 8.898 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002607/0.5001, allocations: 160.2 kB / 0.5803 GB, free: 8.738 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.5001, allocations: 4 kB / 0.5803 GB, free: 8.734 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.5002, allocations: 0 / 0.5803 GB, free: 8.734 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.5002, allocations: 7.984 kB / 0.5803 GB, free: 8.727 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006986/0.5009, allocations: 464 kB / 0.5808 GB, free: 8.234 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.909e-05/0.501, allocations: 37.8 kB / 0.5808 GB, free: 8.191 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.32e-05/0.501, allocations: 24.92 kB / 0.5808 GB, free: 8.164 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.592e-05/0.5011, allocations: 3.953 kB / 0.5808 GB, free: 8.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.5011, allocations: 30.56 kB / 0.5809 GB, free: 8.121 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 1.202e-06/0.5011, allocations: 0 / 0.5809 GB, free: 8.121 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001709/0.5013, allocations: 61.53 kB / 0.5809 GB, free: 8.055 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.649e-05/0.5013, allocations: 51.41 kB / 0.581 GB, free: 7.992 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.095e-05/0.5014, allocations: 97 kB / 0.5811 GB, free: 7.891 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.5015, allocations: 25.7 kB / 0.5811 GB, free: 7.859 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.83e-05/0.5015, allocations: 135.9 kB / 0.5812 GB, free: 7.723 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.859e-05/0.5016, allocations: 19.8 kB / 0.5812 GB, free: 7.703 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.016e-06/0.5016, allocations: 0 / 0.5812 GB, free: 7.703 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.5017, allocations: 310.8 kB / 0.5815 GB, free: 7.391 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.839e-05/0.5018, allocations: 12 kB / 0.5816 GB, free: 7.379 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.046e-05/0.5018, allocations: 4 kB / 0.5816 GB, free: 7.375 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.059e-05/0.5018, allocations: 8.875 kB / 0.5816 GB, free: 7.367 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.5018, allocations: 0 / 0.5816 GB, free: 7.367 MB / 394.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 7.375e-05/0.5019, allocations: 57.53 kB / 0.5816 GB, free: 7.305 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.5019, allocations: 4 kB / 0.5816 GB, free: 7.301 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.427e-06/0.5019, allocations: 3.953 kB / 0.5816 GB, free: 7.297 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.502, allocations: 4.219 kB / 0.5816 GB, free: 7.293 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.5021, allocations: 12.23 kB / 0.5816 GB, free: 7.281 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.5021, allocations: 3.938 kB / 0.5816 GB, free: 7.277 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.215e-05/0.5021, allocations: 12 kB / 0.5817 GB, free: 7.266 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.313e-06/0.5021, allocations: 0 / 0.5817 GB, free: 7.266 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 8.114e-05/0.5022, allocations: 101 kB / 0.5818 GB, free: 7.16 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.449e-05/0.5023, allocations: 4 kB / 0.5818 GB, free: 7.156 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.025e-05/0.5023, allocations: 8.406 kB / 0.5818 GB, free: 7.148 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.5023, allocations: 3.953 kB / 0.5818 GB, free: 7.145 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.5023, allocations: 0 / 0.5818 GB, free: 7.145 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.5023, allocations: 3.984 kB / 0.5818 GB, free: 7.141 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003025/0.5026, allocations: 315 kB / 0.5821 GB, free: 6.789 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.5026, allocations: 0 / 0.5821 GB, free: 6.789 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.043e-05/0.5027, allocations: 15.98 kB / 0.5821 GB, free: 6.773 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.5027, allocations: 0 / 0.5821 GB, free: 6.773 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.5027, allocations: 3.953 kB / 0.5821 GB, free: 6.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.5027, allocations: 0 / 0.5821 GB, free: 6.77 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.5028, allocations: 0 / 0.5821 GB, free: 6.77 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001174/0.5029, allocations: 147.5 kB / 0.5822 GB, free: 6.609 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.836e-05/0.5029, allocations: 88.95 kB / 0.5823 GB, free: 6.504 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.38e-05/0.503, allocations: 0 / 0.5823 GB, free: 6.504 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.913e-05/0.503, allocations: 3.953 kB / 0.5823 GB, free: 6.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.337e-05/0.5031, allocations: 4 kB / 0.5823 GB, free: 6.496 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.5031, allocations: 3.938 kB / 0.5823 GB, free: 6.492 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.591e-05/0.5031, allocations: 91.27 kB / 0.5824 GB, free: 6.402 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5031, allocations: 0 / 0.5824 GB, free: 6.402 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002283/0.5034, allocations: 19.84 kB / 0.5824 GB, free: 6.383 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.0001114/0.5035, allocations: 95.25 kB / 0.5825 GB, free: 6.277 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 7.796e-05/0.5036, allocations: 16 kB / 0.5825 GB, free: 6.262 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.5036, allocations: 0 / 0.5825 GB, free: 6.262 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 2.503e-05/0.5036, allocations: 19.94 kB / 0.5826 GB, free: 6.242 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001896/0.5038, allocations: 7.984 kB / 0.5826 GB, free: 6.234 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004003/0.5042, allocations: 181 kB / 0.5827 GB, free: 6.031 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000297/0.5045, allocations: 0.7317 MB / 0.5835 GB, free: 5.273 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 2.91e-05/0.5046, allocations: 7.781 kB / 0.5835 GB, free: 5.266 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.171e-05/0.5046, allocations: 11.44 kB / 0.5835 GB, free: 5.254 MB / 394.7 MB Notification: Performance of SimCode: time 2.3e-07/0.5046, allocations: 0 / 0.5835 GB, free: 5.254 MB / 394.7 MB Notification: Performance of Templates: time 0.002567/0.5072, allocations: 0.5653 MB / 0.584 GB, free: 4.699 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