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.001173/0.001173, allocations: 110.7 kB / 17.04 MB, free: 5.812 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.001131/0.001131, allocations: 196 kB / 17.97 MB, free: 5.027 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.634/1.634, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2302/0.2302, allocations: 43.52 MB / 314.7 MB, free: 484 kB / 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.001518/0.001519, allocations: 74.19 kB / 384.2 MB, free: 56.39 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1321/0.1336, allocations: 57.79 MB / 442 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002537/0.1362, allocations: 1.53 MB / 443.5 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001258/0.1363, allocations: 55.77 kB / 443.6 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.427e-05/0.1364, allocations: 4 kB / 443.6 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.1366, allocations: 11.86 kB / 443.6 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.099e-05/0.1366, allocations: 3.938 kB / 443.6 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.39e-05/0.1367, allocations: 27.97 kB / 443.6 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.162e-05/0.1368, allocations: 71.77 kB / 443.7 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002383/0.137, allocations: 127.4 kB / 443.8 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.683e-05/0.1371, allocations: 35.92 kB / 443.8 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.464e-05/0.1371, allocations: 43.77 kB / 443.9 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.711e-05/0.1372, allocations: 12 kB / 443.9 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.33e-05/0.1372, allocations: 8 kB / 443.9 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.855e-05/0.1373, allocations: 62.19 kB / 444 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.022e-05/0.1373, allocations: 67.59 kB / 444 MB, free: 4.078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001356/0.1375, allocations: 155.3 kB / 444.2 MB, free: 3.926 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1375, allocations: 4 kB / 444.2 MB, free: 3.922 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1375, allocations: 0 / 444.2 MB, free: 3.922 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.1375, allocations: 0 / 444.2 MB, free: 3.922 MB / 318.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.0004104/0.1379, allocations: 443.4 kB / 444.6 MB, free: 3.441 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.138, allocations: 11.89 kB / 444.6 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.038e-05/0.138, allocations: 16.75 kB / 444.6 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001959/0.1382, allocations: 208.2 kB / 444.8 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.991e-05/0.1382, allocations: 16.75 kB / 444.9 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.616e-05/0.1383, allocations: 16.38 kB / 444.9 MB, free: 3.141 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003429/0.1386, allocations: 201.1 kB / 445.1 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.1386, allocations: 3.938 kB / 445.1 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.818e-05/0.1387, allocations: 8 kB / 445.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.1387, allocations: 11.92 kB / 445.1 MB, free: 2.914 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001797/0.1389, allocations: 131 kB / 445.2 MB, free: 2.789 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005665/0.1394, allocations: 495.8 kB / 445.7 MB, free: 2.254 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.122e-05/0.1395, allocations: 42.5 kB / 445.7 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.51e-05/0.1396, allocations: 32.91 kB / 445.8 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.392e-05/0.1396, allocations: 7.938 kB / 445.8 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.947e-05/0.1396, allocations: 30.56 kB / 445.8 MB, free: 2.121 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.153e-06/0.1396, allocations: 0 / 445.8 MB, free: 2.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002155/0.1399, allocations: 81.52 kB / 445.9 MB, free: 2.035 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.1399, allocations: 55.41 kB / 445.9 MB, free: 1.969 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.98e-05/0.14, allocations: 109.8 kB / 446.1 MB, free: 1.852 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.858e-06/0.14, allocations: 25.7 kB / 446.1 MB, free: 1.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.423e-05/0.1401, allocations: 135.9 kB / 446.2 MB, free: 1.684 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.99e-05/0.1401, allocations: 15.8 kB / 446.2 MB, free: 1.668 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.81e-05/0.1401, allocations: 17.7 kB / 446.2 MB, free: 1.645 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.87e-05/0.1402, allocations: 322.8 kB / 446.6 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.549e-05/0.1402, allocations: 11.98 kB / 446.6 MB, free: 1.309 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.65e-05/0.1403, allocations: 8 kB / 446.6 MB, free: 1.301 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.12e-05/0.1403, allocations: 32.84 kB / 446.6 MB, free: 1.266 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1403, allocations: 0 / 446.6 MB, free: 1.266 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.239e-05/0.1404, allocations: 73.45 kB / 446.7 MB, free: 1.188 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.1405, allocations: 5.25 kB / 446.7 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.1405, allocations: 4 kB / 446.7 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.1405, allocations: 0 / 446.7 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.929e-05/0.1406, allocations: 8 kB / 446.7 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.1406, allocations: 4 kB / 446.7 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.512e-05/0.1406, allocations: 7.984 kB / 446.7 MB, free: 1.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.1406, allocations: 448 / 446.7 MB, free: 1.16 MB / 318.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 6.989e-05/0.1407, allocations: 138.9 kB / 446.8 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.154e-05/0.1407, allocations: 3.938 kB / 446.8 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.883e-05/0.1408, allocations: 7.969 kB / 446.9 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1408, allocations: 4 kB / 446.9 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.1408, allocations: 3.984 kB / 446.9 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1408, allocations: 4 kB / 446.9 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002527/0.141, allocations: 370.3 kB / 447.2 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.1411, allocations: 0 / 447.2 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.495e-05/0.1411, allocations: 11.98 kB / 447.2 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.1411, allocations: 0 / 447.2 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.712e-06/0.1411, allocations: 4 kB / 447.2 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.1411, allocations: 0 / 447.2 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1411, allocations: 4 kB / 447.3 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001138/0.1412, allocations: 163.4 kB / 447.4 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.914e-05/0.1413, allocations: 88.94 kB / 447.5 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.238e-05/0.1413, allocations: 0 / 447.5 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.019e-05/0.1413, allocations: 8 kB / 447.5 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.333e-05/0.1414, allocations: 0 / 447.5 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-06/0.1414, allocations: 0 / 447.5 MB, free: 272 kB / 318.1 MB Notification: Performance of sorting global known variables: time 2.644e-05/0.1414, allocations: 99.56 kB / 447.6 MB, free: 172 kB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1414, allocations: 0 / 447.6 MB, free: 172 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002109/0.1416, allocations: 19.84 kB / 447.6 MB, free: 152 kB / 318.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 7.667e-05/0.1417, allocations: 91.25 kB / 447.7 MB, free: 48 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001254/0.1419, allocations: 43.86 kB / 447.8 MB, free: 4 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1419, allocations: 0 / 447.8 MB, free: 4 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.156e-05/0.1419, allocations: 12.03 kB / 447.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003251/0.1423, allocations: 20.31 kB / 447.8 MB, free: 15.97 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005281/0.1428, allocations: 267.4 kB / 448 MB, free: 15.69 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003283/0.1432, allocations: 0.7275 MB / 448.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.367e-05/0.1432, allocations: 7.984 kB / 448.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.733e-05/0.1432, allocations: 11.44 kB / 448.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1432, allocations: 0 / 448.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of Templates: time 0.003009/0.1462, allocations: 0.6716 MB / 449.5 MB, free: 14.25 MB / 334.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches