Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001405/0.001405, allocations: 75.75 kB / 21.25 MB, free: 396 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001396/0.001396, allocations: 159.7 kB / 24.49 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.541/1.541, allocations: 177.1 MB / 204.7 MB, free: 9 MB / 190.1 MB " [Timeout remaining time 178] 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(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002461/0.002461, allocations: 58.38 kB / 325.5 MB, free: 208 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1546/0.157, allocations: 53.39 MB / 378.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.004583/0.1616, allocations: 1.827 MB / 380.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001728/0.1633, allocations: 0.631 MB / 381.4 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000209/0.1635, allocations: 7.938 kB / 381.4 MB, free: 13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001942/0.1637, allocations: 23.67 kB / 381.4 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002559/0.164, allocations: 35.67 kB / 381.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004284/0.1644, allocations: 79.78 kB / 381.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003544/0.1648, allocations: 171.5 kB / 381.7 MB, free: 12.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002176/0.165, allocations: 44.52 kB / 381.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002506/0.1652, allocations: 87.62 kB / 381.8 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002325/0.1655, allocations: 75.56 kB / 381.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.348e-05/0.1655, allocations: 15.94 kB / 381.9 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/0.1656, allocations: 31.98 kB / 381.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.1657, allocations: 43.83 kB / 382 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.1658, allocations: 59.61 kB / 382 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004305/0.1663, allocations: 199.1 kB / 382.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.1663, allocations: 3.938 kB / 382.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1663, allocations: 4 kB / 382.2 MB, free: 12.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.319e-05/0.1663, allocations: 0 / 382.2 MB, free: 12.14 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001156/0.1674, allocations: 445.5 kB / 382.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.1675, allocations: 11.98 kB / 382.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002318/0.1677, allocations: 32.78 kB / 382.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003784/0.1681, allocations: 186.7 kB / 382.9 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.1681, allocations: 8.656 kB / 382.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.26e-05/0.1682, allocations: 16.38 kB / 382.9 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004476/0.1686, allocations: 200.4 kB / 383.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.1686, allocations: 0 / 383.1 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.366e-05/0.1686, allocations: 8 kB / 383.1 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.464e-05/0.1687, allocations: 7.938 kB / 383.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003422/0.169, allocations: 135.9 kB / 383.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001523/0.1705, allocations: 0.6956 MB / 384 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00037/0.1709, allocations: 153 kB / 384.1 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/0.1711, allocations: 77.73 kB / 384.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.547e-05/0.1711, allocations: 4 kB / 384.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003024/0.1714, allocations: 148.4 kB / 384.3 MB, free: 9.887 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.1714, allocations: 0 / 384.3 MB, free: 9.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006569/0.1721, allocations: 253.7 kB / 384.6 MB, free: 9.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.124e-05/0.1722, allocations: 85.11 kB / 384.7 MB, free: 9.531 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002265/0.1724, allocations: 202.9 kB / 384.9 MB, free: 9.324 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.181e-05/0.1724, allocations: 33.64 kB / 384.9 MB, free: 9.285 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001392/0.1726, allocations: 144.3 kB / 385 MB, free: 9.137 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.973e-05/0.1726, allocations: 47.64 kB / 385.1 MB, free: 9.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001565/0.1728, allocations: 45.7 kB / 385.1 MB, free: 9.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002436/0.173, allocations: 330.8 kB / 385.5 MB, free: 8.707 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001535/0.1732, allocations: 67.95 kB / 385.5 MB, free: 8.641 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002082/0.1734, allocations: 128.7 kB / 385.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000391/0.1738, allocations: 206.7 kB / 385.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.1738, allocations: 0 / 385.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004577/0.1742, allocations: 253.1 kB / 386.1 MB, free: 8.012 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/0.1742, allocations: 4 kB / 386.1 MB, free: 8.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.1743, allocations: 4 kB / 386.1 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/0.1743, allocations: 8 kB / 386.1 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000175/0.1745, allocations: 36.11 kB / 386.1 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.1745, allocations: 7.984 kB / 386.2 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001581/0.1746, allocations: 27.88 kB / 386.2 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.574e-05/0.1747, allocations: 4 kB / 386.2 MB, free: 7.922 MB / 350.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.0001674/0.1748, allocations: 145.7 kB / 386.3 MB, free: 7.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.285e-05/0.1749, allocations: 19.89 kB / 386.3 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005017/0.1754, allocations: 215.7 kB / 386.6 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-05/0.1754, allocations: 8 kB / 386.6 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.1754, allocations: 0 / 386.6 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.1754, allocations: 0 / 386.6 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002781/0.1757, allocations: 197.1 kB / 386.8 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.1757, allocations: 7.938 kB / 386.8 MB, free: 7.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.1758, allocations: 15.98 kB / 386.8 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1758, allocations: 4 kB / 386.8 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.1758, allocations: 0 / 386.8 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.783e-06/0.1758, allocations: 7.938 kB / 386.8 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.1758, allocations: 3.984 kB / 386.8 MB, free: 7.266 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004149/0.1762, allocations: 225.8 kB / 387 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.477e-05/0.1763, allocations: 23.73 kB / 387 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.481e-05/0.1763, allocations: 0 / 387 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001297/0.1764, allocations: 19.98 kB / 387.1 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.974e-05/0.1765, allocations: 15.97 kB / 387.1 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.542e-05/0.1765, allocations: 7.984 kB / 387.1 MB, free: 6.957 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001367/0.1766, allocations: 144.5 kB / 387.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1766, allocations: 0 / 387.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002692/0.1769, allocations: 35.95 kB / 387.3 MB, free: 6.781 MB / 350.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.0001747/0.1771, allocations: 111.1 kB / 387.4 MB, free: 6.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004179/0.1775, allocations: 163.8 kB / 387.5 MB, free: 6.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1775, allocations: 288 / 387.5 MB, free: 6.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000176/0.1777, allocations: 75.89 kB / 387.6 MB, free: 6.426 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.178, allocations: 52.22 kB / 387.6 MB, free: 6.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007698/0.1788, allocations: 373.3 kB / 388 MB, free: 5.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00016/0.1789, allocations: 124.8 kB / 388.1 MB, free: 5.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001136/0.1791, allocations: 37.45 kB / 388.2 MB, free: 5.801 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.454e-05/0.1791, allocations: 20.5 kB / 388.2 MB, free: 5.781 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.1791, allocations: 0 / 388.2 MB, free: 5.781 MB / 350.1 MB Notification: Performance of Templates: time 0.00702/0.1861, allocations: 2.221 MB / 390.4 MB, free: 3.605 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.528566641965881]