Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001573/0.001574, allocations: 110.7 kB / 16.92 MB, free: 5.766 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.002035/0.002035, allocations: 191.3 kB / 17.85 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 222.9 MB / 241.5 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 41.39 kB / 300.6 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1344, allocations: 49.45 MB / 350 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003815/0.1382, allocations: 1.849 MB / 351.9 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.1395, allocations: 0.5921 MB / 352.5 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.1396, allocations: 4 kB / 352.5 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001527/0.1398, allocations: 27.66 kB / 352.5 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001835/0.14, allocations: 35.66 kB / 352.6 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002908/0.1403, allocations: 63.88 kB / 352.6 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002715/0.1406, allocations: 175.2 kB / 352.8 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001956/0.1408, allocations: 65.64 kB / 352.8 MB, free: 1.598 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001378/0.1409, allocations: 75.64 kB / 352.9 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001689/0.1411, allocations: 75.62 kB / 353 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.74e-05/0.1412, allocations: 12 kB / 353 MB, free: 1.438 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.525e-05/0.1413, allocations: 20 kB / 353 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.466e-05/0.1414, allocations: 43.84 kB / 353.1 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.1415, allocations: 87.45 kB / 353.2 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002801/0.1418, allocations: 171.6 kB / 353.3 MB, free: 1.121 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1418, allocations: 0 / 353.3 MB, free: 1.121 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.657e-06/0.1418, allocations: 0 / 353.3 MB, free: 1.121 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.1418, allocations: 3.938 kB / 353.3 MB, free: 1.117 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001029/0.1429, allocations: 0.5028 MB / 353.8 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.1429, allocations: 16.02 kB / 353.8 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.726e-05/0.143, allocations: 20.66 kB / 353.9 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003087/0.1433, allocations: 239.7 kB / 354.1 MB, free: 260 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.592e-05/0.1434, allocations: 12.66 kB / 354.1 MB, free: 248 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.799e-05/0.1434, allocations: 16.12 kB / 354.1 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004538/0.1439, allocations: 195.8 kB / 354.3 MB, free: 20 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.1439, allocations: 0 / 354.3 MB, free: 20 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.365e-05/0.1439, allocations: 8 kB / 354.3 MB, free: 12 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.421e-05/0.144, allocations: 4 kB / 354.3 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000431/0.1444, allocations: 147.8 kB / 354.5 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001371/0.1458, allocations: 0.7778 MB / 355.3 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004166/0.1462, allocations: 165 kB / 355.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000199/0.1464, allocations: 77.81 kB / 355.5 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.372e-05/0.1465, allocations: 7.984 kB / 355.5 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003364/0.1468, allocations: 156.2 kB / 355.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.783e-06/0.1468, allocations: 0 / 355.7 MB, free: 14.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008378/0.1477, allocations: 253.5 kB / 355.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.994e-05/0.1478, allocations: 85.11 kB / 356 MB, free: 14.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002534/0.148, allocations: 199 kB / 356.2 MB, free: 14.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.374e-05/0.1481, allocations: 33.7 kB / 356.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/0.1482, allocations: 140.2 kB / 356.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.523e-05/0.1483, allocations: 51.38 kB / 356.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000109/0.1484, allocations: 41.7 kB / 356.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.1486, allocations: 334.7 kB / 356.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002251/0.1488, allocations: 71.95 kB / 356.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002684/0.1491, allocations: 126.8 kB / 357 MB, free: 13.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004678/0.1496, allocations: 202.6 kB / 357.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.1496, allocations: 0 / 357.2 MB, free: 12.97 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006268/0.1502, allocations: 249.1 kB / 357.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.1503, allocations: 4 kB / 357.4 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.877e-06/0.1503, allocations: 4 kB / 357.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.1503, allocations: 0 / 357.4 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002291/0.1505, allocations: 35.92 kB / 357.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.1506, allocations: 0 / 357.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002364/0.1508, allocations: 31.81 kB / 357.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.195e-05/0.1508, allocations: 8.188 kB / 357.5 MB, free: 12.64 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch.firstActiveIndex,multiSwitch.u[2],multiSwitch.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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.0001783/0.151, allocations: 154.2 kB / 357.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.49e-05/0.1511, allocations: 19.81 kB / 357.7 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006111/0.1517, allocations: 211.6 kB / 357.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.1517, allocations: 0 / 357.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.1517, allocations: 4 kB / 357.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.14e-06/0.1518, allocations: 0 / 357.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003683/0.1521, allocations: 273.4 kB / 358.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.1521, allocations: 0 / 358.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001571/0.1523, allocations: 23.98 kB / 358.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.169e-06/0.1523, allocations: 4 kB / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.539e-05/0.1524, allocations: 0 / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.1524, allocations: 0 / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1524, allocations: 4 kB / 358.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005624/0.1529, allocations: 229.7 kB / 358.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.626e-05/0.153, allocations: 92.92 kB / 358.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.841e-05/0.1531, allocations: 4 kB / 358.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001959/0.1533, allocations: 19.97 kB / 358.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.314e-05/0.1534, allocations: 15.97 kB / 358.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.927e-05/0.1534, allocations: 12 kB / 358.5 MB, free: 11.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001713/0.1536, allocations: 140.7 kB / 358.7 MB, free: 11.35 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.024e-06/0.1536, allocations: 7.938 kB / 358.7 MB, free: 11.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004397/0.1541, allocations: 47.72 kB / 358.7 MB, free: 11.29 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000195/0.1543, allocations: 111.1 kB / 358.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000573/0.1548, allocations: 187.7 kB / 359 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.804e-06/0.1549, allocations: 4 kB / 359 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002606/0.1551, allocations: 88.27 kB / 359.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005163/0.1557, allocations: 31.98 kB / 359.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001004/0.1567, allocations: 373.4 kB / 359.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004756/0.1572, allocations: 0.7358 MB / 360.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001511/0.1573, allocations: 33.52 kB / 360.3 MB, free: 9.684 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.238e-05/0.1574, allocations: 27.42 kB / 360.3 MB, free: 9.656 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1574, allocations: 4 kB / 360.3 MB, free: 9.652 MB / 302.1 MB Notification: Performance of Templates: time 0.007468/0.1649, allocations: 2.099 MB / 362.4 MB, free: 7.582 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches