Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000906/0.000906, allocations: 179.3 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.475/1.475, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009995/0.0009997, allocations: 94.33 kB / 270.9 MB, free: 8.344 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3859/0.3859, allocations: 43.56 MB / 362.7 MB, free: 52.14 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004036/0.0004037, allocations: 12 kB / 431.4 MB, free: 6.148 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1356/0.136, allocations: 58.84 MB / 490.2 MB, free: 11.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001826/0.138, allocations: 1.238 MB / 491.5 MB, free: 9.969 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001745/0.1381, allocations: 51.78 kB / 491.5 MB, free: 9.918 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.743e-05/0.1382, allocations: 0 / 491.5 MB, free: 9.918 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001445/0.1384, allocations: 11.92 kB / 491.5 MB, free: 9.906 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.455e-05/0.1384, allocations: 11.92 kB / 491.5 MB, free: 9.895 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.257e-05/0.1385, allocations: 15.98 kB / 491.6 MB, free: 9.879 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001061/0.1386, allocations: 63.83 kB / 491.6 MB, free: 9.816 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002547/0.1389, allocations: 117.7 kB / 491.7 MB, free: 9.695 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.41e-05/0.1389, allocations: 7.938 kB / 491.7 MB, free: 9.688 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.23e-05/0.139, allocations: 19.86 kB / 491.8 MB, free: 9.668 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.045e-05/0.139, allocations: 4 kB / 491.8 MB, free: 9.664 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.121e-05/0.139, allocations: 0 / 491.8 MB, free: 9.664 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.234e-05/0.1391, allocations: 51.89 kB / 491.8 MB, free: 9.613 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.128e-05/0.1392, allocations: 41.58 kB / 491.9 MB, free: 9.566 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000136/0.1393, allocations: 103.8 kB / 492 MB, free: 9.465 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.1393, allocations: 0 / 492 MB, free: 9.465 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.1393, allocations: 3.938 kB / 492 MB, free: 9.461 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.1393, allocations: 4 kB / 492 MB, free: 9.457 MB / 378.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.0005632/0.1399, allocations: 403.6 kB / 492.4 MB, free: 9.012 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.14, allocations: 12.03 kB / 492.4 MB, free: 9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.464e-05/0.14, allocations: 19.77 kB / 492.4 MB, free: 8.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002563/0.1403, allocations: 214.8 kB / 492.6 MB, free: 8.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.197e-05/0.1403, allocations: 12.38 kB / 492.6 MB, free: 8.719 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.994e-05/0.1403, allocations: 20 kB / 492.6 MB, free: 8.699 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003847/0.1407, allocations: 200.3 kB / 492.8 MB, free: 8.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.1407, allocations: 4 kB / 492.8 MB, free: 8.496 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.1408, allocations: 11.92 kB / 492.8 MB, free: 8.484 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.1408, allocations: 4 kB / 492.8 MB, free: 8.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002349/0.141, allocations: 139.5 kB / 493 MB, free: 8.344 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007028/0.1417, allocations: 499.8 kB / 493.5 MB, free: 7.805 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001037/0.1419, allocations: 42.5 kB / 493.5 MB, free: 7.754 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.95e-05/0.1419, allocations: 32.97 kB / 493.5 MB, free: 7.719 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.142, allocations: 8 kB / 493.6 MB, free: 7.711 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/0.142, allocations: 34.55 kB / 493.6 MB, free: 7.668 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 2.695e-06/0.142, allocations: 3.984 kB / 493.6 MB, free: 7.664 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.00025/0.1423, allocations: 69.69 kB / 493.7 MB, free: 7.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.1423, allocations: 51.41 kB / 493.7 MB, free: 7.527 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001076/0.1424, allocations: 121.8 kB / 493.8 MB, free: 7.398 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.688e-05/0.1425, allocations: 25.7 kB / 493.9 MB, free: 7.367 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.241e-05/0.1426, allocations: 141 kB / 494 MB, free: 7.223 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.735e-05/0.1426, allocations: 15.75 kB / 494 MB, free: 7.207 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.935e-06/0.1426, allocations: 0 / 494 MB, free: 7.207 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.1427, allocations: 318.8 kB / 494.3 MB, free: 6.887 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.459e-05/0.1428, allocations: 11.98 kB / 494.3 MB, free: 6.875 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.75e-05/0.1428, allocations: 19.98 kB / 494.3 MB, free: 6.855 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.375e-05/0.1429, allocations: 16.38 kB / 494.4 MB, free: 6.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1429, allocations: 0 / 494.4 MB, free: 6.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001207/0.143, allocations: 69.59 kB / 494.4 MB, free: 6.766 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.855e-05/0.1431, allocations: 7.984 kB / 494.4 MB, free: 6.758 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1431, allocations: 4 kB / 494.4 MB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.1431, allocations: 0 / 494.4 MB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.196e-05/0.1432, allocations: 11.94 kB / 494.5 MB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.1432, allocations: 4 kB / 494.5 MB, free: 6.738 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.675e-05/0.1432, allocations: 4 kB / 494.5 MB, free: 6.734 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.1433, allocations: 0 / 494.5 MB, free: 6.734 MB / 378.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 0.0001125/0.1434, allocations: 141.8 kB / 494.6 MB, free: 6.586 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.372e-05/0.1434, allocations: 3.906 kB / 494.6 MB, free: 6.582 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.611e-05/0.1434, allocations: 7.969 kB / 494.6 MB, free: 6.578 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1434, allocations: 4 kB / 494.6 MB, free: 6.574 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.1435, allocations: 0 / 494.6 MB, free: 6.574 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1435, allocations: 4 kB / 494.6 MB, free: 6.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003782/0.1438, allocations: 366.5 kB / 495 MB, free: 6.156 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.1439, allocations: 3.938 kB / 495 MB, free: 6.152 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.03e-05/0.1439, allocations: 8 kB / 495 MB, free: 6.145 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1439, allocations: 0 / 495 MB, free: 6.145 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.1439, allocations: 4 kB / 495 MB, free: 6.141 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.736e-06/0.1439, allocations: 7.984 kB / 495 MB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1439, allocations: 0 / 495 MB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001877/0.1441, allocations: 159.4 kB / 495.2 MB, free: 5.961 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.466e-05/0.1442, allocations: 85.02 kB / 495.2 MB, free: 5.859 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.5e-05/0.1442, allocations: 4 kB / 495.2 MB, free: 5.855 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.685e-05/0.1443, allocations: 7.984 kB / 495.3 MB, free: 5.848 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.124e-05/0.1443, allocations: 7.938 kB / 495.3 MB, free: 5.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/0.1443, allocations: 4.188 kB / 495.3 MB, free: 5.836 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.19e-05/0.1444, allocations: 87.27 kB / 495.4 MB, free: 5.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1444, allocations: 0 / 495.4 MB, free: 5.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002038/0.1446, allocations: 27.69 kB / 495.4 MB, free: 5.723 MB / 378.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 0.0001031/0.1447, allocations: 95.2 kB / 495.5 MB, free: 5.621 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001354/0.1448, allocations: 43.98 kB / 495.5 MB, free: 5.578 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1449, allocations: 0 / 495.5 MB, free: 5.578 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.437e-05/0.1449, allocations: 23.92 kB / 495.5 MB, free: 5.555 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002739/0.1452, allocations: 8 kB / 495.5 MB, free: 5.547 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005822/0.1458, allocations: 356.5 kB / 495.9 MB, free: 5.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003314/0.1461, allocations: 0.7277 MB / 496.6 MB, free: 4.406 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.8e-05/0.1462, allocations: 11.44 kB / 496.6 MB, free: 4.395 MB / 378.7 MB Notification: Performance of SimCode: time 2.11e-07/0.1462, allocations: 4 kB / 496.6 MB, free: 4.391 MB / 378.7 MB Notification: Performance of Templates: time 0.002679/0.1489, allocations: 1.223 MB / 497.9 MB, free: 3.172 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches