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.001447/0.001447, allocations: 80.92 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001693/0.001693, allocations: 166.6 kB / 24.91 MB, free: 8.77 MB / 18.57 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.9105/0.9105, allocations: 177.1 MB / 205.3 MB, free: 5.094 MB / 186.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.854e-06/1.854e-06, allocations: 0 / 273.4 MB, free: 1.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.47e-05/2.655e-05, allocations: 9.688 kB / 273.4 MB, free: 1.184 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.003579/0.003605, allocations: 1.877 MB / 275.3 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009271/0.004533, allocations: 0.6618 MB / 276 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.439e-05/0.004617, allocations: 8 kB / 276 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000109/0.004726, allocations: 31.59 kB / 276 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001089/0.004835, allocations: 35.66 kB / 276.1 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002293/0.005064, allocations: 83.72 kB / 276.1 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001617/0.005226, allocations: 167.3 kB / 276.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.005337, allocations: 58.44 kB / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001414/0.005479, allocations: 99.72 kB / 276.4 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001199/0.005599, allocations: 67.78 kB / 276.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.131e-05/0.00562, allocations: 16 kB / 276.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.508e-05/0.005685, allocations: 31.91 kB / 276.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.566e-05/0.005741, allocations: 43.84 kB / 276.6 MB, free: 14 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.45e-05/0.005785, allocations: 43.84 kB / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000183/0.005968, allocations: 167.3 kB / 276.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.684e-06/0.00597, allocations: 0 / 276.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.005971, allocations: 0 / 276.8 MB, free: 13.79 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.386e-06/0.005974, allocations: 0 / 276.8 MB, free: 13.79 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.0004209/0.006395, allocations: 412.1 kB / 277.2 MB, free: 13.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.006426, allocations: 8.031 kB / 277.2 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.492e-05/0.006521, allocations: 32.91 kB / 277.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001572/0.006678, allocations: 173.4 kB / 277.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.875e-05/0.006697, allocations: 8.656 kB / 277.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.76e-05/0.006714, allocations: 16.38 kB / 277.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001749/0.006889, allocations: 159.8 kB / 277.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.024e-06/0.006896, allocations: 192 / 277.6 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.006907, allocations: 4.375 kB / 277.6 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.629e-05/0.006923, allocations: 19.88 kB / 277.6 MB, free: 12.9 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.924e-05/0.006992, allocations: 49.62 kB / 277.7 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005014/0.007494, allocations: 0.5593 MB / 278.2 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001477/0.007641, allocations: 190.7 kB / 278.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.369e-05/0.007675, allocations: 25.72 kB / 278.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.007699, allocations: 8.234 kB / 278.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001117/0.007811, allocations: 107.8 kB / 278.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.007812, allocations: 0 / 278.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001796/0.007992, allocations: 119.2 kB / 278.7 MB, free: 11.77 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.352e-05/0.008036, allocations: 85.05 kB / 278.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000106/0.008142, allocations: 198.4 kB / 279 MB, free: 11.46 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.591e-05/0.008157, allocations: 25.7 kB / 279 MB, free: 11.43 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.245e-05/0.00822, allocations: 132.3 kB / 279.1 MB, free: 11.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.685e-05/0.008247, allocations: 47.62 kB / 279.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-05/0.008295, allocations: 45.69 kB / 279.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.885e-05/0.008374, allocations: 334.8 kB / 279.5 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.088e-05/0.008405, allocations: 22.81 kB / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.932e-05/0.008454, allocations: 70.84 kB / 279.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.616e-05/0.00855, allocations: 119.2 kB / 279.7 MB, free: 10.6 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.008553, allocations: 4 kB / 279.7 MB, free: 10.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0001323/0.008685, allocations: 143.1 kB / 279.9 MB, free: 10.45 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.788e-06/0.008695, allocations: 4 kB / 279.9 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.008699, allocations: 0 / 279.9 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.076e-05/0.00871, allocations: 7.938 kB / 279.9 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.625e-05/0.008797, allocations: 35.92 kB / 279.9 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.587e-06/0.0088, allocations: 0 / 279.9 MB, free: 10.4 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.753e-05/0.008858, allocations: 27.88 kB / 280 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.008867, allocations: 4 kB / 280 MB, free: 10.37 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 8.709e-05/0.008954, allocations: 144.7 kB / 280.1 MB, free: 10.21 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.756e-05/0.008972, allocations: 11.98 kB / 280.1 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001407/0.009113, allocations: 111.7 kB / 280.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.009115, allocations: 3.938 kB / 280.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.009118, allocations: 4 kB / 280.2 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.009121, allocations: 0 / 280.2 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001151/0.009236, allocations: 117.8 kB / 280.3 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.009239, allocations: 4 kB / 280.3 MB, free: 9.945 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.422e-05/0.009293, allocations: 23.92 kB / 280.4 MB, free: 9.922 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.009295, allocations: 0 / 280.4 MB, free: 9.922 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.0093, allocations: 4 kB / 280.4 MB, free: 9.918 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.009302, allocations: 4 kB / 280.4 MB, free: 9.914 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.009303, allocations: 0 / 280.4 MB, free: 9.914 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001119/0.009415, allocations: 142.4 kB / 280.5 MB, free: 9.75 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.514e-05/0.00943, allocations: 19.8 kB / 280.5 MB, free: 9.73 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.407e-05/0.009444, allocations: 4 kB / 280.5 MB, free: 9.727 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.92e-05/0.009484, allocations: 11.98 kB / 280.5 MB, free: 9.715 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.919e-05/0.009523, allocations: 19.91 kB / 280.6 MB, free: 9.695 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-06/0.009529, allocations: 7.938 kB / 280.6 MB, free: 9.688 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.229e-05/0.009571, allocations: 54.17 kB / 280.6 MB, free: 9.633 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009571, allocations: 4 kB / 280.6 MB, free: 9.629 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000149/0.00972, allocations: 39.89 kB / 280.7 MB, free: 9.59 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.452e-05/0.009815, allocations: 88.41 kB / 280.8 MB, free: 9.492 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000113/0.009928, allocations: 84.34 kB / 280.8 MB, free: 9.41 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/0.009933, allocations: 4 kB / 280.8 MB, free: 9.406 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.537e-05/0.009978, allocations: 36.78 kB / 280.9 MB, free: 9.367 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001376/0.01012, allocations: 40.28 kB / 280.9 MB, free: 9.328 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005073/0.01062, allocations: 364 kB / 281.3 MB, free: 8.938 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.175e-05/0.01066, allocations: 79.98 kB / 281.4 MB, free: 8.84 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.216e-05/0.01072, allocations: 21.47 kB / 281.4 MB, free: 8.82 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.894e-05/0.01081, allocations: 83.34 kB / 281.5 MB, free: 8.738 MB / 266.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01081, allocations: 4 kB / 281.5 MB, free: 8.734 MB / 266.7 MB Notification: Performance of Templates: time 0.003484/0.01429, allocations: 2.275 MB / 283.7 MB, free: 6.512 MB / 266.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 -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.621779686771333]