Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00173/0.00173, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002188/0.002188, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.578/1.578, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001776/0.001776, allocations: 47.92 kB / 373.5 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1175, allocations: 53.33 MB / 426.8 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003722/0.1212, allocations: 1.891 MB / 428.7 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.1226, allocations: 0.6544 MB / 429.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001543/0.1228, allocations: 7.938 kB / 429.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001528/0.1229, allocations: 31.67 kB / 429.4 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002064/0.1232, allocations: 39.66 kB / 429.4 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003448/0.1235, allocations: 75.78 kB / 429.5 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002644/0.1238, allocations: 171.3 kB / 429.7 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000174/0.1239, allocations: 52.27 kB / 429.7 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001945/0.1241, allocations: 83.64 kB / 429.8 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001833/0.1243, allocations: 83.61 kB / 429.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.114e-05/0.1243, allocations: 12 kB / 429.9 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.446e-05/0.1244, allocations: 20 kB / 429.9 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.767e-05/0.1245, allocations: 43.84 kB / 429.9 MB, free: 1.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.1246, allocations: 91.45 kB / 430 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003191/0.1249, allocations: 191 kB / 430.2 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1249, allocations: 4 kB / 430.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1249, allocations: 0 / 430.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.283e-06/0.125, allocations: 0 / 430.2 MB, free: 0.8789 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.001048/0.126, allocations: 0.5181 MB / 430.7 MB, free: 316 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.126, allocations: 8.031 kB / 430.8 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001794/0.1262, allocations: 32.78 kB / 430.8 MB, free: 276 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2111/0.3373, allocations: 238.3 kB / 431 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.033e-05/0.3374, allocations: 10.28 kB / 431 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.022e-05/0.3374, allocations: 13.75 kB / 431 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004475/0.3378, allocations: 195.2 kB / 431.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.3379, allocations: 0 / 431.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.133e-05/0.3379, allocations: 8.781 kB / 431.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.419e-05/0.3379, allocations: 8.141 kB / 431.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003377/0.3382, allocations: 140.6 kB / 431.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001098/0.3393, allocations: 0.7842 MB / 432.2 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00031/0.3396, allocations: 151.7 kB / 432.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.3398, allocations: 70.5 kB / 432.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.352e-05/0.3398, allocations: 7.812 kB / 432.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002402/0.3401, allocations: 152 kB / 432.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.523e-06/0.3401, allocations: 0.5938 kB / 432.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005595/0.3406, allocations: 259.5 kB / 432.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.257e-05/0.3407, allocations: 82.02 kB / 432.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001455/0.3408, allocations: 207.6 kB / 433.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.59e-05/0.3408, allocations: 31.08 kB / 433.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.789e-05/0.3409, allocations: 139.2 kB / 433.2 MB, free: 10.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.994e-05/0.3409, allocations: 44.25 kB / 433.3 MB, free: 10.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.618e-05/0.341, allocations: 52.06 kB / 433.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.812e-05/0.341, allocations: 333.1 kB / 433.7 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.3412, allocations: 69.72 kB / 433.7 MB, free: 9.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/0.3413, allocations: 125.9 kB / 433.9 MB, free: 9.734 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002859/0.3416, allocations: 205.1 kB / 434.1 MB, free: 9.672 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.3416, allocations: 0 / 434.1 MB, free: 9.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003961/0.342, allocations: 243.7 kB / 434.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.342, allocations: 6.156 kB / 434.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.342, allocations: 1.188 kB / 434.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.3421, allocations: 7.984 kB / 434.3 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001712/0.3422, allocations: 38.95 kB / 434.3 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.3422, allocations: 3.25 kB / 434.4 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001643/0.3424, allocations: 28.34 kB / 434.4 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.71e-05/0.3424, allocations: 9.781 kB / 434.4 MB, free: 9.625 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.0001128/0.3425, allocations: 143.5 kB / 434.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.527e-05/0.3426, allocations: 23.67 kB / 434.6 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004722/0.343, allocations: 211.2 kB / 434.8 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.282e-06/0.343, allocations: 6.438 kB / 434.8 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3431, allocations: 3.781 kB / 434.8 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.3431, allocations: 5.234 kB / 434.8 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002492/0.3433, allocations: 264.7 kB / 435 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.3433, allocations: 2.734 kB / 435 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.3434, allocations: 24.03 kB / 435.1 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.3434, allocations: 1.156 kB / 435.1 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.3434, allocations: 5.016 kB / 435.1 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.968e-06/0.3435, allocations: 7.156 kB / 435.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.3435, allocations: 0.9844 kB / 435.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003926/0.3438, allocations: 235.6 kB / 435.3 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.216e-05/0.3439, allocations: 94.48 kB / 435.4 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.894e-05/0.3439, allocations: 3.281 kB / 435.4 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001432/0.3441, allocations: 22.31 kB / 435.4 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.219e-05/0.3441, allocations: 18.77 kB / 435.4 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.3441, allocations: 7.531 kB / 435.4 MB, free: 9.059 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001209/0.3443, allocations: 143 kB / 435.6 MB, free: 8.984 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3443, allocations: 0 / 435.6 MB, free: 8.984 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002829/0.3445, allocations: 40.89 kB / 435.6 MB, free: 8.984 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.0001262/0.3447, allocations: 105 kB / 435.7 MB, free: 8.898 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003898/0.3451, allocations: 171.6 kB / 435.9 MB, free: 8.895 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.3451, allocations: 0 / 435.9 MB, free: 8.895 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001774/0.3452, allocations: 80.7 kB / 436 MB, free: 8.887 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003353/0.3456, allocations: 37.53 kB / 436 MB, free: 8.879 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006535/0.3462, allocations: 378.6 kB / 436.4 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001728/0.3464, allocations: 0.7393 MB / 437.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001055/0.3465, allocations: 33.95 kB / 437.2 MB, free: 7.941 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.852e-05/0.3465, allocations: 16.78 kB / 437.2 MB, free: 7.934 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3465, allocations: 7.719 kB / 437.2 MB, free: 7.93 MB / 350.1 MB Notification: Performance of Templates: time 0.006417/0.353, allocations: 2.147 MB / 439.3 MB, free: 7.809 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.774507910013199]