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.000887/0.000887, allocations: 83.58 kB / 21.19 MB, free: 3.383 MB / 18.57 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.0009108/0.0009108, allocations: 165 kB / 24.56 MB, free: 16 kB / 18.57 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 0.9687/0.9687, allocations: 177.1 MB / 205 MB, free: 5.289 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.",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.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.863e-06/1.863e-06, allocations: 0 / 273 MB, free: 1.422 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.096e-05/2.282e-05, allocations: 6.312 kB / 273 MB, free: 1.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002339/0.002362, allocations: 1.898 MB / 274.9 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.003387, allocations: 0.6465 MB / 275.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.923e-05/0.003486, allocations: 7.938 kB / 275.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001287/0.003614, allocations: 27.66 kB / 275.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001356/0.00375, allocations: 31.67 kB / 275.6 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003414/0.004092, allocations: 91.64 kB / 275.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000209/0.0043, allocations: 171.3 kB / 275.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001484/0.004449, allocations: 40.58 kB / 275.9 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001934/0.004642, allocations: 111.7 kB / 276 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001267/0.004769, allocations: 63.8 kB / 276 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.521e-05/0.004794, allocations: 12 kB / 276.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.965e-05/0.004874, allocations: 27.98 kB / 276.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.442e-05/0.004938, allocations: 39.83 kB / 276.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.635e-05/0.004995, allocations: 51.78 kB / 276.2 MB, free: 14.19 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000207/0.005201, allocations: 151.4 kB / 276.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.005203, allocations: 0 / 276.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.005204, allocations: 0 / 276.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.005209, allocations: 3.938 kB / 276.3 MB, free: 14.04 MB / 266.7 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.0005843/0.005793, allocations: 0.5349 MB / 276.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.005828, allocations: 12.03 kB / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001234/0.005951, allocations: 40.78 kB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003578/0.006309, allocations: 184.2 kB / 277.1 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.539e-05/0.006334, allocations: 12.66 kB / 277.1 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.831e-05/0.006353, allocations: 12.38 kB / 277.1 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002473/0.0066, allocations: 184.4 kB / 277.3 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.669e-06/0.00661, allocations: 192 / 277.3 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.006626, allocations: 12.36 kB / 277.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.149e-05/0.006647, allocations: 7.938 kB / 277.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001035/0.006751, allocations: 67.84 kB / 277.4 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007006/0.007451, allocations: 0.8358 MB / 278.2 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001729/0.007624, allocations: 126 kB / 278.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.483e-05/0.007679, allocations: 43.48 kB / 278.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.251e-05/0.007712, allocations: 4 kB / 278.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001268/0.007838, allocations: 116.3 kB / 278.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.112e-06/0.007839, allocations: 0 / 278.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002709/0.00811, allocations: 157.8 kB / 278.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.994e-05/0.00815, allocations: 81.11 kB / 278.7 MB, free: 11.41 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.008291, allocations: 253.5 kB / 279 MB, free: 11.14 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.008307, allocations: 29.7 kB / 279 MB, free: 11.11 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.508e-05/0.008392, allocations: 191.1 kB / 279.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.95e-05/0.008421, allocations: 55.62 kB / 279.2 MB, free: 10.86 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.962e-05/0.008471, allocations: 43.36 kB / 279.3 MB, free: 10.81 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.008593, allocations: 0.504 MB / 279.8 MB, free: 10.29 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.897e-05/0.008641, allocations: 28.09 kB / 279.8 MB, free: 10.27 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.925e-05/0.008721, allocations: 111.8 kB / 279.9 MB, free: 10.12 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001325/0.008853, allocations: 145.4 kB / 280.1 MB, free: 9.949 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.008857, allocations: 8 kB / 280.1 MB, free: 9.941 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002017/0.009058, allocations: 169.3 kB / 280.2 MB, free: 9.77 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.009076, allocations: 11.92 kB / 280.3 MB, free: 9.758 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.009081, allocations: 0 / 280.3 MB, free: 9.758 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.009096, allocations: 4 kB / 280.3 MB, free: 9.754 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001154/0.009211, allocations: 39.92 kB / 280.3 MB, free: 9.715 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.096e-05/0.009222, allocations: 4 kB / 280.3 MB, free: 9.711 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.795e-05/0.00929, allocations: 28.06 kB / 280.3 MB, free: 9.684 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.009302, allocations: 8 kB / 280.3 MB, free: 9.676 MB / 266.7 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.0003913/0.009693, allocations: 172.5 kB / 280.5 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.919e-05/0.009722, allocations: 27.83 kB / 280.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002194/0.009942, allocations: 143.7 kB / 280.7 MB, free: 9.324 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.009945, allocations: 4 kB / 280.7 MB, free: 9.32 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.009949, allocations: 0 / 280.7 MB, free: 9.32 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.009954, allocations: 3.984 kB / 280.7 MB, free: 9.316 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001433/0.0101, allocations: 188.5 kB / 280.9 MB, free: 9.098 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.0101, allocations: 0 / 280.9 MB, free: 9.098 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.255e-05/0.01015, allocations: 23.98 kB / 280.9 MB, free: 9.074 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.01015, allocations: 3.938 kB / 280.9 MB, free: 9.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.01017, allocations: 7.938 kB / 280.9 MB, free: 9.062 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.01017, allocations: 0 / 280.9 MB, free: 9.062 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.01017, allocations: 0 / 280.9 MB, free: 9.062 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001644/0.01034, allocations: 187.7 kB / 281.1 MB, free: 8.855 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.652e-05/0.01035, allocations: 15.86 kB / 281.1 MB, free: 8.84 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/0.01037, allocations: 3.938 kB / 281.1 MB, free: 8.836 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.507e-05/0.01041, allocations: 15.98 kB / 281.1 MB, free: 8.82 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.896e-05/0.01047, allocations: 19.97 kB / 281.1 MB, free: 8.801 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.713e-06/0.01048, allocations: 4 kB / 281.1 MB, free: 8.797 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.832e-05/0.01056, allocations: 180.5 kB / 281.3 MB, free: 8.621 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01056, allocations: 0 / 281.3 MB, free: 8.621 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001751/0.01073, allocations: 39.89 kB / 281.4 MB, free: 8.582 MB / 266.7 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.0001143/0.01085, allocations: 103.2 kB / 281.5 MB, free: 8.473 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001746/0.01102, allocations: 107.5 kB / 281.6 MB, free: 8.363 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.01102, allocations: 3.938 kB / 281.6 MB, free: 8.359 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.448e-05/0.01109, allocations: 51.97 kB / 281.6 MB, free: 8.305 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002163/0.0113, allocations: 56.12 kB / 281.7 MB, free: 8.25 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006078/0.01191, allocations: 351.8 kB / 282 MB, free: 7.871 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.497e-05/0.01196, allocations: 83.97 kB / 282.1 MB, free: 7.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.933e-05/0.01203, allocations: 29.47 kB / 282.1 MB, free: 7.742 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.003e-05/0.01207, allocations: 24.48 kB / 282.2 MB, free: 7.719 MB / 266.7 MB Notification: Performance of SimCode: time 7.62e-07/0.01207, allocations: 0 / 282.2 MB, free: 7.719 MB / 266.7 MB Notification: Performance of Templates: time 0.004255/0.01632, allocations: 2.383 MB / 284.5 MB, free: 5.383 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.734591073356569]