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.00106/0.00106, allocations: 98.78 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001102/0.001102, allocations: 204.1 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 227.2 MB / 245.9 MB, free: 12.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2723/0.2723, allocations: 45.92 MB / 344 MB, free: 12.34 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000274/0.000274, allocations: 11.98 kB / 417.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1433/0.1436, allocations: 63.45 MB / 481.4 MB, free: 5.441 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001793/0.1454, allocations: 1.256 MB / 482.6 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001455/0.1455, allocations: 51.78 kB / 482.7 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.87e-05/0.1456, allocations: 4 kB / 482.7 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001582/0.1458, allocations: 19.91 kB / 482.7 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.471e-05/0.1458, allocations: 11.88 kB / 482.7 MB, free: 4.086 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.773e-05/0.1459, allocations: 15.98 kB / 482.7 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001002/0.146, allocations: 39.95 kB / 482.8 MB, free: 4.031 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002581/0.1463, allocations: 105.9 kB / 482.9 MB, free: 3.926 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.582e-05/0.1463, allocations: 19.86 kB / 482.9 MB, free: 3.906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.938e-05/0.1464, allocations: 15.94 kB / 482.9 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.497e-05/0.1464, allocations: 0 / 482.9 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.666e-06/0.1464, allocations: 0 / 482.9 MB, free: 3.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.645e-05/0.1465, allocations: 55.83 kB / 483 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.033e-05/0.1466, allocations: 41.64 kB / 483 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001243/0.1467, allocations: 99.81 kB / 483.1 MB, free: 3.691 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.1467, allocations: 0 / 483.1 MB, free: 3.691 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1467, allocations: 0 / 483.1 MB, free: 3.691 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.1467, allocations: 0 / 483.1 MB, free: 3.691 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.0005021/0.1472, allocations: 423.5 kB / 483.5 MB, free: 3.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.1473, allocations: 8.562 kB / 483.5 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.765e-05/0.1473, allocations: 15.81 kB / 483.5 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002395/0.1476, allocations: 218.8 kB / 483.8 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.1476, allocations: 12.38 kB / 483.8 MB, free: 2.938 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.762e-05/0.1476, allocations: 23.94 kB / 483.8 MB, free: 2.914 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003327/0.148, allocations: 188.6 kB / 484 MB, free: 2.727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.148, allocations: 0 / 484 MB, free: 2.727 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.96e-05/0.148, allocations: 8 kB / 484 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.148, allocations: 8 kB / 484 MB, free: 2.711 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002221/0.1483, allocations: 127.7 kB / 484.1 MB, free: 2.586 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006269/0.1489, allocations: 0.4958 MB / 484.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.827e-05/0.149, allocations: 38.56 kB / 484.6 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.209e-05/0.149, allocations: 4 kB / 484.6 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.149, allocations: 30.56 kB / 484.7 MB, free: 1.949 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.383e-06/0.149, allocations: 0 / 484.7 MB, free: 1.949 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002421/0.1493, allocations: 89.83 kB / 484.8 MB, free: 1.855 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.773e-05/0.1493, allocations: 51.41 kB / 484.8 MB, free: 1.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.515e-05/0.1494, allocations: 109.8 kB / 484.9 MB, free: 1.676 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.1495, allocations: 25.7 kB / 484.9 MB, free: 1.645 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.773e-05/0.1495, allocations: 135.9 kB / 485.1 MB, free: 1.508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.246e-05/0.1496, allocations: 15.75 kB / 485.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.204e-05/0.1496, allocations: 4 kB / 485.1 MB, free: 1.488 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.1497, allocations: 322.8 kB / 485.4 MB, free: 1.164 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.896e-05/0.1497, allocations: 12 kB / 485.4 MB, free: 1.152 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.656e-05/0.1498, allocations: 20.05 kB / 485.4 MB, free: 1.133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.107e-05/0.1498, allocations: 12 kB / 485.5 MB, free: 1.121 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1498, allocations: 3.938 kB / 485.5 MB, free: 1.117 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001222/0.15, allocations: 73.61 kB / 485.5 MB, free: 1.039 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.15, allocations: 4 kB / 485.5 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.15, allocations: 4 kB / 485.5 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.202e-05/0.15, allocations: 0 / 485.5 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.915e-05/0.1501, allocations: 8 kB / 485.6 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.1501, allocations: 3.984 kB / 485.6 MB, free: 1.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.099e-05/0.1502, allocations: 7.906 kB / 485.6 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-06/0.1502, allocations: 0 / 485.6 MB, free: 1.012 MB / 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.915e-05/0.1503, allocations: 137.8 kB / 485.7 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.932e-05/0.1503, allocations: 4 kB / 485.7 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.194e-05/0.1503, allocations: 11.95 kB / 485.7 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.1503, allocations: 4 kB / 485.7 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.1503, allocations: 0 / 485.7 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.1503, allocations: 0 / 485.7 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003362/0.1507, allocations: 370.4 kB / 486.1 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1507, allocations: 4 kB / 486.1 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.243e-05/0.1507, allocations: 11.98 kB / 486.1 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.1508, allocations: 0 / 486.1 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.1508, allocations: 4 kB / 486.1 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1508, allocations: 0 / 486.1 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1508, allocations: 0 / 486.1 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001568/0.1509, allocations: 175.6 kB / 486.3 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.629e-05/0.151, allocations: 81.11 kB / 486.3 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.346e-05/0.151, allocations: 4.062 kB / 486.4 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.174e-05/0.1511, allocations: 4 kB / 486.4 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.149e-05/0.1511, allocations: 3.984 kB / 486.4 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-06/0.1511, allocations: 3.984 kB / 486.4 MB, free: 112 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.614e-05/0.1512, allocations: 87.59 kB / 486.5 MB, free: 24 kB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1512, allocations: 0 / 486.5 MB, free: 24 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.000229/0.1514, allocations: 27.84 kB / 486.5 MB, free: 15.99 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 (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 9.361e-05/0.1515, allocations: 103.2 kB / 486.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001277/0.1516, allocations: 39.91 kB / 486.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1516, allocations: 0 / 486.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.417e-05/0.1517, allocations: 16 kB / 486.6 MB, free: 15.83 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002056/0.1519, allocations: 28.09 kB / 486.7 MB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006256/0.1525, allocations: 318.7 kB / 487 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004902/0.153, allocations: 0.7277 MB / 487.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.666e-05/0.1531, allocations: 7.984 kB / 487.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.134e-05/0.1531, allocations: 11.44 kB / 487.7 MB, free: 14.69 MB / 366.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1531, allocations: 0 / 487.7 MB, free: 14.69 MB / 366.1 MB Notification: Performance of Templates: time 0.002766/0.1559, allocations: 0.5918 MB / 488.3 MB, free: 14.11 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/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