Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_ModelicaTest.Blocks.MuxDemux") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007/0.007001, allocations: 101.1 kB / 15.87 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001873/0.001873, allocations: 192.2 kB / 16.79 MB, free: 6.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.674/1.674, allocations: 205.1 MB / 222.6 MB, free: 4.727 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4263/0.4263, allocations: 43.5 MB / 313.5 MB, free: 8.477 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 70.56 kB / 382 MB, free: 8.719 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.172/0.1736, allocations: 57.78 MB / 439.8 MB, free: 14.84 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.00351/0.1771, allocations: 1.598 MB / 441.4 MB, free: 13.22 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001595/0.1773, allocations: 51.77 kB / 441.5 MB, free: 13.17 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.099e-05/0.1774, allocations: 7.938 kB / 441.5 MB, free: 13.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000173/0.1776, allocations: 15.86 kB / 441.5 MB, free: 13.15 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.248e-05/0.1776, allocations: 0 / 441.5 MB, free: 13.15 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.211e-05/0.1777, allocations: 19.98 kB / 441.5 MB, free: 13.13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001063/0.1778, allocations: 63.83 kB / 441.6 MB, free: 13.07 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003346/0.1782, allocations: 127.4 kB / 441.7 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.484e-05/0.1782, allocations: 39.84 kB / 441.7 MB, free: 12.89 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.017e-05/0.1783, allocations: 47.78 kB / 441.8 MB, free: 12.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.572e-05/0.1784, allocations: 4 kB / 441.8 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.857e-05/0.1784, allocations: 8 kB / 441.8 MB, free: 12.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.1785, allocations: 63.88 kB / 441.9 MB, free: 12.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.839e-05/0.1786, allocations: 63.61 kB / 441.9 MB, free: 12.71 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001751/0.1788, allocations: 131.5 kB / 442 MB, free: 12.58 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.023e-05/0.1788, allocations: 4 kB / 442 MB, free: 12.58 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1788, allocations: 0 / 442 MB, free: 12.58 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1788, allocations: 0 / 442 MB, free: 12.58 MB / 382.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.0006865/0.1795, allocations: 443.7 kB / 442.5 MB, free: 12.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.1795, allocations: 12.03 kB / 442.5 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.477e-05/0.1796, allocations: 24.64 kB / 442.5 MB, free: 12.06 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002451/0.1798, allocations: 208.2 kB / 442.7 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.427e-05/0.1799, allocations: 16.73 kB / 442.7 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.971e-05/0.1799, allocations: 16.38 kB / 442.8 MB, free: 11.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003818/0.1803, allocations: 193.1 kB / 442.9 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.1803, allocations: 7.938 kB / 443 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.954e-05/0.1804, allocations: 8 kB / 443 MB, free: 11.58 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.1804, allocations: 4 kB / 443 MB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002917/0.1807, allocations: 135 kB / 443.1 MB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008205/0.1815, allocations: 0.4919 MB / 443.6 MB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.906e-05/0.1816, allocations: 46.5 kB / 443.6 MB, free: 10.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.499e-05/0.1817, allocations: 28.91 kB / 443.7 MB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.793e-05/0.1817, allocations: 4 kB / 443.7 MB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.816e-05/0.1817, allocations: 34.55 kB / 443.7 MB, free: 10.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 1.192e-06/0.1817, allocations: 0 / 443.7 MB, free: 10.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002692/0.182, allocations: 73.59 kB / 443.8 MB, free: 10.69 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.1821, allocations: 59.39 kB / 443.8 MB, free: 10.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.1822, allocations: 113.8 kB / 443.9 MB, free: 10.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.1822, allocations: 29.64 kB / 444 MB, free: 10.46 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.1823, allocations: 132 kB / 444.1 MB, free: 10.33 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.1824, allocations: 15.75 kB / 444.1 MB, free: 10.31 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.009e-05/0.1824, allocations: 13.72 kB / 444.1 MB, free: 10.29 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.1826, allocations: 322.8 kB / 444.4 MB, free: 9.969 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.156e-05/0.1826, allocations: 12 kB / 444.5 MB, free: 9.957 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.457e-05/0.1827, allocations: 15.92 kB / 444.5 MB, free: 9.941 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.625e-05/0.1828, allocations: 32.84 kB / 444.5 MB, free: 9.906 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.1828, allocations: 0 / 444.5 MB, free: 9.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001109/0.1829, allocations: 65.53 kB / 444.6 MB, free: 9.836 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.1829, allocations: 4 kB / 444.6 MB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.1829, allocations: 0 / 444.6 MB, free: 9.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.183, allocations: 3.938 kB / 444.6 MB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.86e-05/0.1831, allocations: 15.98 kB / 444.6 MB, free: 9.812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.1831, allocations: 0 / 444.6 MB, free: 9.812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.396e-05/0.1831, allocations: 8.438 kB / 444.6 MB, free: 9.805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-06/0.1831, allocations: 0 / 444.6 MB, free: 9.805 MB / 382.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.0001139/0.1832, allocations: 137.8 kB / 444.7 MB, free: 9.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.38e-05/0.1833, allocations: 3.938 kB / 444.7 MB, free: 9.656 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.531e-05/0.1833, allocations: 7.969 kB / 444.7 MB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.1833, allocations: 0 / 444.7 MB, free: 9.652 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.1833, allocations: 8 kB / 444.7 MB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.1833, allocations: 0 / 444.7 MB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000378/0.1837, allocations: 366.4 kB / 445.1 MB, free: 9.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1837, allocations: 0 / 445.1 MB, free: 9.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.916e-05/0.1838, allocations: 8 kB / 445.1 MB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.1838, allocations: 4 kB / 445.1 MB, free: 9.219 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.1838, allocations: 0 / 445.1 MB, free: 9.219 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1838, allocations: 0 / 445.1 MB, free: 9.219 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.1838, allocations: 4 kB / 445.1 MB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002314/0.184, allocations: 167.3 kB / 445.3 MB, free: 9.035 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.287e-05/0.1841, allocations: 84.95 kB / 445.4 MB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.344e-05/0.1841, allocations: 0 / 445.4 MB, free: 8.934 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.358e-05/0.1842, allocations: 8 kB / 445.4 MB, free: 8.926 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.58e-05/0.1842, allocations: 3.984 kB / 445.4 MB, free: 8.922 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-06/0.1842, allocations: 0 / 445.4 MB, free: 8.922 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.286e-05/0.1843, allocations: 99.2 kB / 445.5 MB, free: 8.824 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1843, allocations: 0 / 445.5 MB, free: 8.824 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002198/0.1845, allocations: 23.84 kB / 445.5 MB, free: 8.801 MB / 382.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.0001058/0.1846, allocations: 95.19 kB / 445.6 MB, free: 8.699 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001402/0.1848, allocations: 35.92 kB / 445.6 MB, free: 8.664 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1848, allocations: 0 / 445.6 MB, free: 8.664 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.183e-05/0.1848, allocations: 15.92 kB / 445.6 MB, free: 8.648 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003333/0.1852, allocations: 16 kB / 445.7 MB, free: 8.633 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006465/0.1858, allocations: 333.2 kB / 446 MB, free: 8.277 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000382/0.1862, allocations: 0.7355 MB / 446.7 MB, free: 7.516 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.446e-05/0.1863, allocations: 11.92 kB / 446.7 MB, free: 7.504 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.86e-05/0.1863, allocations: 7.438 kB / 446.7 MB, free: 7.496 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1863, allocations: 0 / 446.7 MB, free: 7.496 MB / 382.1 MB Notification: Performance of Templates: time 0.003437/0.1898, allocations: 0.6301 MB / 447.4 MB, free: 6.871 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches