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.001153/0.001153, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.001797/0.001797, allocations: 170 kB / 25.61 MB, free: 8.582 MB / 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.9518/0.9518, allocations: 177.1 MB / 206 MB, free: 4.516 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.163e-06/1.163e-06, allocations: 0 / 274.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.158e-05/1.275e-05, allocations: 6.25 kB / 274.2 MB, free: 4.402 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001963/0.001976, allocations: 1.877 MB / 276.1 MB, free: 2.531 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007877/0.002763, allocations: 0.6478 MB / 276.7 MB, free: 1.879 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.79e-05/0.002841, allocations: 4.5 kB / 276.7 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.194e-05/0.002933, allocations: 27.67 kB / 276.7 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001036/0.003037, allocations: 37.41 kB / 276.8 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000223/0.00326, allocations: 84.22 kB / 276.8 MB, free: 1.73 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001912/0.003451, allocations: 171.3 kB / 277 MB, free: 1.562 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001095/0.00356, allocations: 41.47 kB / 277.1 MB, free: 1.52 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001439/0.003704, allocations: 111.6 kB / 277.2 MB, free: 1.41 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.003808, allocations: 64.42 kB / 277.2 MB, free: 1.348 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.017e-05/0.003828, allocations: 14.47 kB / 277.2 MB, free: 1.336 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.781e-05/0.003886, allocations: 19.98 kB / 277.3 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.814e-05/0.003934, allocations: 51.77 kB / 277.3 MB, free: 1.266 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.437e-05/0.003978, allocations: 51.83 kB / 277.4 MB, free: 1.215 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002081/0.004186, allocations: 151.4 kB / 277.5 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.004188, allocations: 0 / 277.5 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.72e-07/0.004189, allocations: 3.938 kB / 277.5 MB, free: 1.062 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.517e-06/0.004192, allocations: 1.938 kB / 277.5 MB, free: 1.062 MB / 250.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.0004603/0.004652, allocations: 0.5232 MB / 278 MB, free: 0.5 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.08e-05/0.004683, allocations: 8.031 kB / 278 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001086/0.004792, allocations: 49.22 kB / 278.1 MB, free: 456 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001651/0.004957, allocations: 180.9 kB / 278.3 MB, free: 248 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.004974, allocations: 12.66 kB / 278.3 MB, free: 236 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.579e-05/0.00499, allocations: 16.38 kB / 278.3 MB, free: 220 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001799/0.00517, allocations: 167.5 kB / 278.5 MB, free: 28 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.005178, allocations: 192 / 278.5 MB, free: 28 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.722e-05/0.005195, allocations: 4.375 kB / 278.5 MB, free: 24 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.825e-05/0.005213, allocations: 7.938 kB / 278.5 MB, free: 16 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.696e-05/0.0053, allocations: 47.95 kB / 278.5 MB, free: 15.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006232/0.005924, allocations: 0.8051 MB / 279.3 MB, free: 15.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001385/0.006062, allocations: 110.2 kB / 279.4 MB, free: 14.99 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.343e-05/0.006106, allocations: 39.48 kB / 279.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.477e-05/0.00613, allocations: 4 kB / 279.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001132/0.006244, allocations: 112.3 kB / 279.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.062e-06/0.006245, allocations: 112 / 279.6 MB, free: 14.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002048/0.006449, allocations: 153.5 kB / 279.7 MB, free: 14.65 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.596e-05/0.006485, allocations: 77.11 kB / 279.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.006596, allocations: 261.4 kB / 280.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.00661, allocations: 29.7 kB / 280.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.624e-05/0.006686, allocations: 191.1 kB / 280.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.623e-05/0.006712, allocations: 51.61 kB / 280.3 MB, free: 14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.624e-05/0.006759, allocations: 43.34 kB / 280.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.006867, allocations: 0.5079 MB / 280.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.027e-05/0.006897, allocations: 15.98 kB / 280.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.074e-05/0.006958, allocations: 96.31 kB / 281 MB, free: 13.29 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001115/0.007069, allocations: 141.3 kB / 281.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.007072, allocations: 4 kB / 281.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001536/0.007226, allocations: 149.3 kB / 281.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.007237, allocations: 8 kB / 281.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.007243, allocations: 3.938 kB / 281.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.478e-06/0.007252, allocations: 12.17 kB / 281.3 MB, free: 12.94 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.086e-05/0.007343, allocations: 35.98 kB / 281.3 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.827e-06/0.007347, allocations: 3.938 kB / 281.3 MB, free: 12.9 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.853e-05/0.007405, allocations: 27.88 kB / 281.4 MB, free: 12.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.208e-06/0.007415, allocations: 8 kB / 281.4 MB, free: 12.87 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 8.3e-05/0.007498, allocations: 164.6 kB / 281.5 MB, free: 12.7 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.082e-05/0.007518, allocations: 23.84 kB / 281.6 MB, free: 12.67 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000157/0.007676, allocations: 135 kB / 281.7 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.007679, allocations: 4 kB / 281.7 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-06/0.007681, allocations: 4 kB / 281.7 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.007684, allocations: 0 / 281.7 MB, free: 12.53 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001297/0.007814, allocations: 161.1 kB / 281.9 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.007816, allocations: 3.938 kB / 281.9 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.704e-05/0.007863, allocations: 15.98 kB / 281.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.145e-06/0.007866, allocations: 4 kB / 281.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.933e-06/0.007873, allocations: 0 / 281.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.007875, allocations: 0 / 281.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.007876, allocations: 3.938 kB / 281.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001405/0.008017, allocations: 168.7 kB / 282.1 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.844e-05/0.008035, allocations: 19.86 kB / 282.1 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.553e-05/0.008051, allocations: 8 kB / 282.1 MB, free: 12.1 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.072e-05/0.008092, allocations: 15.92 kB / 282.1 MB, free: 12.08 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.23e-05/0.008134, allocations: 19.91 kB / 282.1 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.008142, allocations: 4 kB / 282.1 MB, free: 12.06 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.78e-05/0.0082, allocations: 164.5 kB / 282.3 MB, free: 11.9 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0082, allocations: 0 / 282.3 MB, free: 11.9 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001687/0.008369, allocations: 39.94 kB / 282.3 MB, free: 11.86 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 9.342e-05/0.008462, allocations: 103.2 kB / 282.4 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001238/0.008586, allocations: 87.52 kB / 282.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.008587, allocations: 4 kB / 282.5 MB, free: 11.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.151e-05/0.008639, allocations: 51.89 kB / 282.6 MB, free: 11.6 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001921/0.008831, allocations: 48.33 kB / 282.6 MB, free: 11.55 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004891/0.00932, allocations: 364 kB / 283 MB, free: 11.16 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.956e-05/0.00936, allocations: 79.98 kB / 283 MB, free: 11.07 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.977e-05/0.00941, allocations: 17.47 kB / 283.1 MB, free: 11.05 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.999e-05/0.0095, allocations: 110.2 kB / 283.2 MB, free: 10.94 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.0095, allocations: 0 / 283.2 MB, free: 10.94 MB / 266.7 MB Notification: Performance of Templates: time 0.003549/0.01305, allocations: 2.48 MB / 285.6 MB, free: 8.523 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.788275537081063]