Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008602/0.0008602, allocations: 91.5 kB / 21.19 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009412/0.0009412, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.003/1.003, allocations: 177 MB / 204.8 MB, free: 5.559 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5026,variableFilter="time|multiSwitch.u.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.864e-05/3.035e-05, allocations: 8.984 kB / 272.9 MB, free: 1.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003046/0.003076, allocations: 1.89 MB / 274.8 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001213/0.004289, allocations: 0.6465 MB / 275.4 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.004399, allocations: 7.938 kB / 275.4 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.004526, allocations: 27.72 kB / 275.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001386/0.004664, allocations: 35.59 kB / 275.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003147/0.004979, allocations: 79.78 kB / 275.6 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002346/0.005214, allocations: 175.3 kB / 275.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.005379, allocations: 60.47 kB / 275.8 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001945/0.005574, allocations: 99.72 kB / 275.9 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001304/0.005704, allocations: 63.78 kB / 276 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.854e-05/0.005733, allocations: 12 kB / 276 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.36e-05/0.005806, allocations: 27.98 kB / 276 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.535e-05/0.005872, allocations: 39.83 kB / 276.1 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.03e-05/0.005942, allocations: 51.84 kB / 276.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002521/0.006194, allocations: 155.3 kB / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.006196, allocations: 0 / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.006199, allocations: 4 kB / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.958e-06/0.006203, allocations: 4 kB / 276.3 MB, free: 14.05 MB / 266.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.0006215/0.006825, allocations: 0.5232 MB / 276.8 MB, free: 13.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.006863, allocations: 15.98 kB / 276.8 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001434/0.007006, allocations: 40.78 kB / 276.8 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002181/0.007224, allocations: 180.2 kB / 277 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.459e-05/0.007249, allocations: 16.66 kB / 277 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.271e-05/0.007271, allocations: 16.38 kB / 277 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002582/0.00753, allocations: 180 kB / 277.2 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.00754, allocations: 192 / 277.2 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.835e-05/0.007559, allocations: 12.36 kB / 277.2 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.304e-05/0.007582, allocations: 7.938 kB / 277.2 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001368/0.007719, allocations: 72.7 kB / 277.3 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000899/0.008618, allocations: 0.828 MB / 278.1 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001965/0.008814, allocations: 130.1 kB / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.837e-05/0.008882, allocations: 39.48 kB / 278.3 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.497e-05/0.008917, allocations: 4 kB / 278.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001504/0.009068, allocations: 124.4 kB / 278.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.123e-06/0.009069, allocations: 4 kB / 278.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002949/0.009364, allocations: 149.6 kB / 278.6 MB, free: 11.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.71e-05/0.009411, allocations: 85.11 kB / 278.7 MB, free: 11.42 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001764/0.009587, allocations: 249.6 kB / 278.9 MB, free: 11.16 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.026e-05/0.009608, allocations: 29.7 kB / 278.9 MB, free: 11.12 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.009712, allocations: 195.1 kB / 279.1 MB, free: 10.93 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.874e-05/0.009751, allocations: 47.64 kB / 279.2 MB, free: 10.88 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.152e-05/0.009822, allocations: 51.36 kB / 279.2 MB, free: 10.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.009977, allocations: 0.5001 MB / 279.7 MB, free: 10.31 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.289e-05/0.01004, allocations: 27.98 kB / 279.8 MB, free: 10.29 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.01015, allocations: 109.4 kB / 279.9 MB, free: 10.14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001868/0.01034, allocations: 146 kB / 280 MB, free: 9.969 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.01034, allocations: 0 / 280 MB, free: 9.969 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002518/0.01059, allocations: 185.2 kB / 280.2 MB, free: 9.781 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.01061, allocations: 11.17 kB / 280.2 MB, free: 9.773 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.01061, allocations: 7.938 kB / 280.2 MB, free: 9.766 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.01062, allocations: 0 / 280.2 MB, free: 9.766 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.01076, allocations: 39.91 kB / 280.2 MB, free: 9.727 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.01076, allocations: 8.188 kB / 280.3 MB, free: 9.719 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.509e-05/0.01085, allocations: 23.88 kB / 280.3 MB, free: 9.695 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.01086, allocations: 8 kB / 280.3 MB, free: 9.688 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 0.0001008/0.01096, allocations: 180.4 kB / 280.5 MB, free: 9.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.933e-05/0.01099, allocations: 19.84 kB / 280.5 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002279/0.01122, allocations: 143 kB / 280.6 MB, free: 9.336 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-06/0.01122, allocations: 4 kB / 280.6 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.01123, allocations: 0 / 280.6 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.01123, allocations: 0 / 280.6 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001693/0.0114, allocations: 192.5 kB / 280.8 MB, free: 9.109 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.0114, allocations: 4 kB / 280.8 MB, free: 9.105 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.918e-05/0.01147, allocations: 19.98 kB / 280.8 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.01148, allocations: 0 / 280.8 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.01149, allocations: 11.94 kB / 280.8 MB, free: 9.074 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.063e-06/0.01149, allocations: 0 / 280.8 MB, free: 9.074 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.01149, allocations: 0 / 280.8 MB, free: 9.074 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002101/0.0117, allocations: 177.1 kB / 281 MB, free: 8.875 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.977e-05/0.01172, allocations: 15.86 kB / 281 MB, free: 8.859 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.14e-05/0.01174, allocations: 11.94 kB / 281 MB, free: 8.848 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.005e-05/0.0118, allocations: 7.984 kB / 281.1 MB, free: 8.84 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.094e-05/0.01185, allocations: 23.97 kB / 281.1 MB, free: 8.816 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.1e-05/0.01187, allocations: 8 kB / 281.1 MB, free: 8.809 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.907e-05/0.01196, allocations: 168.5 kB / 281.2 MB, free: 8.645 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01196, allocations: 0 / 281.2 MB, free: 8.645 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002437/0.01221, allocations: 39.89 kB / 281.3 MB, free: 8.605 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.628e-05/0.0123, allocations: 110.4 kB / 281.4 MB, free: 8.492 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001904/0.0125, allocations: 107.5 kB / 281.5 MB, free: 8.383 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-06/0.0125, allocations: 384 / 281.5 MB, free: 8.383 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.374e-05/0.01258, allocations: 55.59 kB / 281.6 MB, free: 8.324 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002555/0.01284, allocations: 52.61 kB / 281.6 MB, free: 8.277 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006794/0.01351, allocations: 356.5 kB / 282 MB, free: 7.895 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.873e-05/0.01356, allocations: 79.97 kB / 282 MB, free: 7.797 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001485/0.01371, allocations: 33.41 kB / 282.1 MB, free: 7.766 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.987e-05/0.01378, allocations: 20.5 kB / 282.1 MB, free: 7.746 MB / 266.7 MB Notification: Performance of SimCode: time 7.82e-07/0.01378, allocations: 0 / 282.1 MB, free: 7.746 MB / 266.7 MB Notification: Performance of Templates: time 0.004273/0.01806, allocations: 2.22 MB / 284.3 MB, free: 5.566 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.6854903022758663]