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.0008814/0.0008814, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.003976/0.003976, allocations: 160.7 kB / 24.7 MB, free: 9.418 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.9253/0.9253, allocations: 177.1 MB / 205 MB, free: 5.719 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.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 1.543e-06/1.543e-06, allocations: 0 / 325.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.355e-05/2.51e-05, allocations: 2.281 kB / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002206/0.002232, allocations: 1.841 MB / 327.7 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009142/0.003146, allocations: 0.6348 MB / 328.3 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.734e-05/0.003243, allocations: 3.938 kB / 328.3 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.003385, allocations: 31.67 kB / 328.3 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001506/0.003535, allocations: 39.59 kB / 328.4 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003283/0.003864, allocations: 79.77 kB / 328.4 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002661/0.00413, allocations: 171.9 kB / 328.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000201/0.004331, allocations: 52.33 kB / 328.7 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002311/0.004562, allocations: 107.7 kB / 328.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001425/0.004704, allocations: 59.8 kB / 328.8 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.792e-05/0.004732, allocations: 15.98 kB / 328.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.788e-05/0.00481, allocations: 27.98 kB / 328.9 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.943e-05/0.00489, allocations: 51.77 kB / 328.9 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.001e-05/0.00495, allocations: 47.84 kB / 329 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002388/0.005188, allocations: 191.3 kB / 329.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.003e-06/0.00519, allocations: 0 / 329.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.005192, allocations: 3.938 kB / 329.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.005197, allocations: 0 / 329.2 MB, free: 12.06 MB / 298.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.0007643/0.005962, allocations: 456.3 kB / 329.6 MB, free: 11.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.006002, allocations: 12.03 kB / 329.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.006137, allocations: 36.72 kB / 329.6 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002381/0.006375, allocations: 173.2 kB / 329.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.943e-05/0.006395, allocations: 12.66 kB / 329.8 MB, free: 11.33 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.086e-05/0.006416, allocations: 16.36 kB / 329.8 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00026/0.006676, allocations: 200 kB / 330 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.006689, allocations: 4.125 kB / 330 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/0.006704, allocations: 8.375 kB / 330.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.222e-05/0.006726, allocations: 7.938 kB / 330.1 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002016/0.006928, allocations: 143.8 kB / 330.2 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007167/0.007645, allocations: 0.6762 MB / 330.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002013/0.007846, allocations: 153 kB / 331 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.174e-05/0.007928, allocations: 73.8 kB / 331.1 MB, free: 9.977 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.143e-05/0.007959, allocations: 7.938 kB / 331.1 MB, free: 9.969 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001684/0.008128, allocations: 144.9 kB / 331.2 MB, free: 9.809 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.123e-06/0.008129, allocations: 112 / 331.2 MB, free: 9.809 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003971/0.008526, allocations: 257.7 kB / 331.5 MB, free: 9.551 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.148e-05/0.008567, allocations: 85.05 kB / 331.6 MB, free: 9.449 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001284/0.008696, allocations: 207 kB / 331.8 MB, free: 9.238 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.008712, allocations: 29.7 kB / 331.8 MB, free: 9.203 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.981e-05/0.008791, allocations: 144.4 kB / 332 MB, free: 9.059 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.579e-05/0.008817, allocations: 47.62 kB / 332 MB, free: 9.012 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.89e-05/0.008866, allocations: 41.7 kB / 332 MB, free: 8.965 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.84e-05/0.008955, allocations: 334.8 kB / 332.4 MB, free: 8.629 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.815e-05/0.009043, allocations: 67.95 kB / 332.4 MB, free: 8.562 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.009146, allocations: 125.3 kB / 332.6 MB, free: 8.418 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001911/0.009338, allocations: 198.7 kB / 332.8 MB, free: 8.199 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.00934, allocations: 0 / 332.8 MB, free: 8.199 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002396/0.00958, allocations: 245.3 kB / 333 MB, free: 7.953 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.009594, allocations: 11.94 kB / 333 MB, free: 7.941 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.009599, allocations: 0 / 333 MB, free: 7.941 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.00961, allocations: 4 kB / 333 MB, free: 7.938 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.608e-05/0.009706, allocations: 35.92 kB / 333 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.009713, allocations: 7.984 kB / 333.1 MB, free: 7.895 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.69e-05/0.00979, allocations: 32.06 kB / 333.1 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.125e-05/0.009801, allocations: 8 kB / 333.1 MB, free: 7.855 MB / 298.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 9.335e-05/0.009895, allocations: 141.8 kB / 333.2 MB, free: 7.707 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.707e-05/0.009912, allocations: 19.84 kB / 333.2 MB, free: 7.688 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002638/0.01018, allocations: 223.6 kB / 333.5 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-06/0.01018, allocations: 96 / 333.5 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.01018, allocations: 3.938 kB / 333.5 MB, free: 7.461 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.01019, allocations: 4 kB / 333.5 MB, free: 7.457 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001395/0.01033, allocations: 189.2 kB / 333.7 MB, free: 7.242 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.01033, allocations: 4 kB / 333.7 MB, free: 7.238 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.984e-05/0.01038, allocations: 23.98 kB / 333.7 MB, free: 7.215 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.01038, allocations: 0 / 333.7 MB, free: 7.215 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.01039, allocations: 11.92 kB / 333.7 MB, free: 7.203 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.01039, allocations: 3.938 kB / 333.7 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.0104, allocations: 160 / 333.7 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000208/0.0106, allocations: 225.7 kB / 333.9 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.647e-05/0.01062, allocations: 15.86 kB / 333.9 MB, free: 6.941 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/0.01064, allocations: 11.94 kB / 333.9 MB, free: 6.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.661e-05/0.01069, allocations: 23.91 kB / 334 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.949e-05/0.01074, allocations: 19.97 kB / 334 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.01075, allocations: 0 / 334 MB, free: 6.887 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.265e-05/0.01082, allocations: 144.6 kB / 334.1 MB, free: 6.746 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01082, allocations: 0 / 334.1 MB, free: 6.746 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001631/0.01099, allocations: 39.89 kB / 334.2 MB, free: 6.707 MB / 298.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.0001043/0.01109, allocations: 99.19 kB / 334.3 MB, free: 6.602 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002236/0.01131, allocations: 171.8 kB / 334.4 MB, free: 6.434 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.01132, allocations: 0 / 334.4 MB, free: 6.434 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.468e-05/0.01141, allocations: 83.88 kB / 334.5 MB, free: 6.352 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002006/0.01161, allocations: 38.64 kB / 334.6 MB, free: 6.316 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004691/0.01208, allocations: 404.8 kB / 335 MB, free: 5.887 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.088e-05/0.01216, allocations: 129.3 kB / 335.1 MB, free: 5.738 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.974e-05/0.0122, allocations: 16.5 kB / 335.1 MB, free: 5.723 MB / 298.7 MB Notification: Performance of SimCode: time 5.01e-07/0.0122, allocations: 4 kB / 335.1 MB, free: 5.719 MB / 298.7 MB Notification: Performance of Templates: time 0.002943/0.01514, allocations: 2.503 MB / 337.6 MB, free: 3.227 MB / 298.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=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.399849814362824]