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/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001647/0.001647, allocations: 115.7 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001867/0.001867, allocations: 217.9 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.428/1.428, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2153/0.2153, allocations: 46.11 MB / 345 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 75.88 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3533/0.3547, allocations: 62.43 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002799/0.3575, allocations: 1.564 MB / 0.5332 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002395/0.3578, allocations: 63.45 kB / 0.5332 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.922e-05/0.3579, allocations: 1.625 kB / 0.5332 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000155/0.358, allocations: 23.34 kB / 0.5333 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.571e-05/0.3581, allocations: 3.938 kB / 0.5333 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001485/0.3582, allocations: 33.31 kB / 0.5333 GB, free: 12.28 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001141/0.3583, allocations: 68.53 kB / 0.5334 GB, free: 12.24 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002751/0.3586, allocations: 125.3 kB / 0.5335 GB, free: 12.17 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.866e-05/0.3587, allocations: 34.98 kB / 0.5335 GB, free: 12.15 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.131e-05/0.3588, allocations: 42.84 kB / 0.5336 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.463e-05/0.3588, allocations: 8.25 kB / 0.5336 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.742e-05/0.3588, allocations: 8.25 kB / 0.5336 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001015/0.3589, allocations: 72.67 kB / 0.5336 GB, free: 12.07 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.735e-05/0.359, allocations: 64.11 kB / 0.5337 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001857/0.3592, allocations: 148.8 kB / 0.5338 GB, free: 11.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3592, allocations: 5.375 kB / 0.5338 GB, free: 11.92 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3592, allocations: 0 / 0.5338 GB, free: 11.92 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.645e-06/0.3592, allocations: 3.938 kB / 0.5338 GB, free: 11.92 MB / 398.1 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.0005323/0.3598, allocations: 435.1 kB / 0.5343 GB, free: 11.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3598, allocations: 10.16 kB / 0.5343 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.692e-05/0.3599, allocations: 20.66 kB / 0.5343 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002178/0.3601, allocations: 211.9 kB / 0.5345 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.573e-05/0.3601, allocations: 16.34 kB / 0.5345 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.129e-05/0.3602, allocations: 15.5 kB / 0.5345 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003478/0.3605, allocations: 202 kB / 0.5347 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.3605, allocations: 3.938 kB / 0.5347 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.089e-05/0.3606, allocations: 6.219 kB / 0.5347 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.3606, allocations: 4.438 kB / 0.5347 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002243/0.3608, allocations: 126.9 kB / 0.5349 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006514/0.3615, allocations: 0.4894 MB / 0.5353 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.189e-05/0.3616, allocations: 37.41 kB / 0.5354 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.9e-05/0.3616, allocations: 35.47 kB / 0.5354 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/0.3617, allocations: 1.062 kB / 0.5354 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.073e-05/0.3617, allocations: 31.62 kB / 0.5354 GB, free: 10.53 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.202e-06/0.3617, allocations: 4 kB / 0.5354 GB, free: 10.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002419/0.362, allocations: 75.08 kB / 0.5355 GB, free: 10.47 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.799e-05/0.362, allocations: 51.41 kB / 0.5356 GB, free: 10.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.615e-05/0.3621, allocations: 112.4 kB / 0.5357 GB, free: 10.3 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.3621, allocations: 25.7 kB / 0.5357 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.097e-05/0.3622, allocations: 137.5 kB / 0.5358 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.3622, allocations: 13.17 kB / 0.5358 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.319e-05/0.3623, allocations: 17.84 kB / 0.5358 GB, free: 10.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.3624, allocations: 320.2 kB / 0.5362 GB, free: 9.785 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.103e-05/0.3624, allocations: 10.86 kB / 0.5362 GB, free: 9.781 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.454e-05/0.3625, allocations: 16.23 kB / 0.5362 GB, free: 9.773 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.138e-05/0.3625, allocations: 27.97 kB / 0.5362 GB, free: 9.758 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3625, allocations: 0 / 0.5362 GB, free: 9.758 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001187/0.3627, allocations: 71.84 kB / 0.5363 GB, free: 9.703 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.3627, allocations: 7.844 kB / 0.5363 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.3627, allocations: 9.438 kB / 0.5363 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.3627, allocations: 0 / 0.5363 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.44e-05/0.3628, allocations: 12.23 kB / 0.5363 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.3628, allocations: 4.062 kB / 0.5363 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.876e-05/0.3629, allocations: 14.62 kB / 0.5363 GB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.245e-06/0.3629, allocations: 1.375 kB / 0.5363 GB, free: 9.676 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.363, allocations: 139.5 kB / 0.5365 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.726e-05/0.363, allocations: 13.2 kB / 0.5365 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.299e-05/0.3631, allocations: 9.344 kB / 0.5365 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.3631, allocations: 1.375 kB / 0.5365 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3631, allocations: 3.938 kB / 0.5365 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.3631, allocations: 0 / 0.5365 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003607/0.3634, allocations: 364.3 kB / 0.5368 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.3635, allocations: 0 / 0.5368 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.451e-05/0.3635, allocations: 11.88 kB / 0.5368 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.3635, allocations: 1.438 kB / 0.5368 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-06/0.3635, allocations: 0 / 0.5368 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.3635, allocations: 5.578 kB / 0.5368 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3635, allocations: 4 kB / 0.5369 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001622/0.3637, allocations: 158.5 kB / 0.537 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.674e-05/0.3638, allocations: 82.33 kB / 0.5371 GB, free: 8.906 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.491e-05/0.3638, allocations: 5.203 kB / 0.5371 GB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.29e-05/0.3638, allocations: 5.469 kB / 0.5371 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.586e-05/0.3639, allocations: 1.5 kB / 0.5371 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.3639, allocations: 1.375 kB / 0.5371 GB, free: 8.898 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.638e-05/0.3639, allocations: 93.2 kB / 0.5372 GB, free: 8.812 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3639, allocations: 1.562 kB / 0.5372 GB, free: 8.812 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002294/0.3642, allocations: 28.75 kB / 0.5372 GB, free: 8.797 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001056/0.3643, allocations: 90.12 kB / 0.5373 GB, free: 8.711 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001482/0.3644, allocations: 40.64 kB / 0.5373 GB, free: 8.691 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3644, allocations: 0 / 0.5373 GB, free: 8.691 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.531e-05/0.3645, allocations: 19.67 kB / 0.5374 GB, free: 8.684 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003253/0.3648, allocations: 18.58 kB / 0.5374 GB, free: 8.672 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005589/0.3654, allocations: 291.7 kB / 0.5377 GB, free: 8.445 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.3657, allocations: 0.7281 MB / 0.5384 GB, free: 7.723 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.092e-05/0.3658, allocations: 11.22 kB / 0.5384 GB, free: 7.715 MB / 398.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3658, allocations: 0 / 0.5384 GB, free: 7.715 MB / 398.1 MB Notification: Performance of Templates: time 0.002931/0.3687, allocations: 1.221 MB / 0.5396 GB, free: 7.098 MB / 398.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches