Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.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.0008769/0.0008769, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001198/0.002075, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.000683/0.000683, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009322/0.001615, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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 0.9472/0.9472, allocations: 173.4 MB / 185.8 MB, free: 9 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08331/1.031, allocations: 52.5 MB / 238.3 MB, free: 4.438 MB / 234.7 MB " [Timeout remaining time 179] 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.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.303e-06/1.303e-06, allocations: 0 / 239.5 MB, free: 3.188 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.857e-05/1.987e-05, allocations: 2.312 kB / 239.5 MB, free: 3.184 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002336/0.002356, allocations: 1.887 MB / 241.4 MB, free: 1.289 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008815/0.003238, allocations: 0.6424 MB / 242.1 MB, free: 0.6445 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.003347, allocations: 7.938 kB / 242.1 MB, free: 0.6367 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 8.707e-05/0.003434, allocations: 27.66 kB / 242.1 MB, free: 0.6094 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.821e-05/0.003522, allocations: 35.66 kB / 242.1 MB, free: 0.5742 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000261/0.003783, allocations: 83.77 kB / 242.2 MB, free: 0.4922 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001986/0.003981, allocations: 171.4 kB / 242.4 MB, free: 332 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.004122, allocations: 55.58 kB / 242.4 MB, free: 268 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001749/0.004297, allocations: 132.4 kB / 242.6 MB, free: 136 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.004442, allocations: 67.78 kB / 242.6 MB, free: 68 kB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.854e-05/0.004471, allocations: 16 kB / 242.7 MB, free: 52 kB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.346e-05/0.004564, allocations: 16 kB / 242.7 MB, free: 36 kB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.741e-05/0.004631, allocations: 43.86 kB / 242.7 MB, free: 15.99 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.826e-05/0.00468, allocations: 39.88 kB / 242.8 MB, free: 15.95 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002083/0.004888, allocations: 143.4 kB / 242.9 MB, free: 15.81 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.735e-05/0.004905, allocations: 0 / 242.9 MB, free: 15.81 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.004906, allocations: 0 / 242.9 MB, free: 15.81 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.89e-05/0.004925, allocations: 3.938 kB / 242.9 MB, free: 15.81 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0005733/0.005499, allocations: 439.6 kB / 243.3 MB, free: 15.36 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.92e-05/0.005528, allocations: 8.031 kB / 243.3 MB, free: 15.35 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.719e-05/0.005575, allocations: 28.91 kB / 243.4 MB, free: 15.32 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001917/0.005767, allocations: 177.3 kB / 243.5 MB, free: 15.12 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.005792, allocations: 20.12 kB / 243.6 MB, free: 15.1 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.789e-05/0.00581, allocations: 16 kB / 243.6 MB, free: 15.09 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002149/0.006024, allocations: 172.5 kB / 243.7 MB, free: 14.89 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.006033, allocations: 4 kB / 243.7 MB, free: 14.89 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.006045, allocations: 8 kB / 243.8 MB, free: 14.88 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.006064, allocations: 7.984 kB / 243.8 MB, free: 14.87 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.36e-05/0.006137, allocations: 50.61 kB / 243.8 MB, free: 14.82 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005241/0.006661, allocations: 0.5719 MB / 244.4 MB, free: 14.22 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002278/0.006889, allocations: 156 kB / 244.5 MB, free: 14.05 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.938e-05/0.006919, allocations: 20.8 kB / 244.6 MB, free: 14.03 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.69e-05/0.006956, allocations: 4 kB / 244.6 MB, free: 14.03 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001344/0.00709, allocations: 119.7 kB / 244.7 MB, free: 13.89 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.583e-06/0.007092, allocations: 0 / 244.7 MB, free: 13.89 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001759/0.007267, allocations: 115.2 kB / 244.8 MB, free: 13.77 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.623e-05/0.007314, allocations: 81.11 kB / 244.9 MB, free: 13.67 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001107/0.007424, allocations: 207.4 kB / 245.1 MB, free: 13.46 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.007443, allocations: 29.7 kB / 245.1 MB, free: 13.42 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.479e-05/0.007498, allocations: 140.2 kB / 245.2 MB, free: 13.28 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.005e-05/0.007528, allocations: 39.72 kB / 245.3 MB, free: 13.24 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.255e-05/0.007581, allocations: 53.67 kB / 245.3 MB, free: 13.18 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.672e-05/0.007657, allocations: 338.7 kB / 245.7 MB, free: 12.84 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.81e-05/0.007696, allocations: 26.81 kB / 245.7 MB, free: 12.82 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.729e-05/0.007753, allocations: 88.5 kB / 245.8 MB, free: 12.7 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001112/0.007864, allocations: 145.1 kB / 245.9 MB, free: 12.52 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.007867, allocations: 4 kB / 245.9 MB, free: 12.52 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001434/0.008011, allocations: 143 kB / 246.1 MB, free: 12.37 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.008023, allocations: 8 kB / 246.1 MB, free: 12.36 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.008029, allocations: 4 kB / 246.1 MB, free: 12.36 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.618e-06/0.008039, allocations: 8.188 kB / 246.1 MB, free: 12.35 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.008151, allocations: 43.92 kB / 246.1 MB, free: 12.31 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.008156, allocations: 7.984 kB / 246.1 MB, free: 12.3 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.677e-05/0.008223, allocations: 23.89 kB / 246.1 MB, free: 12.28 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.008233, allocations: 11.94 kB / 246.2 MB, free: 12.27 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,showValue.number,showValue1.number,showValue2.number,triggeredAdd.local_reset,triggeredAdd.local_set,multiSwitch1.expr[1],multiSwitch1.expr[2],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.955e-05/0.008323, allocations: 134.6 kB / 246.3 MB, free: 12.12 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.008342, allocations: 15.98 kB / 246.3 MB, free: 12.11 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001044/0.008446, allocations: 87.06 kB / 246.4 MB, free: 12.02 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.008448, allocations: 4 kB / 246.4 MB, free: 12.01 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.00845, allocations: 0 / 246.4 MB, free: 12.01 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.008456, allocations: 4 kB / 246.4 MB, free: 12.01 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002975/0.008753, allocations: 326.5 kB / 246.7 MB, free: 11.66 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.008755, allocations: 0 / 246.7 MB, free: 11.66 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.573e-05/0.008811, allocations: 19.98 kB / 246.7 MB, free: 11.64 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.562e-05/0.008826, allocations: 19.84 kB / 246.8 MB, free: 11.62 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.474e-06/0.008829, allocations: 0 / 246.8 MB, free: 11.62 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/0.008838, allocations: 7.984 kB / 246.8 MB, free: 11.62 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.008839, allocations: 0 / 246.8 MB, free: 11.62 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.008842, allocations: 7.938 kB / 246.8 MB, free: 11.61 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001335/0.008975, allocations: 201.9 kB / 247 MB, free: 11.39 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/0.008993, allocations: 4 kB / 247 MB, free: 11.39 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.781e-05/0.009051, allocations: 11.98 kB / 247 MB, free: 11.38 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.116e-05/0.009102, allocations: 27.91 kB / 247 MB, free: 11.35 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.009113, allocations: 64 / 247 MB, free: 11.35 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.3e-05/0.009156, allocations: 59.08 kB / 247.1 MB, free: 11.29 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009156, allocations: 0 / 247.1 MB, free: 11.29 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001765/0.009333, allocations: 43.89 kB / 247.1 MB, free: 11.25 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: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001155/0.009448, allocations: 92.42 kB / 247.2 MB, free: 11.15 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001369/0.009585, allocations: 88.62 kB / 247.3 MB, free: 11.06 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.884e-06/0.009593, allocations: 4 kB / 247.3 MB, free: 11.05 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.408e-05/0.009647, allocations: 48.77 kB / 247.3 MB, free: 11 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001834/0.009831, allocations: 52.38 kB / 247.4 MB, free: 10.95 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008187/0.01065, allocations: 360.4 kB / 247.7 MB, free: 10.57 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.13e-05/0.01069, allocations: 75.98 kB / 247.8 MB, free: 10.48 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.473e-05/0.01075, allocations: 17.48 kB / 247.8 MB, free: 10.46 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.763e-05/0.01083, allocations: 75.36 kB / 247.9 MB, free: 10.39 MB / 250.7 MB Notification: Performance of SimCode: time 1.042e-06/0.01083, allocations: 0 / 247.9 MB, free: 10.39 MB / 250.7 MB Notification: Performance of Templates: time 0.00405/0.01488, allocations: 2.294 MB / 250.2 MB, free: 8.133 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.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.381157028488815]