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.0008155/0.0008155, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00111/0.001926, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007163/0.0007163, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008708/0.001587, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.9415/0.9415, allocations: 177.2 MB / 189.6 MB, free: 5.305 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08928/1.031, allocations: 53.65 MB / 243.3 MB, free: 15.57 MB / 250.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.[0-9,]+.",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.[0-9,]+.",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 0 / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.011e-05/2.131e-05, allocations: 4.984 kB / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.002955/0.002976, allocations: 1.943 MB / 246.5 MB, free: 12.35 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.00418, allocations: 0.6502 MB / 247.1 MB, free: 11.7 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.004307, allocations: 7.938 kB / 247.1 MB, free: 11.69 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001028/0.004409, allocations: 27.73 kB / 247.2 MB, free: 11.66 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001392/0.004548, allocations: 39.59 kB / 247.2 MB, free: 11.62 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003107/0.004859, allocations: 83.66 kB / 247.3 MB, free: 11.54 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002283/0.005087, allocations: 171.3 kB / 247.4 MB, free: 11.37 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.00524, allocations: 50.52 kB / 247.5 MB, free: 11.32 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002676/0.005507, allocations: 120.7 kB / 247.6 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000167/0.005674, allocations: 59.78 kB / 247.7 MB, free: 11.14 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.489e-05/0.005709, allocations: 20 kB / 247.7 MB, free: 11.12 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001124/0.005821, allocations: 31.92 kB / 247.7 MB, free: 11.09 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.433e-05/0.005886, allocations: 31.81 kB / 247.7 MB, free: 11.06 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.989e-05/0.005946, allocations: 39.88 kB / 247.8 MB, free: 11.02 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002506/0.006196, allocations: 139.4 kB / 247.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.744e-05/0.006214, allocations: 0 / 247.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.006215, allocations: 0 / 247.9 MB, free: 10.89 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.691e-05/0.006232, allocations: 7.875 kB / 247.9 MB, free: 10.88 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.0006959/0.006927, allocations: 447.8 kB / 248.4 MB, free: 10.41 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.006962, allocations: 8.031 kB / 248.4 MB, free: 10.41 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000179/0.007141, allocations: 110 kB / 248.5 MB, free: 10.28 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002262/0.007367, allocations: 177.3 kB / 248.7 MB, free: 10.08 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.425e-05/0.007391, allocations: 12.66 kB / 248.7 MB, free: 10.07 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.007412, allocations: 16.38 kB / 248.7 MB, free: 10.05 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000244/0.007656, allocations: 157 kB / 248.8 MB, free: 9.883 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.007666, allocations: 192 / 248.8 MB, free: 9.883 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.007681, allocations: 4.375 kB / 248.8 MB, free: 9.879 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.467e-05/0.007705, allocations: 15.94 kB / 248.9 MB, free: 9.863 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001126/0.007818, allocations: 56.31 kB / 248.9 MB, free: 9.809 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007347/0.008553, allocations: 0.5632 MB / 249.5 MB, free: 9.215 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000191/0.008744, allocations: 178.7 kB / 249.7 MB, free: 9.02 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.494e-05/0.008789, allocations: 33.83 kB / 249.7 MB, free: 8.98 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.791e-05/0.008826, allocations: 8 kB / 249.7 MB, free: 8.973 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001497/0.008976, allocations: 99.88 kB / 249.8 MB, free: 8.855 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 2.885e-06/0.008979, allocations: 3.984 kB / 249.8 MB, free: 8.852 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002399/0.009219, allocations: 115.6 kB / 249.9 MB, free: 8.73 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.009268, allocations: 89.2 kB / 250 MB, free: 8.625 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/0.009389, allocations: 194.4 kB / 250.2 MB, free: 8.422 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.009408, allocations: 29.7 kB / 250.2 MB, free: 8.387 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.917e-05/0.009477, allocations: 136.3 kB / 250.3 MB, free: 8.25 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.469e-05/0.009512, allocations: 43.67 kB / 250.4 MB, free: 8.207 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.196e-05/0.009574, allocations: 45.62 kB / 250.4 MB, free: 8.156 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.009732, allocations: 334.8 kB / 250.8 MB, free: 7.82 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.697e-05/0.009779, allocations: 22.83 kB / 250.8 MB, free: 7.797 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.309e-05/0.009852, allocations: 77.27 kB / 250.9 MB, free: 7.699 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001312/0.009983, allocations: 127.3 kB / 251 MB, free: 7.547 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.009986, allocations: 4 kB / 251 MB, free: 7.543 MB / 250.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000134/0.01012, allocations: 135.1 kB / 251.1 MB, free: 7.402 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.01013, allocations: 4 kB / 251.1 MB, free: 7.398 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.01014, allocations: 4 kB / 251.1 MB, free: 7.395 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.318e-06/0.01015, allocations: 3.938 kB / 251.1 MB, free: 7.391 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001089/0.01026, allocations: 47.91 kB / 251.2 MB, free: 7.344 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.417e-06/0.01026, allocations: 0 / 251.2 MB, free: 7.344 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.494e-05/0.01032, allocations: 19.89 kB / 251.2 MB, free: 7.324 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.01033, allocations: 11.98 kB / 251.2 MB, free: 7.312 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 7.895e-05/0.01041, allocations: 132.8 kB / 251.3 MB, free: 7.172 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.766e-05/0.01042, allocations: 15.98 kB / 251.4 MB, free: 7.156 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001467/0.01057, allocations: 107 kB / 251.5 MB, free: 7.051 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.01057, allocations: 3.938 kB / 251.5 MB, free: 7.047 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.01058, allocations: 4 kB / 251.5 MB, free: 7.043 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.01058, allocations: 0 / 251.5 MB, free: 7.043 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001131/0.01069, allocations: 121.8 kB / 251.6 MB, free: 6.906 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.01069, allocations: 0 / 251.6 MB, free: 6.906 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.361e-05/0.01075, allocations: 19.98 kB / 251.6 MB, free: 6.887 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.562e-05/0.01076, allocations: 23.84 kB / 251.6 MB, free: 6.863 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.01077, allocations: 4 kB / 251.6 MB, free: 6.859 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.157e-06/0.01077, allocations: 8 kB / 251.6 MB, free: 6.852 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.01078, allocations: 3.938 kB / 251.6 MB, free: 6.848 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01078, allocations: 3.938 kB / 251.6 MB, free: 6.844 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001069/0.01088, allocations: 134 kB / 251.8 MB, free: 6.691 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.315e-05/0.0109, allocations: 0 / 251.8 MB, free: 6.691 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.836e-05/0.01094, allocations: 12 kB / 251.8 MB, free: 6.68 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.096e-05/0.01098, allocations: 19.91 kB / 251.8 MB, free: 6.66 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/0.01098, allocations: 11.92 kB / 251.8 MB, free: 6.648 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.927e-05/0.01102, allocations: 57.95 kB / 251.9 MB, free: 6.59 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01102, allocations: 4 kB / 251.9 MB, free: 6.586 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000136/0.01116, allocations: 35.95 kB / 251.9 MB, free: 6.551 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.0001066/0.01127, allocations: 92.28 kB / 252 MB, free: 6.449 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000121/0.01139, allocations: 80.69 kB / 252.1 MB, free: 6.367 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.256e-06/0.0114, allocations: 4 kB / 252.1 MB, free: 6.363 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 4.734e-05/0.01144, allocations: 44.77 kB / 252.1 MB, free: 6.316 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001703/0.01161, allocations: 61.03 kB / 252.2 MB, free: 6.258 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009414/0.01255, allocations: 363.6 kB / 252.5 MB, free: 5.867 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.022e-05/0.01259, allocations: 79.97 kB / 252.6 MB, free: 5.77 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.534e-05/0.01265, allocations: 21.47 kB / 252.6 MB, free: 5.746 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.966e-05/0.01274, allocations: 83.3 kB / 252.7 MB, free: 5.664 MB / 250.7 MB Notification: Performance of SimCode: time 7.11e-07/0.01274, allocations: 4 kB / 252.7 MB, free: 5.66 MB / 250.7 MB Notification: Performance of Templates: time 0.003922/0.01666, allocations: 2.383 MB / 255.1 MB, free: 3.32 MB / 250.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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 240] 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","",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.541329334490001]