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.001246/0.001246, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001126/0.001126, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 246.3 MB, free: 9.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2316/0.2316, allocations: 46.11 MB / 343.6 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 76.84 kB / 416.8 MB, free: 20.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.123, allocations: 62.45 MB / 479.3 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.00271/0.1258, allocations: 1.62 MB / 480.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001972/0.126, allocations: 63.77 kB / 481 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.818e-05/0.126, allocations: 0 / 481 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.1262, allocations: 19.86 kB / 481 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.536e-05/0.1262, allocations: 0 / 481 MB, free: 4.035 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001272/0.1264, allocations: 23.91 kB / 481 MB, free: 4.012 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.263e-05/0.1265, allocations: 63.89 kB / 481.1 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002631/0.1267, allocations: 119.4 kB / 481.2 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.228e-05/0.1268, allocations: 35.86 kB / 481.2 MB, free: 3.793 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.388e-05/0.1269, allocations: 47.81 kB / 481.3 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.367e-05/0.1269, allocations: 12 kB / 481.3 MB, free: 3.734 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.287e-05/0.1269, allocations: 8 kB / 481.3 MB, free: 3.727 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.21e-05/0.127, allocations: 63.83 kB / 481.4 MB, free: 3.664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.811e-05/0.1271, allocations: 63.55 kB / 481.4 MB, free: 3.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001572/0.1273, allocations: 131.6 kB / 481.6 MB, free: 3.473 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.1273, allocations: 4 kB / 481.6 MB, free: 3.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1273, allocations: 0 / 481.6 MB, free: 3.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.408e-05/0.1273, allocations: 0 / 481.6 MB, free: 3.469 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.0005302/0.1279, allocations: 439.7 kB / 482 MB, free: 2.992 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.1279, allocations: 16.88 kB / 482 MB, free: 2.977 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.828e-05/0.128, allocations: 16.75 kB / 482 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000223/0.1282, allocations: 212.1 kB / 482.2 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.615e-05/0.1282, allocations: 12.75 kB / 482.2 MB, free: 2.703 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.847e-05/0.1283, allocations: 16.38 kB / 482.3 MB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003623/0.1286, allocations: 197.1 kB / 482.4 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.1287, allocations: 3.938 kB / 482.4 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.031e-05/0.1287, allocations: 8 kB / 482.5 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.1287, allocations: 4 kB / 482.5 MB, free: 2.473 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002373/0.1289, allocations: 131.2 kB / 482.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006541/0.1296, allocations: 495.8 kB / 483.1 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/0.1297, allocations: 50.5 kB / 483.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.937e-05/0.1298, allocations: 36.91 kB / 483.2 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.88e-05/0.1298, allocations: 0 / 483.2 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.328e-05/0.1299, allocations: 34.5 kB / 483.2 MB, free: 1.672 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 9.11e-07/0.1299, allocations: 0 / 483.2 MB, free: 1.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002506/0.1301, allocations: 73.67 kB / 483.3 MB, free: 1.594 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.122e-05/0.1302, allocations: 51.41 kB / 483.3 MB, free: 1.531 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.89e-05/0.1303, allocations: 121.8 kB / 483.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.423e-05/0.1303, allocations: 25.7 kB / 483.5 MB, free: 1.371 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.885e-05/0.1304, allocations: 139.9 kB / 483.6 MB, free: 1.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.592e-05/0.1304, allocations: 23.69 kB / 483.6 MB, free: 1.207 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.375e-05/0.1305, allocations: 13.72 kB / 483.6 MB, free: 1.188 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.1306, allocations: 318.8 kB / 483.9 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.598e-05/0.1306, allocations: 8 kB / 484 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.716e-05/0.1307, allocations: 15.98 kB / 484 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.564e-05/0.1308, allocations: 36.84 kB / 484 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1308, allocations: 0 / 484 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000137/0.1309, allocations: 65.53 kB / 484.1 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.131, allocations: 8 kB / 484.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.131, allocations: 0 / 484.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.131, allocations: 0 / 484.1 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.797e-05/0.1311, allocations: 15.92 kB / 484.1 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.1311, allocations: 0 / 484.1 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.281e-05/0.1311, allocations: 8 kB / 484.1 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.1312, allocations: 0 / 484.1 MB, free: 0.7031 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001184/0.1313, allocations: 134.3 kB / 484.2 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.257e-05/0.1313, allocations: 12.28 kB / 484.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.741e-05/0.1314, allocations: 3.969 kB / 484.2 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1314, allocations: 0 / 484.2 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.1314, allocations: 0 / 484.2 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.1314, allocations: 0 / 484.2 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003987/0.1318, allocations: 378.4 kB / 484.6 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.1318, allocations: 0 / 484.6 MB, free: 124 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.784e-05/0.1319, allocations: 8 kB / 484.6 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.649e-06/0.1319, allocations: 3.984 kB / 484.6 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.825e-06/0.1319, allocations: 0 / 484.6 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/0.1319, allocations: 0 / 484.6 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1319, allocations: 4 kB / 484.6 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001911/0.1321, allocations: 155.5 kB / 484.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.549e-05/0.1322, allocations: 92.94 kB / 484.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.633e-05/0.1322, allocations: 11.92 kB / 484.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.438e-05/0.1322, allocations: 0 / 484.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.736e-05/0.1323, allocations: 4 kB / 484.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.1323, allocations: 0 / 484.9 MB, free: 15.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.119e-05/0.1323, allocations: 91.27 kB / 485 MB, free: 15.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1323, allocations: 0 / 485 MB, free: 15.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002485/0.1326, allocations: 27.69 kB / 485 MB, free: 15.7 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.0001206/0.1327, allocations: 95.25 kB / 485.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000141/0.1329, allocations: 39.86 kB / 485.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1329, allocations: 0 / 485.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.559e-05/0.1329, allocations: 19.92 kB / 485.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.1332, allocations: 19.23 kB / 485.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005453/0.1338, allocations: 325.5 kB / 485.5 MB, free: 15.17 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.1341, allocations: 0.7317 MB / 486.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.524e-05/0.1341, allocations: 0 / 486.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.796e-05/0.1342, allocations: 19.42 kB / 486.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1342, allocations: 0 / 486.2 MB, free: 14.39 MB / 366.1 MB Notification: Performance of Templates: time 0.002806/0.137, allocations: 0.5936 MB / 486.8 MB, free: 13.81 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches