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.002028/0.002028, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002521/0.002521, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.492/1.492, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.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 0.001597/0.001597, allocations: 47.92 kB / 378.3 MB, free: 2.648 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3183, allocations: 53.37 MB / 431.6 MB, free: 6.918 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.004085/0.3224, allocations: 1.9 MB / 433.5 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001425/0.3238, allocations: 0.6582 MB / 434.2 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.3239, allocations: 7.938 kB / 434.2 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001425/0.3241, allocations: 23.73 kB / 434.2 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.3242, allocations: 35.66 kB / 434.2 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003418/0.3246, allocations: 87.72 kB / 434.3 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002744/0.3248, allocations: 171.4 kB / 434.5 MB, free: 4.031 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001794/0.325, allocations: 44.56 kB / 434.5 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002525/0.3253, allocations: 83.64 kB / 434.6 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000174/0.3254, allocations: 75.62 kB / 434.7 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.989e-05/0.3255, allocations: 16 kB / 434.7 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.447e-05/0.3256, allocations: 31.92 kB / 434.7 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.3257, allocations: 51.77 kB / 434.8 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.887e-05/0.3258, allocations: 79.55 kB / 434.9 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003217/0.3261, allocations: 196.3 kB / 435.1 MB, free: 3.469 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.3261, allocations: 0 / 435.1 MB, free: 3.469 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.3261, allocations: 0 / 435.1 MB, free: 3.469 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.3261, allocations: 4 kB / 435.1 MB, free: 3.465 MB / 334.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.001016/0.3271, allocations: 449.5 kB / 435.5 MB, free: 2.992 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.3272, allocations: 8.031 kB / 435.5 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001685/0.3273, allocations: 32.78 kB / 435.5 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003021/0.3276, allocations: 183.4 kB / 435.7 MB, free: 2.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.095e-05/0.3277, allocations: 8.656 kB / 435.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.557e-05/0.3277, allocations: 16.38 kB / 435.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004095/0.3281, allocations: 208 kB / 436 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.3281, allocations: 0 / 436 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.837e-05/0.3281, allocations: 4 kB / 436 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.176e-05/0.3281, allocations: 8 kB / 436 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000331/0.3285, allocations: 139.8 kB / 436.1 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00128/0.3298, allocations: 0.7497 MB / 436.9 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000423/0.3302, allocations: 176.9 kB / 437 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001468/0.3303, allocations: 65.81 kB / 437.1 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.936e-05/0.3304, allocations: 4 kB / 437.1 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003365/0.3307, allocations: 145 kB / 437.2 MB, free: 1.129 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.272e-06/0.3307, allocations: 0 / 437.2 MB, free: 1.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006206/0.3313, allocations: 257.7 kB / 437.5 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.29e-05/0.3314, allocations: 81.11 kB / 437.6 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002154/0.3316, allocations: 207.1 kB / 437.8 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.147e-05/0.3316, allocations: 37.64 kB / 437.8 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001129/0.3317, allocations: 148.2 kB / 437.9 MB, free: 380 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.21e-05/0.3318, allocations: 43.64 kB / 438 MB, free: 336 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.384e-05/0.3319, allocations: 41.7 kB / 438 MB, free: 288 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.332, allocations: 330.8 kB / 438.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001569/0.3322, allocations: 71.95 kB / 438.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001974/0.3324, allocations: 132.4 kB / 438.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003518/0.3327, allocations: 206.6 kB / 438.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.3327, allocations: 0 / 438.8 MB, free: 15.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004819/0.3332, allocations: 241.3 kB / 439 MB, free: 15.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.3332, allocations: 4.109 kB / 439 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.3332, allocations: 7.938 kB / 439 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.3333, allocations: 8.188 kB / 439 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001719/0.3334, allocations: 31.92 kB / 439 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.3334, allocations: 3.984 kB / 439 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001566/0.3336, allocations: 31.88 kB / 439.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/0.3336, allocations: 8 kB / 439.1 MB, free: 15.16 MB / 350.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.0001492/0.3338, allocations: 141.7 kB / 439.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.532e-05/0.3338, allocations: 23.91 kB / 439.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005074/0.3343, allocations: 211.6 kB / 439.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.124e-06/0.3343, allocations: 7.984 kB / 439.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.3343, allocations: 0 / 439.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.3343, allocations: 0 / 439.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003034/0.3346, allocations: 252.4 kB / 439.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.3346, allocations: 0 / 439.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.3348, allocations: 19.98 kB / 439.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.3348, allocations: 0 / 439.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.508e-05/0.3348, allocations: 4 kB / 439.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3348, allocations: 4 kB / 439.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3348, allocations: 3.938 kB / 439.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004032/0.3352, allocations: 232.4 kB / 440 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.3353, allocations: 19.83 kB / 440 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.736e-05/0.3353, allocations: 4.094 kB / 440 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.3355, allocations: 23.92 kB / 440 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.057e-05/0.3355, allocations: 15.97 kB / 440 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.117e-05/0.3355, allocations: 4 kB / 440 MB, free: 14.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001369/0.3357, allocations: 152.6 kB / 440.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3357, allocations: 0 / 440.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002964/0.336, allocations: 43.89 kB / 440.2 MB, free: 13.95 MB / 350.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.0001407/0.3361, allocations: 106.2 kB / 440.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003974/0.3365, allocations: 171.8 kB / 440.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.3365, allocations: 0 / 440.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001739/0.3367, allocations: 79.89 kB / 440.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.337, allocations: 39.91 kB / 440.6 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006815/0.3377, allocations: 365.7 kB / 441 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003858/0.3381, allocations: 0.7436 MB / 441.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001071/0.3382, allocations: 45.55 kB / 441.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.881e-05/0.3382, allocations: 15.44 kB / 441.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3382, allocations: 0 / 441.8 MB, free: 12.33 MB / 350.1 MB Notification: Performance of Templates: time 0.006726/0.345, allocations: 2.223 MB / 444 MB, free: 10.13 MB / 350.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.702310228953138]