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.001456/0.00146, allocations: 104.9 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001832/0.001832, 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.439/1.439, allocations: 227.4 MB / 246.3 MB, free: 10.87 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2368/0.2368, allocations: 46.09 MB / 343.6 MB, free: 11.85 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 76.38 kB / 416.8 MB, free: 20.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1258, allocations: 62.44 MB / 479.3 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003154/0.129, allocations: 1.632 MB / 480.9 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002458/0.1293, allocations: 59.75 kB / 481 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.227e-05/0.1294, allocations: 0 / 481 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001627/0.1296, allocations: 19.92 kB / 481 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.127e-05/0.1296, allocations: 7.875 kB / 481 MB, free: 4.051 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001491/0.1298, allocations: 23.98 kB / 481 MB, free: 4.027 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001133/0.1299, allocations: 59.89 kB / 481.1 MB, free: 3.969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003382/0.1303, allocations: 119.4 kB / 481.2 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.056e-05/0.1303, allocations: 39.86 kB / 481.2 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.878e-05/0.1304, allocations: 39.84 kB / 481.3 MB, free: 3.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.964e-05/0.1304, allocations: 8 kB / 481.3 MB, free: 3.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.248e-05/0.1305, allocations: 4 kB / 481.3 MB, free: 3.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.123e-05/0.1306, allocations: 71.81 kB / 481.4 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.149e-05/0.1306, allocations: 59.61 kB / 481.4 MB, free: 3.629 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001573/0.1308, allocations: 135.6 kB / 481.5 MB, free: 3.496 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1308, allocations: 0 / 481.5 MB, free: 3.496 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1308, allocations: 0 / 481.5 MB, free: 3.496 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.1308, allocations: 0 / 481.5 MB, free: 3.496 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.0005266/0.1314, allocations: 443.7 kB / 482 MB, free: 3.016 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.1314, allocations: 8.875 kB / 482 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.823e-05/0.1315, allocations: 16.75 kB / 482 MB, free: 2.992 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002177/0.1317, allocations: 228 kB / 482.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.449e-05/0.1317, allocations: 12.75 kB / 482.2 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.903e-05/0.1318, allocations: 20.38 kB / 482.3 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000354/0.1321, allocations: 189.1 kB / 482.4 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.1322, allocations: 3.938 kB / 482.4 MB, free: 2.504 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.786e-05/0.1322, allocations: 8 kB / 482.5 MB, free: 2.496 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.1322, allocations: 4 kB / 482.5 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002494/0.1325, allocations: 127.2 kB / 482.6 MB, free: 2.371 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007424/0.1332, allocations: 0.4919 MB / 483.1 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001017/0.1333, allocations: 38.56 kB / 483.1 MB, free: 1.781 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.493e-05/0.1334, allocations: 32.91 kB / 483.1 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.1334, allocations: 11.88 kB / 483.2 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.049e-05/0.1335, allocations: 34.56 kB / 483.2 MB, free: 1.691 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 2.064e-06/0.1335, allocations: 0 / 483.2 MB, free: 1.691 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002962/0.1338, allocations: 69.67 kB / 483.3 MB, free: 1.617 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.154e-05/0.1338, allocations: 55.41 kB / 483.3 MB, free: 1.551 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.762e-05/0.1339, allocations: 105.8 kB / 483.4 MB, free: 1.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.404e-05/0.134, allocations: 25.7 kB / 483.4 MB, free: 1.406 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.244e-05/0.134, allocations: 143.9 kB / 483.6 MB, free: 1.262 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.582e-05/0.1341, allocations: 15.75 kB / 483.6 MB, free: 1.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.528e-05/0.1341, allocations: 21.7 kB / 483.6 MB, free: 1.219 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.1343, allocations: 310.8 kB / 483.9 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.084e-05/0.1343, allocations: 15.98 kB / 483.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.452e-05/0.1344, allocations: 11.94 kB / 484 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.822e-05/0.1345, allocations: 37.22 kB / 484 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1345, allocations: 4 kB / 484 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001366/0.1346, allocations: 73.52 kB / 484.1 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.1346, allocations: 4 kB / 484.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1347, allocations: 0 / 484.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.1347, allocations: 0 / 484.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.654e-05/0.1348, allocations: 8 kB / 484.1 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.1348, allocations: 4.297 kB / 484.1 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.028e-05/0.1348, allocations: 7.938 kB / 484.1 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.073e-06/0.1348, allocations: 0 / 484.1 MB, free: 0.7344 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.0001175/0.135, allocations: 134.4 kB / 484.2 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.992e-05/0.135, allocations: 11.84 kB / 484.2 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.968e-05/0.135, allocations: 11.95 kB / 484.2 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.135, allocations: 0 / 484.2 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.135, allocations: 4 kB / 484.2 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.1351, allocations: 0 / 484.2 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004358/0.1355, allocations: 362.4 kB / 484.6 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.1355, allocations: 7.984 kB / 484.6 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.985e-05/0.1356, allocations: 11.98 kB / 484.6 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.1356, allocations: 0 / 484.6 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.1356, allocations: 4 kB / 484.6 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1356, allocations: 0 / 484.6 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.1356, allocations: 3.984 kB / 484.6 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002117/0.1358, allocations: 167.5 kB / 484.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.79e-05/0.1359, allocations: 85.08 kB / 484.9 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.1359, allocations: 7.938 kB / 484.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.697e-05/0.136, allocations: 4 kB / 484.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.011e-05/0.136, allocations: 3.984 kB / 484.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.136, allocations: 0 / 484.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.282e-05/0.1361, allocations: 91.22 kB / 485 MB, free: 15.74 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1361, allocations: 0 / 485 MB, free: 15.74 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002465/0.1363, allocations: 27.69 kB / 485 MB, free: 15.71 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.0001551/0.1365, allocations: 103.2 kB / 485.1 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001408/0.1366, allocations: 31.92 kB / 485.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.1367, allocations: 0 / 485.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.937e-05/0.1367, allocations: 23.92 kB / 485.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003578/0.1371, allocations: 8 kB / 485.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005708/0.1377, allocations: 333.5 kB / 485.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003189/0.138, allocations: 0.7277 MB / 486.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.275e-05/0.138, allocations: 8 kB / 486.2 MB, free: 14.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.251e-05/0.1381, allocations: 7.438 kB / 486.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1381, allocations: 0 / 486.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of Templates: time 0.00313/0.1412, allocations: 0.589 MB / 486.8 MB, free: 13.84 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