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.001411/0.001411, allocations: 82.36 kB / 20.68 MB, free: 1.027 MB / 14.72 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.001482/0.001482, allocations: 167.9 kB / 23.96 MB, free: 4.148 MB / 14.72 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 1.454/1.454, allocations: 177.1 MB / 204.3 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] 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 2.535e-06/2.535e-06, allocations: 0.7031 kB / 325.1 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.057e-05/3.31e-05, allocations: 3.281 kB / 325.1 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002939/0.002972, allocations: 1.839 MB / 326.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001459/0.004431, allocations: 0.6238 MB / 327.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001239/0.004555, allocations: 7.125 kB / 327.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001479/0.004703, allocations: 26.25 kB / 327.6 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001899/0.004893, allocations: 44.55 kB / 327.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003813/0.005274, allocations: 85.97 kB / 327.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003084/0.005583, allocations: 171.2 kB / 327.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001785/0.005761, allocations: 50.83 kB / 327.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00026/0.006021, allocations: 107.7 kB / 328 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000173/0.006194, allocations: 61.45 kB / 328.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.685e-05/0.006231, allocations: 12.69 kB / 328.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.797e-05/0.006319, allocations: 33.75 kB / 328.1 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8e-05/0.006399, allocations: 42.56 kB / 328.1 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.346e-05/0.006472, allocations: 44.62 kB / 328.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003624/0.006835, allocations: 202.3 kB / 328.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.00684, allocations: 0 / 328.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.006841, allocations: 0 / 328.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.006848, allocations: 0.9688 kB / 328.4 MB, free: 14.43 MB / 302.1 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.0009848/0.007832, allocations: 450.9 kB / 328.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.00787, allocations: 13.41 kB / 328.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001821/0.008052, allocations: 32.53 kB / 328.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003279/0.00838, allocations: 184.2 kB / 329.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.008404, allocations: 10.09 kB / 329.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.878e-05/0.008433, allocations: 14.03 kB / 329.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004681/0.008901, allocations: 205.3 kB / 329.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.008915, allocations: 192 / 329.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.463e-05/0.00894, allocations: 6.656 kB / 329.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.641e-05/0.008966, allocations: 13.69 kB / 329.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003894/0.009355, allocations: 141.4 kB / 329.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001316/0.01067, allocations: 0.6803 MB / 330.1 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004562/0.01113, allocations: 151.6 kB / 330.3 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001966/0.01132, allocations: 70.75 kB / 330.3 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.164e-05/0.01139, allocations: 11.83 kB / 330.3 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003595/0.01174, allocations: 146.8 kB / 330.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.552e-06/0.01175, allocations: 3.938 kB / 330.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008065/0.01255, allocations: 254 kB / 330.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001131/0.01267, allocations: 81.17 kB / 330.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002867/0.01295, allocations: 209.4 kB / 331 MB, free: 12.63 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.792e-05/0.01299, allocations: 31.77 kB / 331.1 MB, free: 12.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/0.01315, allocations: 141.7 kB / 331.2 MB, free: 12.47 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.823e-05/0.01321, allocations: 46.84 kB / 331.2 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.149e-05/0.0133, allocations: 40.56 kB / 331.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002601/0.01356, allocations: 331.1 kB / 331.6 MB, free: 12.08 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002191/0.01378, allocations: 72.8 kB / 331.7 MB, free: 12.05 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002419/0.01402, allocations: 130.9 kB / 331.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00045/0.01447, allocations: 200 kB / 332 MB, free: 11.82 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.01447, allocations: 0 / 332 MB, free: 11.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005573/0.01503, allocations: 249.3 kB / 332.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.552e-05/0.01505, allocations: 9.562 kB / 332.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.01506, allocations: 2.219 kB / 332.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.01509, allocations: 2.375 kB / 332.3 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001833/0.01527, allocations: 32.88 kB / 332.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.612e-05/0.01528, allocations: 7.469 kB / 332.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001741/0.01546, allocations: 27.97 kB / 332.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.712e-05/0.01549, allocations: 13.8 kB / 332.3 MB, free: 11.64 MB / 302.1 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.000181/0.01567, allocations: 132.6 kB / 332.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.179e-05/0.01571, allocations: 23.91 kB / 332.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005614/0.01627, allocations: 213.4 kB / 332.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.01628, allocations: 2.312 kB / 332.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/0.01629, allocations: 5.078 kB / 332.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.01629, allocations: 96 / 332.7 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002832/0.01658, allocations: 193.8 kB / 332.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.01658, allocations: 1.188 kB / 332.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/0.0167, allocations: 27.75 kB / 332.9 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.0167, allocations: 5.359 kB / 332.9 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.951e-05/0.01672, allocations: 12.88 kB / 332.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.01672, allocations: 1.297 kB / 332.9 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.01673, allocations: 5.047 kB / 332.9 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004274/0.01715, allocations: 228.6 kB / 333.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.184e-05/0.01718, allocations: 17.52 kB / 333.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.381e-05/0.01722, allocations: 5.062 kB / 333.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001386/0.01736, allocations: 22 kB / 333.2 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.692e-05/0.01743, allocations: 22.56 kB / 333.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.01745, allocations: 2.656 kB / 333.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001625/0.01761, allocations: 139.3 kB / 333.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01761, allocations: 0 / 333.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003054/0.01791, allocations: 41.27 kB / 333.4 MB, free: 10.87 MB / 302.1 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.0002182/0.01813, allocations: 103.3 kB / 333.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004633/0.0186, allocations: 163.6 kB / 333.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.0186, allocations: 5.656 kB / 333.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000194/0.01879, allocations: 81.75 kB / 333.8 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003925/0.01919, allocations: 39.31 kB / 333.8 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009279/0.02011, allocations: 376.2 kB / 334.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001651/0.02028, allocations: 127.2 kB / 334.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.02039, allocations: 29.16 kB / 334.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.429e-05/0.02044, allocations: 21.55 kB / 334.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.02044, allocations: 1.719 kB / 334.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of Templates: time 0.007329/0.02777, allocations: 2.207 MB / 336.5 MB, free: 9.137 MB / 302.1 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.418612111359835]