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.0009736/0.0009736, allocations: 80.72 kB / 22.21 MB, free: 2.293 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.0009975/0.0009975, allocations: 147 kB / 25.6 MB, free: 8.914 MB / 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.9445/0.9445, allocations: 173.4 MB / 202.3 MB, free: 8.293 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.443e-06/1.443e-06, allocations: 0 / 269.2 MB, free: 9.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.076e-05/2.22e-05, allocations: 2.312 kB / 269.2 MB, free: 9.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.005619/0.005641, allocations: 1.855 MB / 271 MB, free: 7.93 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008537/0.006495, allocations: 0.5828 MB / 271.6 MB, free: 7.348 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.158e-05/0.006586, allocations: 7.938 kB / 271.6 MB, free: 7.34 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001196/0.006706, allocations: 19.73 kB / 271.7 MB, free: 7.32 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001299/0.006836, allocations: 38.34 kB / 271.7 MB, free: 7.285 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002508/0.007087, allocations: 75.67 kB / 271.8 MB, free: 7.211 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001907/0.007277, allocations: 171.3 kB / 271.9 MB, free: 7.043 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003144/0.01042, allocations: 45.86 kB / 272 MB, free: 6.996 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001567/0.01058, allocations: 96.31 kB / 272.1 MB, free: 6.902 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001324/0.01071, allocations: 64.67 kB / 272.1 MB, free: 6.84 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.561e-05/0.01074, allocations: 12 kB / 272.1 MB, free: 6.828 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.663e-05/0.0108, allocations: 23.98 kB / 272.2 MB, free: 6.805 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.215e-05/0.01086, allocations: 44.58 kB / 272.2 MB, free: 6.762 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.405e-05/0.01092, allocations: 51.83 kB / 272.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002086/0.01113, allocations: 144.2 kB / 272.4 MB, free: 6.57 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.01113, allocations: 4 kB / 272.4 MB, free: 6.566 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.01113, allocations: 1.312 kB / 272.4 MB, free: 6.566 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.947e-06/0.01114, allocations: 0 / 272.4 MB, free: 6.566 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.0005534/0.01169, allocations: 0.525 MB / 272.9 MB, free: 6.004 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.925e-05/0.01172, allocations: 8.031 kB / 272.9 MB, free: 5.996 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.703e-05/0.01177, allocations: 40.78 kB / 273 MB, free: 5.957 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001811/0.01196, allocations: 178 kB / 273.2 MB, free: 5.758 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.896e-05/0.01197, allocations: 8.656 kB / 273.2 MB, free: 5.75 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.187e-05/0.012, allocations: 20.36 kB / 273.2 MB, free: 5.73 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002008/0.0122, allocations: 164 kB / 273.3 MB, free: 5.547 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.01221, allocations: 0 / 273.3 MB, free: 5.547 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.01222, allocations: 8.688 kB / 273.4 MB, free: 5.539 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.253e-05/0.01224, allocations: 8.859 kB / 273.4 MB, free: 5.531 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.378e-05/0.01233, allocations: 51.84 kB / 273.4 MB, free: 5.48 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006289/0.01295, allocations: 0.7979 MB / 274.2 MB, free: 4.641 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001528/0.01311, allocations: 106.2 kB / 274.3 MB, free: 4.512 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001137/0.01424, allocations: 39.42 kB / 274.4 MB, free: 4.465 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.963e-05/0.01427, allocations: 7.938 kB / 274.4 MB, free: 4.457 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001524/0.01443, allocations: 124.4 kB / 274.5 MB, free: 4.312 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.01443, allocations: 0 / 274.5 MB, free: 4.312 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002429/0.01467, allocations: 133.5 kB / 274.6 MB, free: 4.176 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.374e-05/0.01471, allocations: 89.11 kB / 274.7 MB, free: 4.07 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001485/0.01486, allocations: 250.6 kB / 274.9 MB, free: 3.805 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.01488, allocations: 25.7 kB / 275 MB, free: 3.773 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.985e-05/0.01498, allocations: 195 kB / 275.2 MB, free: 3.578 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.394e-05/0.01501, allocations: 47.66 kB / 275.2 MB, free: 3.531 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.273e-05/0.01508, allocations: 51.3 kB / 275.3 MB, free: 3.473 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.01526, allocations: 0.5001 MB / 275.8 MB, free: 2.961 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.134e-05/0.0153, allocations: 23.91 kB / 275.8 MB, free: 2.938 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.978e-05/0.01538, allocations: 97.47 kB / 275.9 MB, free: 2.809 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001302/0.01551, allocations: 141.9 kB / 276 MB, free: 2.637 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.01551, allocations: 4 kB / 276 MB, free: 2.633 MB / 250.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001967/0.01571, allocations: 153.3 kB / 276.2 MB, free: 2.477 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.01572, allocations: 8 kB / 276.2 MB, free: 2.469 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.01572, allocations: 192 / 276.2 MB, free: 2.469 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.01573, allocations: 8 kB / 276.2 MB, free: 2.461 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.01585, allocations: 39.91 kB / 276.2 MB, free: 2.422 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.01586, allocations: 0 / 276.2 MB, free: 2.422 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.847e-05/0.01593, allocations: 23.89 kB / 276.2 MB, free: 2.398 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.01595, allocations: 7.984 kB / 276.3 MB, free: 2.391 MB / 250.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.992e-05/0.01605, allocations: 172.5 kB / 276.4 MB, free: 2.211 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.956e-05/0.01608, allocations: 27.8 kB / 276.4 MB, free: 2.184 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002783/0.01635, allocations: 131 kB / 276.6 MB, free: 2.047 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.01636, allocations: 4.109 kB / 276.6 MB, free: 2.043 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.01636, allocations: 11.94 kB / 276.6 MB, free: 2.031 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.01636, allocations: 0 / 276.6 MB, free: 2.031 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000149/0.01651, allocations: 149.2 kB / 276.7 MB, free: 1.859 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.01652, allocations: 4 kB / 276.7 MB, free: 1.855 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.874e-05/0.01657, allocations: 12 kB / 276.8 MB, free: 1.844 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.01658, allocations: 0 / 276.8 MB, free: 1.844 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.01659, allocations: 15.92 kB / 276.8 MB, free: 1.828 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.01659, allocations: 0 / 276.8 MB, free: 1.828 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.01659, allocations: 3.938 kB / 276.8 MB, free: 1.824 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001633/0.01676, allocations: 159.9 kB / 276.9 MB, free: 1.641 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.33e-05/0.01678, allocations: 27.83 kB / 277 MB, free: 1.613 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.859e-05/0.0168, allocations: 7.938 kB / 277 MB, free: 1.605 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.459e-05/0.01685, allocations: 11.98 kB / 277 MB, free: 1.594 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.558e-05/0.0169, allocations: 19.97 kB / 277 MB, free: 1.574 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.01691, allocations: 4 kB / 277 MB, free: 1.57 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.09e-05/0.01698, allocations: 165.4 kB / 277.2 MB, free: 1.41 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01698, allocations: 0 / 277.2 MB, free: 1.41 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000236/0.01721, allocations: 39.95 kB / 277.2 MB, free: 1.371 MB / 250.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.0001081/0.01732, allocations: 107.2 kB / 277.3 MB, free: 1.258 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001503/0.01747, allocations: 91.45 kB / 277.4 MB, free: 1.164 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.01747, allocations: 0 / 277.4 MB, free: 1.164 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.614e-05/0.01754, allocations: 55.58 kB / 277.4 MB, free: 1.105 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002468/0.01779, allocations: 38.92 kB / 277.5 MB, free: 1.07 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005812/0.01837, allocations: 348.2 kB / 277.8 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.694e-05/0.01842, allocations: 83.97 kB / 277.9 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.347e-05/0.01848, allocations: 25.47 kB / 277.9 MB, free: 0.5742 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.01859, allocations: 110.2 kB / 278 MB, free: 476 kB / 250.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01859, allocations: 0 / 278 MB, free: 476 kB / 250.7 MB Notification: Performance of Templates: time 0.004675/0.02326, allocations: 2.484 MB / 280.5 MB, free: 14.05 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.811594794038683]