Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Blocks.MuxDemux") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001034/0.001034, allocations: 203 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.158/1.158, allocations: 227.2 MB / 245 MB, free: 7.602 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008418/0.0008418, allocations: 96.09 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2709/0.2709, allocations: 45.23 MB / 394.7 MB, free: 31.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002638/0.0002638, allocations: 8 kB / 468.4 MB, free: 7.754 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2635, allocations: 63.24 MB / 0.5192 GB, free: 43.73 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08811/0.3516, allocations: 87.05 MB / 0.6042 GB, free: 2.586 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001649/0.3518, allocations: 59.97 kB / 0.6042 GB, free: 2.527 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003194/0.355, allocations: 1.499 MB / 0.6057 GB, free: 1.043 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.355, allocations: 0.625 kB / 0.6057 GB, free: 1.043 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.3551, allocations: 4 kB / 0.6057 GB, free: 1.039 MB / 410.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.0003507/0.3554, allocations: 408.8 kB / 0.6061 GB, free: 0.5898 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.3555, allocations: 12.75 kB / 0.6061 GB, free: 0.5781 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.255e-05/0.3555, allocations: 19.77 kB / 0.6061 GB, free: 0.5586 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002133/0.3557, allocations: 227.5 kB / 0.6063 GB, free: 304 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.863e-05/0.3558, allocations: 12.38 kB / 0.6064 GB, free: 292 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.269e-05/0.3558, allocations: 20.72 kB / 0.6064 GB, free: 272 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002887/0.3561, allocations: 193.1 kB / 0.6066 GB, free: 76 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.3561, allocations: 0.5312 kB / 0.6066 GB, free: 76 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.3561, allocations: 4.5 kB / 0.6066 GB, free: 72 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.3561, allocations: 4 kB / 0.6066 GB, free: 68 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000207/0.3563, allocations: 131.6 kB / 0.6067 GB, free: 15.94 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005375/0.3569, allocations: 0.5053 MB / 0.6072 GB, free: 15.39 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.631e-05/0.357, allocations: 38.56 kB / 0.6072 GB, free: 15.34 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.295e-06/0.357, allocations: 4 kB / 0.6072 GB, free: 15.34 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.801e-05/0.357, allocations: 34.69 kB / 0.6073 GB, free: 15.29 MB / 426.7 MB Notification: Performance of pre-optimization done (n=5): time 1.333e-06/0.357, allocations: 0 / 0.6073 GB, free: 15.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002059/0.3572, allocations: 85.52 kB / 0.6073 GB, free: 15.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.918e-05/0.3573, allocations: 51.41 kB / 0.6074 GB, free: 15.14 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.036e-05/0.3573, allocations: 101 kB / 0.6075 GB, free: 15.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.3574, allocations: 29.7 kB / 0.6075 GB, free: 15 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.49e-05/0.3574, allocations: 139.9 kB / 0.6077 GB, free: 14.86 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.658e-05/0.3574, allocations: 11.81 kB / 0.6077 GB, free: 14.85 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.926e-06/0.3575, allocations: 0 / 0.6077 GB, free: 14.85 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.873e-05/0.3575, allocations: 322.7 kB / 0.608 GB, free: 14.52 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.975e-05/0.3576, allocations: 15.98 kB / 0.608 GB, free: 14.51 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.172e-05/0.3576, allocations: 11.98 kB / 0.608 GB, free: 14.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.76e-05/0.3577, allocations: 19.94 kB / 0.608 GB, free: 14.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.3577, allocations: 4 kB / 0.608 GB, free: 14.47 MB / 426.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001115/0.3578, allocations: 65.62 kB / 0.6081 GB, free: 14.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.264e-05/0.3578, allocations: 6.188 kB / 0.6081 GB, free: 14.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.3578, allocations: 0 / 0.6081 GB, free: 14.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.3578, allocations: 3.984 kB / 0.6081 GB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.903e-05/0.3579, allocations: 16 kB / 0.6081 GB, free: 14.38 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.3579, allocations: 320 / 0.6081 GB, free: 14.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.249e-05/0.358, allocations: 0 / 0.6081 GB, free: 14.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-06/0.358, allocations: 4 kB / 0.6081 GB, free: 14.38 MB / 426.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 8.383e-05/0.3581, allocations: 137.8 kB / 0.6082 GB, free: 14.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.41e-05/0.3581, allocations: 7.906 kB / 0.6083 GB, free: 14.22 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.206e-05/0.3581, allocations: 7.969 kB / 0.6083 GB, free: 14.22 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.874e-06/0.3581, allocations: 0 / 0.6083 GB, free: 14.22 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.3581, allocations: 0 / 0.6083 GB, free: 14.22 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.3581, allocations: 4 kB / 0.6083 GB, free: 14.21 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003075/0.3584, allocations: 374.4 kB / 0.6086 GB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.3585, allocations: 0.5 kB / 0.6086 GB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.019e-05/0.3585, allocations: 8 kB / 0.6086 GB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.3585, allocations: 0 / 0.6086 GB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.19e-06/0.3585, allocations: 0 / 0.6086 GB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.3585, allocations: 11.98 kB / 0.6086 GB, free: 13.77 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3585, allocations: 0 / 0.6086 GB, free: 13.77 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001392/0.3587, allocations: 175.3 kB / 0.6088 GB, free: 13.59 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.905e-05/0.3587, allocations: 77.11 kB / 0.6089 GB, free: 13.49 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.153e-05/0.3587, allocations: 4 kB / 0.6089 GB, free: 13.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.072e-05/0.3588, allocations: 3.984 kB / 0.6089 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.328e-05/0.3588, allocations: 8 kB / 0.6089 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-06/0.3588, allocations: 0 / 0.6089 GB, free: 13.48 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.613e-05/0.3589, allocations: 91.27 kB / 0.609 GB, free: 13.39 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3589, allocations: 0 / 0.609 GB, free: 13.39 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002011/0.3591, allocations: 27.75 kB / 0.609 GB, free: 13.36 MB / 426.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 7.811e-05/0.3592, allocations: 91.25 kB / 0.6091 GB, free: 13.26 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001145/0.3593, allocations: 43.86 kB / 0.6091 GB, free: 13.22 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.512e-06/0.3593, allocations: 0 / 0.6091 GB, free: 13.22 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 4.367e-05/0.3593, allocations: 19.98 kB / 0.6092 GB, free: 13.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001507/0.3595, allocations: 11.95 kB / 0.6092 GB, free: 13.19 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004327/0.3599, allocations: 321.6 kB / 0.6095 GB, free: 12.85 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/0.3602, allocations: 0.7355 MB / 0.6102 GB, free: 12.09 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 2.779e-05/0.3602, allocations: 11.92 kB / 0.6102 GB, free: 12.08 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.783e-05/0.3602, allocations: 11.44 kB / 0.6102 GB, free: 12.07 MB / 426.7 MB Notification: Performance of SimCode: time 3.2e-07/0.3603, allocations: 0 / 0.6102 GB, free: 12.07 MB / 426.7 MB Notification: Performance of Templates: time 0.002206/0.3625, allocations: 0.5906 MB / 0.6108 GB, free: 11.49 MB / 426.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches