Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 83.89 kB / 21.18 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002012/0.002012, allocations: 141.5 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9778/0.9778, allocations: 173.3 MB / 201.1 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.974e-06/1.974e-06, allocations: 0 / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.746e-05/2.944e-05, allocations: 6.312 kB / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002583/0.002613, allocations: 1.86 MB / 269.8 MB, free: 4.555 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009714/0.003584, allocations: 0.5958 MB / 270.4 MB, free: 3.957 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.677e-05/0.003681, allocations: 0 / 270.4 MB, free: 3.957 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001389/0.00382, allocations: 31.66 kB / 270.5 MB, free: 3.926 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001446/0.003964, allocations: 35.66 kB / 270.5 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00029/0.004254, allocations: 67.8 kB / 270.6 MB, free: 3.824 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001936/0.004448, allocations: 167.3 kB / 270.7 MB, free: 3.66 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.004597, allocations: 45.88 kB / 270.8 MB, free: 3.613 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001532/0.00475, allocations: 107.6 kB / 270.9 MB, free: 3.508 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001494/0.004899, allocations: 63.8 kB / 270.9 MB, free: 3.445 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.909e-05/0.004928, allocations: 12 kB / 271 MB, free: 3.434 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.277e-05/0.005001, allocations: 23.97 kB / 271 MB, free: 3.41 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.268e-05/0.005074, allocations: 43.84 kB / 271 MB, free: 3.367 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.266e-05/0.005137, allocations: 43.84 kB / 271.1 MB, free: 3.324 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002563/0.005393, allocations: 155.3 kB / 271.2 MB, free: 3.172 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.005396, allocations: 0 / 271.2 MB, free: 3.172 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.005398, allocations: 0 / 271.2 MB, free: 3.172 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.005404, allocations: 4 kB / 271.2 MB, free: 3.168 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.0007225/0.006126, allocations: 0.5232 MB / 271.7 MB, free: 2.605 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.006166, allocations: 8.922 kB / 271.8 MB, free: 2.598 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.352e-05/0.006229, allocations: 32.8 kB / 271.8 MB, free: 2.566 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002078/0.006437, allocations: 188 kB / 272 MB, free: 2.355 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.006459, allocations: 12.64 kB / 272 MB, free: 2.344 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.225e-05/0.006481, allocations: 16.38 kB / 272 MB, free: 2.328 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000244/0.006725, allocations: 191 kB / 272.2 MB, free: 2.117 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.006737, allocations: 0 / 272.2 MB, free: 2.117 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.00675, allocations: 4 kB / 272.2 MB, free: 2.113 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.288e-05/0.006773, allocations: 8 kB / 272.2 MB, free: 2.105 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000115/0.006888, allocations: 67.83 kB / 272.3 MB, free: 2.039 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007361/0.007624, allocations: 0.828 MB / 273.1 MB, free: 1.16 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001987/0.007823, allocations: 126 kB / 273.2 MB, free: 1.012 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.955e-05/0.007883, allocations: 43.48 kB / 273.3 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.83e-05/0.007921, allocations: 4.266 kB / 273.3 MB, free: 0.957 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001449/0.008066, allocations: 136.3 kB / 273.4 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.422e-06/0.008067, allocations: 0 / 273.4 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002775/0.008345, allocations: 153.5 kB / 273.5 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.289e-05/0.008388, allocations: 81.11 kB / 273.6 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.008532, allocations: 246.7 kB / 273.9 MB, free: 292 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.946e-05/0.008552, allocations: 33.7 kB / 273.9 MB, free: 252 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.133e-05/0.008643, allocations: 191 kB / 274.1 MB, free: 56 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.314e-05/0.008676, allocations: 47.69 kB / 274.1 MB, free: 8 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.021e-05/0.008747, allocations: 51.39 kB / 274.2 MB, free: 15.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.00889, allocations: 0.4962 MB / 274.7 MB, free: 15.44 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.714e-05/0.008947, allocations: 31.97 kB / 274.7 MB, free: 15.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.727e-05/0.009034, allocations: 109.4 kB / 274.8 MB, free: 15.27 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001497/0.009184, allocations: 141.4 kB / 275 MB, free: 15.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.009189, allocations: 11.94 kB / 275 MB, free: 15.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002145/0.009403, allocations: 173.2 kB / 275.1 MB, free: 14.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.009419, allocations: 4 kB / 275.1 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.009426, allocations: 4 kB / 275.1 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.00944, allocations: 0 / 275.1 MB, free: 14.9 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.009561, allocations: 39.91 kB / 275.2 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.226e-06/0.009569, allocations: 4 kB / 275.2 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.69e-05/0.009636, allocations: 28.06 kB / 275.2 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.505e-05/0.009651, allocations: 16.7 kB / 275.2 MB, free: 14.82 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 9.758e-05/0.009749, allocations: 176.4 kB / 275.4 MB, free: 14.63 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.296e-05/0.009772, allocations: 23.86 kB / 275.4 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002091/0.009981, allocations: 143.1 kB / 275.6 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.009983, allocations: 0 / 275.6 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.009988, allocations: 3.984 kB / 275.6 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.009992, allocations: 0 / 275.6 MB, free: 14.46 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001441/0.01014, allocations: 184.6 kB / 275.7 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.01014, allocations: 3.938 kB / 275.7 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.214e-05/0.01019, allocations: 23.98 kB / 275.8 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.01019, allocations: 0 / 275.8 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.314e-05/0.01021, allocations: 11.98 kB / 275.8 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.01021, allocations: 0 / 275.8 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.01021, allocations: 0 / 275.8 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001663/0.01037, allocations: 183.3 kB / 276 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.969e-05/0.01039, allocations: 27.72 kB / 276 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.545e-05/0.01041, allocations: 0 / 276 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.312e-05/0.01045, allocations: 15.98 kB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.751e-05/0.01051, allocations: 23.95 kB / 276 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.833e-06/0.01052, allocations: 8 kB / 276 MB, free: 13.93 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.832e-05/0.0106, allocations: 177.4 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0106, allocations: 0 / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001784/0.01077, allocations: 35.95 kB / 276.2 MB, free: 13.72 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.0001286/0.0109, allocations: 99.19 kB / 276.3 MB, free: 13.61 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001756/0.01108, allocations: 107.5 kB / 276.4 MB, free: 13.5 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.01108, allocations: 3.938 kB / 276.5 MB, free: 13.5 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.489e-05/0.01114, allocations: 44.05 kB / 276.5 MB, free: 13.45 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000225/0.01137, allocations: 55.03 kB / 276.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006737/0.01204, allocations: 359.8 kB / 276.9 MB, free: 13.02 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.688e-05/0.01209, allocations: 75.98 kB / 277 MB, free: 12.93 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.321e-05/0.01216, allocations: 33.45 kB / 277 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.084e-05/0.0122, allocations: 16.5 kB / 277 MB, free: 12.88 MB / 266.7 MB Notification: Performance of SimCode: time 8.42e-07/0.0122, allocations: 0 / 277 MB, free: 12.88 MB / 266.7 MB Notification: Performance of Templates: time 0.004129/0.01633, allocations: 2.223 MB / 279.2 MB, free: 10.71 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.9763614758849144]