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.00185/0.00185, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.002413/0.002414, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.335/2.335, allocations: 222.9 MB / 241.8 MB, free: 15.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001922, allocations: 51.42 kB / 300.6 MB, free: 6.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1526, allocations: 49.45 MB / 350 MB, free: 4.777 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.005638/0.1583, allocations: 1.911 MB / 352 MB, free: 2.844 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002139/0.1605, allocations: 0.5727 MB / 352.5 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002717/0.1608, allocations: 7.938 kB / 352.5 MB, free: 2.262 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002377/0.1611, allocations: 19.84 kB / 352.6 MB, free: 2.242 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003198/0.1615, allocations: 27.73 kB / 352.6 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004508/0.1619, allocations: 55.95 kB / 352.6 MB, free: 2.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003992/0.1624, allocations: 171.2 kB / 352.8 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002635/0.1626, allocations: 61.64 kB / 352.9 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002225/0.1629, allocations: 63.7 kB / 352.9 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002481/0.1631, allocations: 75.62 kB / 353 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.053e-05/0.1632, allocations: 8 kB / 353 MB, free: 1.789 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00012/0.1633, allocations: 15.94 kB / 353 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001287/0.1635, allocations: 39.84 kB / 353.1 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001511/0.1637, allocations: 83.45 kB / 353.1 MB, free: 1.652 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002742/0.1639, allocations: 120 kB / 353.3 MB, free: 1.535 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.73e-06/0.164, allocations: 0 / 353.3 MB, free: 1.535 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.164, allocations: 0 / 353.3 MB, free: 1.535 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.164, allocations: 0 / 353.3 MB, free: 1.535 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.001559/0.1656, allocations: 0.4989 MB / 353.8 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.159e-05/0.1657, allocations: 12.03 kB / 353.8 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001247/0.1658, allocations: 32.64 kB / 353.8 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000414/0.1662, allocations: 235.7 kB / 354 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/0.1663, allocations: 12.66 kB / 354 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.506e-05/0.1663, allocations: 20.12 kB / 354.1 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006014/0.1669, allocations: 203.7 kB / 354.3 MB, free: 436 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.167, allocations: 7.938 kB / 354.3 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.871e-05/0.167, allocations: 4 kB / 354.3 MB, free: 424 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-05/0.1671, allocations: 8 kB / 354.3 MB, free: 416 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004972/0.1676, allocations: 147.7 kB / 354.4 MB, free: 268 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001889/0.1695, allocations: 0.7662 MB / 355.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005469/0.1701, allocations: 169 kB / 355.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002485/0.1703, allocations: 73.8 kB / 355.4 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.755e-05/0.1704, allocations: 4 kB / 355.4 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004227/0.1709, allocations: 156.8 kB / 355.6 MB, free: 15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 3.546e-06/0.1709, allocations: 0 / 355.6 MB, free: 15 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.001085/0.172, allocations: 253.5 kB / 355.8 MB, free: 14.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.907e-05/0.1721, allocations: 81.11 kB / 355.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000368/0.1725, allocations: 199 kB / 356.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.843e-05/0.1726, allocations: 37.69 kB / 356.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/0.1727, allocations: 140.1 kB / 356.3 MB, free: 14.26 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.39e-05/0.1728, allocations: 39.44 kB / 356.3 MB, free: 14.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.1729, allocations: 45.7 kB / 356.4 MB, free: 14.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.1731, allocations: 334.8 kB / 356.7 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002645/0.1734, allocations: 67.95 kB / 356.8 MB, free: 13.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003015/0.1737, allocations: 126.8 kB / 356.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005348/0.1743, allocations: 202.7 kB / 357.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.1743, allocations: 0 / 357.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007719/0.1751, allocations: 237.1 kB / 357.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.022e-05/0.1751, allocations: 8.188 kB / 357.3 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.287e-06/0.1751, allocations: 4 kB / 357.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.767e-05/0.1752, allocations: 4.109 kB / 357.3 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002864/0.1755, allocations: 39.84 kB / 357.4 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.591e-05/0.1755, allocations: 4.703 kB / 357.4 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000269/0.1758, allocations: 27.83 kB / 357.4 MB, free: 13.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.553e-05/0.1758, allocations: 16.08 kB / 357.4 MB, free: 13.05 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.0002271/0.1761, allocations: 149.6 kB / 357.6 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.584e-05/0.1762, allocations: 19.81 kB / 357.6 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007394/0.1769, allocations: 210.9 kB / 357.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.1769, allocations: 4 kB / 357.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.144e-05/0.177, allocations: 3.984 kB / 357.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.177, allocations: 0 / 357.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004801/0.1775, allocations: 273.4 kB / 358.1 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.1775, allocations: 0 / 358.1 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002359/0.1777, allocations: 27.92 kB / 358.1 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.1778, allocations: 4 kB / 358.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.18e-05/0.1778, allocations: 7.984 kB / 358.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.1778, allocations: 0 / 358.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1778, allocations: 0 / 358.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006823/0.1785, allocations: 232.7 kB / 358.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.68e-05/0.1786, allocations: 88.92 kB / 358.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.86e-05/0.1787, allocations: 4 kB / 358.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002265/0.1789, allocations: 23.97 kB / 358.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/0.1791, allocations: 15.92 kB / 358.5 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.521e-05/0.1791, allocations: 7.984 kB / 358.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002337/0.1794, allocations: 140.6 kB / 358.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1794, allocations: 0 / 358.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00055/0.18, allocations: 51.78 kB / 358.7 MB, free: 11.71 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.0002465/0.1802, allocations: 103.2 kB / 358.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007684/0.181, allocations: 171.8 kB / 358.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.181, allocations: 0 / 358.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003698/0.1814, allocations: 83.88 kB / 359 MB, free: 11.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006708/0.1821, allocations: 48.28 kB / 359.1 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001187/0.1833, allocations: 468.4 kB / 359.5 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004142/0.1837, allocations: 0.7397 MB / 360.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.72e-05/0.1839, allocations: 19.44 kB / 360.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of SimCode: time 8.31e-07/0.1839, allocations: 0 / 360.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of Templates: time 0.007656/0.1915, allocations: 2.406 MB / 362.7 MB, free: 7.633 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/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