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.001485/0.001491, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001446/0.001446, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 247.4 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2152/0.2152, allocations: 46.1 MB / 344.8 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 70.36 kB / 418.2 MB, free: 19.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1389, allocations: 62.45 MB / 480.7 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003756/0.1427, allocations: 1.561 MB / 482.3 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003254/0.143, allocations: 55.75 kB / 482.3 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.847e-05/0.1431, allocations: 4 kB / 482.3 MB, free: 3.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001621/0.1433, allocations: 15.86 kB / 482.3 MB, free: 3.629 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.419e-05/0.1434, allocations: 15.92 kB / 482.3 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001584/0.1436, allocations: 19.92 kB / 482.4 MB, free: 3.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001245/0.1437, allocations: 71.83 kB / 482.4 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003165/0.144, allocations: 123.4 kB / 482.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.486e-05/0.1441, allocations: 39.86 kB / 482.6 MB, free: 3.359 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.798e-05/0.1442, allocations: 39.83 kB / 482.6 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.734e-05/0.1442, allocations: 12 kB / 482.6 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.461e-05/0.1442, allocations: 8 kB / 482.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.053e-05/0.1443, allocations: 67.83 kB / 482.7 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.77e-05/0.1444, allocations: 67.61 kB / 482.8 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001869/0.1446, allocations: 139.6 kB / 482.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.1446, allocations: 0 / 482.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.977e-06/0.1447, allocations: 0 / 482.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.1447, allocations: 3.938 kB / 482.9 MB, free: 3.027 MB / 350.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.0005737/0.1452, allocations: 435.8 kB / 483.3 MB, free: 2.555 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.1453, allocations: 8.031 kB / 483.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.807e-05/0.1454, allocations: 16.75 kB / 483.4 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002184/0.1456, allocations: 220.1 kB / 483.6 MB, free: 2.277 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.196e-05/0.1456, allocations: 16.75 kB / 483.6 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.1456, allocations: 20.38 kB / 483.6 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003413/0.146, allocations: 189.1 kB / 483.8 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.146, allocations: 7.875 kB / 483.8 MB, free: 2.043 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.491e-05/0.1461, allocations: 11.98 kB / 483.8 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.397e-06/0.1461, allocations: 8 kB / 483.8 MB, free: 2.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002212/0.1463, allocations: 123.3 kB / 484 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006329/0.1469, allocations: 499.8 kB / 484.4 MB, free: 1.367 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.883e-05/0.147, allocations: 42.5 kB / 484.5 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.73e-05/0.1471, allocations: 32.91 kB / 484.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.748e-05/0.1471, allocations: 0 / 484.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.1472, allocations: 34.56 kB / 484.6 MB, free: 1.238 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.102e-06/0.1472, allocations: 4 kB / 484.6 MB, free: 1.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002614/0.1475, allocations: 81.55 kB / 484.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.604e-05/0.1475, allocations: 55.39 kB / 484.7 MB, free: 1.082 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.783e-05/0.1476, allocations: 105.8 kB / 484.8 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.201e-05/0.1476, allocations: 25.7 kB / 484.8 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.656e-05/0.1477, allocations: 147.9 kB / 485 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.486e-05/0.1477, allocations: 15.75 kB / 485 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.593e-05/0.1478, allocations: 17.72 kB / 485 MB, free: 0.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.1479, allocations: 318.8 kB / 485.3 MB, free: 440 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.189e-05/0.148, allocations: 8 kB / 485.3 MB, free: 432 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.443e-05/0.148, allocations: 11.98 kB / 485.3 MB, free: 420 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.293e-05/0.1481, allocations: 32.84 kB / 485.4 MB, free: 384 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1481, allocations: 384 / 485.4 MB, free: 384 kB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001263/0.1482, allocations: 81.47 kB / 485.4 MB, free: 296 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.1483, allocations: 4 kB / 485.4 MB, free: 292 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.1483, allocations: 3.984 kB / 485.4 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.1483, allocations: 0 / 485.4 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.473e-05/0.1484, allocations: 8 kB / 485.5 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.1484, allocations: 0 / 485.5 MB, free: 280 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.738e-05/0.1484, allocations: 4 kB / 485.5 MB, free: 276 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.1484, allocations: 0 / 485.5 MB, free: 276 kB / 350.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.0001092/0.1486, allocations: 141.8 kB / 485.6 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.889e-05/0.1486, allocations: 7.844 kB / 485.6 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.42e-05/0.1486, allocations: 7.969 kB / 485.6 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.1486, allocations: 4 kB / 485.6 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.1486, allocations: 0 / 485.6 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1486, allocations: 0 / 485.6 MB, free: 104 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003878/0.149, allocations: 366.4 kB / 486 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.1491, allocations: 0 / 486 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.666e-05/0.1491, allocations: 19.92 kB / 486 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.89e-06/0.1491, allocations: 4 kB / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.435e-06/0.1491, allocations: 0 / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.1491, allocations: 0 / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.821e-05/0.1492, allocations: 0 / 486 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001612/0.1493, allocations: 163.4 kB / 486.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.71e-05/0.1494, allocations: 85 kB / 486.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.267e-05/0.1494, allocations: 4 kB / 486.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.332e-05/0.1495, allocations: 4 kB / 486.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.55e-05/0.1495, allocations: 0 / 486.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-06/0.1495, allocations: 4.188 kB / 486.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.774e-05/0.1495, allocations: 87.27 kB / 486.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1495, allocations: 0 / 486.3 MB, free: 15.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002322/0.1498, allocations: 31.69 kB / 486.4 MB, free: 15.26 MB / 366.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.0001027/0.1499, allocations: 95.19 kB / 486.5 MB, free: 15.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000149/0.15, allocations: 51.84 kB / 486.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.1501, allocations: 0 / 486.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.149e-05/0.1501, allocations: 16 kB / 486.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003323/0.1504, allocations: 10.66 kB / 486.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005799/0.151, allocations: 301.1 kB / 486.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000302/0.1513, allocations: 0.7314 MB / 487.6 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.727e-05/0.1514, allocations: 11.44 kB / 487.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1514, allocations: 4 kB / 487.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of Templates: time 0.003201/0.1546, allocations: 1.219 MB / 488.8 MB, free: 12.76 MB / 366.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