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.001387/0.001387, allocations: 179.6 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 221.3 MB / 236 MB, free: 2.961 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.0008074/0.0008079, allocations: 83.83 kB / 287 MB, free: 244 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2178/0.2178, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.959e-05/2.962e-05, allocations: 4.219 kB / 451.8 MB, free: 9.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1268, allocations: 61.92 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4266/0.5534, allocations: 85.93 MB / 0.5856 GB, free: 3.367 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002374/0.5537, allocations: 63.97 kB / 0.5857 GB, free: 3.305 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003492/0.5572, allocations: 1.489 MB / 0.5871 GB, free: 1.824 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.5572, allocations: 0 / 0.5871 GB, free: 1.824 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.501e-05/0.5573, allocations: 6.953 kB / 0.5871 GB, free: 1.82 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.0003839/0.5577, allocations: 402.4 kB / 0.5875 GB, free: 1.379 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.01e-05/0.5577, allocations: 8.031 kB / 0.5875 GB, free: 1.371 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.088e-05/0.5578, allocations: 19.81 kB / 0.5875 GB, free: 1.352 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002631/0.5581, allocations: 226.7 kB / 0.5878 GB, free: 1.094 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.218e-05/0.5581, allocations: 16.33 kB / 0.5878 GB, free: 1.078 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.1e-05/0.5581, allocations: 16 kB / 0.5878 GB, free: 1.062 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002998/0.5584, allocations: 180.6 kB / 0.588 GB, free: 0.8828 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.5584, allocations: 0 / 0.588 GB, free: 0.8828 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.266e-05/0.5585, allocations: 8 kB / 0.588 GB, free: 0.875 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.738e-06/0.5585, allocations: 11.94 kB / 0.588 GB, free: 0.8633 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00017/0.5587, allocations: 111.6 kB / 0.5881 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006354/0.5593, allocations: 499.8 kB / 0.5886 GB, free: 220 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.425e-05/0.5594, allocations: 42.53 kB / 0.5886 GB, free: 168 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.054e-05/0.5594, allocations: 24.92 kB / 0.5886 GB, free: 140 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.06e-05/0.5595, allocations: 0 / 0.5886 GB, free: 140 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.5595, allocations: 38.56 kB / 0.5887 GB, free: 92 kB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.5595, allocations: 0 / 0.5887 GB, free: 92 kB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001446/0.5596, allocations: 57.59 kB / 0.5887 GB, free: 28 kB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.5597, allocations: 51.41 kB / 0.5888 GB, free: 15.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.818e-05/0.5598, allocations: 97 kB / 0.5889 GB, free: 15.86 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.432e-05/0.5598, allocations: 25.7 kB / 0.5889 GB, free: 15.83 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.039e-05/0.5599, allocations: 139.9 kB / 0.589 GB, free: 15.69 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.985e-05/0.5599, allocations: 15.81 kB / 0.589 GB, free: 15.68 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.886e-06/0.56, allocations: 4 kB / 0.589 GB, free: 15.67 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.5601, allocations: 310.8 kB / 0.5893 GB, free: 15.36 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.172e-05/0.5601, allocations: 12 kB / 0.5893 GB, free: 15.35 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.242e-05/0.5601, allocations: 7.938 kB / 0.5894 GB, free: 15.34 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.773e-05/0.5602, allocations: 16.17 kB / 0.5894 GB, free: 15.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.5602, allocations: 0 / 0.5894 GB, free: 15.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.258e-05/0.5603, allocations: 53.56 kB / 0.5894 GB, free: 15.27 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.2e-05/0.5603, allocations: 8 kB / 0.5894 GB, free: 15.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.5603, allocations: 224 / 0.5894 GB, free: 15.26 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.5603, allocations: 4 kB / 0.5894 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001053/0.5604, allocations: 19.92 kB / 0.5894 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.5605, allocations: 0 / 0.5894 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.735e-05/0.5605, allocations: 4 kB / 0.5895 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.936e-06/0.5605, allocations: 0 / 0.5895 GB, free: 15.23 MB / 410.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.37e-05/0.5606, allocations: 108.9 kB / 0.5896 GB, free: 15.12 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.328e-05/0.5606, allocations: 3.953 kB / 0.5896 GB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.842e-05/0.5607, allocations: 16.08 kB / 0.5896 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.5607, allocations: 4 kB / 0.5896 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.5607, allocations: 0 / 0.5896 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.5607, allocations: 3.984 kB / 0.5896 GB, free: 15.08 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003493/0.5611, allocations: 354.4 kB / 0.5899 GB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.5611, allocations: 3.953 kB / 0.5899 GB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.616e-05/0.5611, allocations: 15.92 kB / 0.5899 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.5611, allocations: 4 kB / 0.5899 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.676e-06/0.5612, allocations: 0 / 0.5899 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.5612, allocations: 4 kB / 0.5899 GB, free: 14.65 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.5612, allocations: 0 / 0.5899 GB, free: 14.65 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001184/0.5613, allocations: 143.5 kB / 0.5901 GB, free: 14.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.819e-05/0.5614, allocations: 92.91 kB / 0.5902 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.27e-05/0.5614, allocations: 192 / 0.5902 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.948e-05/0.5614, allocations: 15.98 kB / 0.5902 GB, free: 14.37 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.707e-05/0.5615, allocations: 0 / 0.5902 GB, free: 14.37 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.89e-06/0.5615, allocations: 4 kB / 0.5902 GB, free: 14.37 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.973e-05/0.5616, allocations: 87.28 kB / 0.5903 GB, free: 14.28 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5616, allocations: 0 / 0.5903 GB, free: 14.28 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001949/0.5618, allocations: 23.84 kB / 0.5903 GB, free: 14.26 MB / 410.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.0001195/0.5619, allocations: 95.19 kB / 0.5904 GB, free: 14.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001021/0.562, allocations: 27.98 kB / 0.5904 GB, free: 14.13 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.562, allocations: 0 / 0.5904 GB, free: 14.13 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.301e-05/0.562, allocations: 8 kB / 0.5904 GB, free: 14.12 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001789/0.5622, allocations: 12 kB / 0.5904 GB, free: 14.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004328/0.5627, allocations: 190.4 kB / 0.5906 GB, free: 13.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.563, allocations: 0.7316 MB / 0.5913 GB, free: 13.14 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.293e-05/0.5631, allocations: 7.781 kB / 0.5913 GB, free: 13.14 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.676e-05/0.5631, allocations: 11.44 kB / 0.5913 GB, free: 13.12 MB / 410.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5631, allocations: 0 / 0.5913 GB, free: 13.12 MB / 410.7 MB Notification: Performance of Templates: time 0.002542/0.5656, allocations: 0.5914 MB / 0.5919 GB, free: 12.55 MB / 410.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