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.001171/0.001171, allocations: 112.5 kB / 17.68 MB, free: 5.469 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.001436/0.001436, allocations: 192 kB / 18.61 MB, free: 4.543 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.349/1.349, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 50.3 kB / 302 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1428, allocations: 49.44 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00435/0.1472, allocations: 1.852 MB / 353.3 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.1486, allocations: 0.5843 MB / 353.9 MB, free: 1.234 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.1488, allocations: 11.94 kB / 353.9 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001546/0.1489, allocations: 19.73 kB / 354 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001806/0.1492, allocations: 39.66 kB / 354 MB, free: 1.164 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000344/0.1495, allocations: 71.8 kB / 354.1 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000298/0.1498, allocations: 167.3 kB / 354.2 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002259/0.1501, allocations: 69.64 kB / 354.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000137/0.1502, allocations: 63.7 kB / 354.4 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001944/0.1504, allocations: 87.55 kB / 354.4 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.626e-05/0.1505, allocations: 16 kB / 354.5 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.759e-05/0.1506, allocations: 20 kB / 354.5 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.1507, allocations: 39.83 kB / 354.5 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001179/0.1508, allocations: 83.47 kB / 354.6 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003612/0.1512, allocations: 187.2 kB / 354.8 MB, free: 384 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1512, allocations: 0 / 354.8 MB, free: 384 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1512, allocations: 0 / 354.8 MB, free: 384 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.1512, allocations: 0 / 354.8 MB, free: 384 kB / 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.001131/0.1524, allocations: 0.506 MB / 355.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.1524, allocations: 12.03 kB / 355.3 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.338e-05/0.1525, allocations: 24.59 kB / 355.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003698/0.1529, allocations: 243.6 kB / 355.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.133e-05/0.1529, allocations: 8.656 kB / 355.6 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.964e-05/0.153, allocations: 24.06 kB / 355.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000485/0.1535, allocations: 199.8 kB / 355.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.1535, allocations: 0 / 355.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.544e-05/0.1535, allocations: 4 kB / 355.8 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.88e-05/0.1536, allocations: 8 kB / 355.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004418/0.154, allocations: 143.8 kB / 355.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001583/0.1556, allocations: 0.7701 MB / 356.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004401/0.1561, allocations: 169 kB / 356.9 MB, free: 14.1 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002098/0.1563, allocations: 69.81 kB / 356.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.405e-05/0.1564, allocations: 8 kB / 356.9 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003541/0.1567, allocations: 160.3 kB / 357.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.465e-06/0.1567, allocations: 0 / 357.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008482/0.1576, allocations: 257.8 kB / 357.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.574e-05/0.1577, allocations: 81.11 kB / 357.4 MB, free: 13.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002598/0.158, allocations: 199 kB / 357.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.552e-05/0.158, allocations: 33.7 kB / 357.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002769/0.1583, allocations: 144.1 kB / 357.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.497e-05/0.1584, allocations: 47.45 kB / 357.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001012/0.1585, allocations: 41.7 kB / 357.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1586, allocations: 330.8 kB / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002241/0.1589, allocations: 67.95 kB / 358.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003063/0.1592, allocations: 128.4 kB / 358.4 MB, free: 12.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004576/0.1597, allocations: 202.7 kB / 358.6 MB, free: 12.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1597, allocations: 0 / 358.6 MB, free: 12.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006098/0.1603, allocations: 249.2 kB / 358.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.1603, allocations: 10.75 kB / 358.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.388e-06/0.1603, allocations: 4 kB / 358.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.1604, allocations: 192 / 358.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002218/0.1606, allocations: 43.92 kB / 358.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.245e-06/0.1606, allocations: 0 / 358.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000198/0.1608, allocations: 31.81 kB / 358.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.301e-05/0.1609, allocations: 8 kB / 358.9 MB, free: 11.89 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.000182/0.161, allocations: 150.2 kB / 359.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.049e-05/0.1611, allocations: 19.81 kB / 359.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005959/0.1617, allocations: 214.9 kB / 359.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.1617, allocations: 0 / 359.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.495e-06/0.1617, allocations: 4 kB / 359.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.1618, allocations: 0 / 359.3 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003863/0.1621, allocations: 265.4 kB / 359.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.1622, allocations: 3.984 kB / 359.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001539/0.1623, allocations: 23.92 kB / 359.6 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.843e-06/0.1624, allocations: 4 kB / 359.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.066e-05/0.1624, allocations: 4 kB / 359.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.1624, allocations: 4 kB / 359.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1624, allocations: 4 kB / 359.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005401/0.163, allocations: 225.6 kB / 359.8 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001702/0.1631, allocations: 88.92 kB / 359.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.568e-05/0.1632, allocations: 11.94 kB / 359.9 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001875/0.1634, allocations: 19.97 kB / 360 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.642e-05/0.1635, allocations: 15.98 kB / 360 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.007e-05/0.1635, allocations: 7.984 kB / 360 MB, free: 10.74 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002445/0.1638, allocations: 144.6 kB / 360.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1638, allocations: 0 / 360.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004262/0.1642, allocations: 43.78 kB / 360.2 MB, free: 10.55 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.0002051/0.1644, allocations: 107.2 kB / 360.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006227/0.1651, allocations: 175.8 kB / 360.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1651, allocations: 0 / 360.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002431/0.1653, allocations: 84.52 kB / 360.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005076/0.1659, allocations: 44.33 kB / 360.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009578/0.1668, allocations: 369.8 kB / 360.9 MB, free: 9.754 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004777/0.1673, allocations: 0.7397 MB / 361.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001599/0.1675, allocations: 45.45 kB / 361.7 MB, free: 8.945 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.999e-05/0.1676, allocations: 19.44 kB / 361.7 MB, free: 8.926 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1676, allocations: 0 / 361.7 MB, free: 8.926 MB / 302.1 MB Notification: Performance of Templates: time 0.00747/0.1751, allocations: 2.1 MB / 363.8 MB, free: 6.848 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 -s cvode -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