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.001622/0.001622, allocations: 114.2 kB / 19.04 MB, free: 3.281 MB / 14.72 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.001805/0.001805, allocations: 184.5 kB / 22.21 MB, free: 116 kB / 14.72 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 1.438/1.438, allocations: 225.6 MB / 250.8 MB, free: 13.39 MB / 206.1 MB " [Timeout remaining time 178] 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.1.|multiSwitch.u.2.",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.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00193/0.00193, allocations: 59.84 kB / 368.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3144/0.3163, allocations: 52.14 MB / 420.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.00328/0.3196, allocations: 1.886 MB / 422.7 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.3207, allocations: 0.5921 MB / 423.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000102/0.3208, allocations: 7.938 kB / 423.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.321, allocations: 23.72 kB / 423.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001594/0.3211, allocations: 39.66 kB / 423.4 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002958/0.3214, allocations: 63.81 kB / 423.5 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002483/0.3217, allocations: 179.3 kB / 423.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001625/0.3218, allocations: 45.66 kB / 423.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.322, allocations: 71.7 kB / 423.8 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000149/0.3221, allocations: 79.56 kB / 423.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.901e-05/0.3221, allocations: 12 kB / 423.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.71e-05/0.3222, allocations: 23.98 kB / 423.9 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.027e-05/0.3223, allocations: 47.83 kB / 423.9 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.075e-05/0.3224, allocations: 79.47 kB / 424 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000269/0.3226, allocations: 189.6 kB / 424.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.3226, allocations: 0 / 424.2 MB, free: 11.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.3226, allocations: 4 kB / 424.2 MB, free: 11.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.149e-06/0.3227, allocations: 0 / 424.2 MB, free: 11.91 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.0009209/0.3236, allocations: 0.5065 MB / 424.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.3236, allocations: 8.031 kB / 424.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.246e-05/0.3237, allocations: 24.8 kB / 424.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002995/0.324, allocations: 251.7 kB / 425 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.068e-05/0.324, allocations: 12.66 kB / 425 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.268e-05/0.324, allocations: 19.94 kB / 425 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003612/0.3244, allocations: 199.8 kB / 425.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.3244, allocations: 0 / 425.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.3244, allocations: 4 kB / 425.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.92e-05/0.3244, allocations: 8 kB / 425.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000308/0.3247, allocations: 143.8 kB / 425.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/0.3258, allocations: 0.7663 MB / 426.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000331/0.3262, allocations: 157 kB / 426.3 MB, free: 9.645 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001491/0.3263, allocations: 69.81 kB / 426.3 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.273e-05/0.3264, allocations: 8 kB / 426.3 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000266/0.3266, allocations: 164.7 kB / 426.5 MB, free: 9.387 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.273e-06/0.3266, allocations: 0 / 426.5 MB, free: 9.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005971/0.3272, allocations: 253.4 kB / 426.7 MB, free: 9.133 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.48e-05/0.3273, allocations: 85.09 kB / 426.8 MB, free: 9.031 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002011/0.3275, allocations: 203 kB / 427 MB, free: 8.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/0.3275, allocations: 33.7 kB / 427.1 MB, free: 8.781 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001083/0.3276, allocations: 136.3 kB / 427.2 MB, free: 8.645 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.31e-05/0.3277, allocations: 51.58 kB / 427.2 MB, free: 8.594 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.527e-05/0.3277, allocations: 45.81 kB / 427.3 MB, free: 8.543 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.3279, allocations: 334.7 kB / 427.6 MB, free: 8.207 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.328, allocations: 71.95 kB / 427.7 MB, free: 8.137 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001854/0.3282, allocations: 130.3 kB / 427.8 MB, free: 7.988 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003322/0.3286, allocations: 202.7 kB / 428 MB, free: 7.766 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3286, allocations: 0 / 428 MB, free: 7.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004292/0.329, allocations: 249.3 kB / 428.3 MB, free: 7.516 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.329, allocations: 7.281 kB / 428.3 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.329, allocations: 4 kB / 428.3 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.329, allocations: 4 kB / 428.3 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001708/0.3292, allocations: 35.92 kB / 428.3 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.136e-06/0.3292, allocations: 4 kB / 428.3 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001546/0.3294, allocations: 27.86 kB / 428.3 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.3294, allocations: 8 kB / 428.3 MB, free: 7.43 MB / 334.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.0001438/0.3295, allocations: 162.2 kB / 428.5 MB, free: 7.262 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.406e-05/0.3296, allocations: 19.86 kB / 428.5 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004671/0.33, allocations: 202.9 kB / 428.7 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.33, allocations: 4 kB / 428.7 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.33, allocations: 0 / 428.7 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.33, allocations: 0 / 428.7 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002874/0.3303, allocations: 273.5 kB / 429 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3303, allocations: 4 kB / 429 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.3304, allocations: 23.92 kB / 429 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.3304, allocations: 3.984 kB / 429 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.44e-05/0.3305, allocations: 4 kB / 429 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3305, allocations: 96 / 429 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3305, allocations: 3.938 kB / 429 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004043/0.3309, allocations: 234.5 kB / 429.3 MB, free: 6.426 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.336e-05/0.3309, allocations: 93.02 kB / 429.3 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.578e-05/0.331, allocations: 0 / 429.3 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001338/0.3311, allocations: 23.97 kB / 429.4 MB, free: 6.293 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.975e-05/0.3312, allocations: 27.89 kB / 429.4 MB, free: 6.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.3312, allocations: 4 kB / 429.4 MB, free: 6.262 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001319/0.3313, allocations: 148.5 kB / 429.5 MB, free: 6.117 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3313, allocations: 0 / 429.5 MB, free: 6.117 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002586/0.3316, allocations: 43.89 kB / 429.6 MB, free: 6.074 MB / 334.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.0001423/0.3317, allocations: 103.2 kB / 429.7 MB, free: 5.965 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003983/0.3321, allocations: 171.8 kB / 429.9 MB, free: 5.797 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3321, allocations: 0 / 429.9 MB, free: 5.797 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001713/0.3323, allocations: 72.59 kB / 429.9 MB, free: 5.727 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003199/0.3326, allocations: 48.11 kB / 430 MB, free: 5.68 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007497/0.3333, allocations: 376.9 kB / 430.3 MB, free: 5.285 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003588/0.3337, allocations: 0.7358 MB / 431.1 MB, free: 4.523 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000106/0.3338, allocations: 33.52 kB / 431.1 MB, free: 4.492 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.02e-05/0.3339, allocations: 19.44 kB / 431.1 MB, free: 4.473 MB / 334.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3339, allocations: 192 / 431.1 MB, free: 4.473 MB / 334.1 MB Notification: Performance of Templates: time 0.005591/0.3395, allocations: 2.169 MB / 433.3 MB, free: 2.324 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.533351947553456]