Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.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.001507/0.001507, allocations: 80.8 kB / 22.29 MB, free: 2.199 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.001726/0.001726, allocations: 170 kB / 25.7 MB, free: 8.387 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8459/0.8459, allocations: 158.6 MB / 187.6 MB, free: 2.766 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 251.5 MB, free: 7.277 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.418e-05/1.55e-05, allocations: 2.312 kB / 251.5 MB, free: 7.273 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002041/0.002057, allocations: 1.837 MB / 253.3 MB, free: 5.418 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008208/0.002878, allocations: 0.6785 MB / 254 MB, free: 4.73 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.878e-05/0.002957, allocations: 7.938 kB / 254 MB, free: 4.723 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001144/0.003071, allocations: 31.66 kB / 254.1 MB, free: 4.691 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000104/0.003175, allocations: 31.67 kB / 254.1 MB, free: 4.66 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002364/0.003411, allocations: 87.7 kB / 254.2 MB, free: 4.574 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001656/0.003577, allocations: 183.3 kB / 254.4 MB, free: 4.395 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.003691, allocations: 47.66 kB / 254.4 MB, free: 4.348 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001166/0.003807, allocations: 103.7 kB / 254.5 MB, free: 4.246 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001189/0.003926, allocations: 67.78 kB / 254.6 MB, free: 4.18 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.321e-05/0.00395, allocations: 16 kB / 254.6 MB, free: 4.164 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.061e-05/0.00401, allocations: 27.98 kB / 254.6 MB, free: 4.137 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.981e-05/0.00406, allocations: 43.83 kB / 254.7 MB, free: 4.094 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 4.48e-05/0.004105, allocations: 47.84 kB / 254.7 MB, free: 4.047 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001806/0.004285, allocations: 167.3 kB / 254.9 MB, free: 3.883 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.733e-06/0.004287, allocations: 0 / 254.9 MB, free: 3.883 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.004288, allocations: 0 / 254.9 MB, free: 3.883 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.937e-06/0.004292, allocations: 4 kB / 254.9 MB, free: 3.879 MB / 234.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.0004633/0.004755, allocations: 407.8 kB / 255.3 MB, free: 3.457 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.882e-05/0.004784, allocations: 11.98 kB / 255.3 MB, free: 3.445 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.068e-05/0.004824, allocations: 28.92 kB / 255.3 MB, free: 3.418 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001667/0.004991, allocations: 177.4 kB / 255.5 MB, free: 3.219 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.005007, allocations: 8.375 kB / 255.5 MB, free: 3.211 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.137e-05/0.005029, allocations: 28.34 kB / 255.5 MB, free: 3.184 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000188/0.005217, allocations: 177.3 kB / 255.7 MB, free: 2.988 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.632e-06/0.005223, allocations: 192 / 255.7 MB, free: 2.988 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.005236, allocations: 8.375 kB / 255.7 MB, free: 2.98 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.151e-05/0.005257, allocations: 7.938 kB / 255.7 MB, free: 2.973 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.186e-05/0.005329, allocations: 58.59 kB / 255.8 MB, free: 2.914 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000472/0.005801, allocations: 0.5641 MB / 256.3 MB, free: 2.32 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002056/0.006007, allocations: 148.1 kB / 256.5 MB, free: 2.164 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.245e-05/0.006039, allocations: 24.84 kB / 256.5 MB, free: 2.137 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.257e-05/0.006062, allocations: 4 kB / 256.5 MB, free: 2.133 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001096/0.006171, allocations: 111.8 kB / 256.6 MB, free: 2.004 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 8.92e-07/0.006172, allocations: 0 / 256.6 MB, free: 2.004 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001587/0.006331, allocations: 119.2 kB / 256.7 MB, free: 1.879 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.84e-05/0.006369, allocations: 81.11 kB / 256.8 MB, free: 1.781 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.885e-05/0.006468, allocations: 207.3 kB / 257 MB, free: 1.566 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.006487, allocations: 41.64 kB / 257.1 MB, free: 1.52 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.809e-05/0.006535, allocations: 124.3 kB / 257.2 MB, free: 1.395 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.356e-05/0.006558, allocations: 35.73 kB / 257.2 MB, free: 1.359 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.202e-05/0.00661, allocations: 61.64 kB / 257.3 MB, free: 1.293 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.064e-05/0.006681, allocations: 330.8 kB / 257.6 MB, free: 0.9609 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.23e-05/0.006713, allocations: 22.83 kB / 257.6 MB, free: 0.9375 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.651e-05/0.00677, allocations: 100.4 kB / 257.7 MB, free: 0.8086 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001073/0.006877, allocations: 140.9 kB / 257.8 MB, free: 0.6367 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.006879, allocations: 0 / 257.8 MB, free: 0.6367 MB / 234.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001329/0.007012, allocations: 147 kB / 258 MB, free: 496 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.007023, allocations: 12.19 kB / 258 MB, free: 484 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.007028, allocations: 4 kB / 258 MB, free: 480 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.007038, allocations: 4 kB / 258 MB, free: 476 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.825e-05/0.007127, allocations: 35.97 kB / 258 MB, free: 440 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.007132, allocations: 7.938 kB / 258.1 MB, free: 432 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.198e-05/0.007194, allocations: 32.14 kB / 258.1 MB, free: 400 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.007202, allocations: 4 kB / 258.1 MB, free: 396 kB / 234.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 7.929e-05/0.007281, allocations: 138.6 kB / 258.2 MB, free: 244 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.092e-05/0.007302, allocations: 23.92 kB / 258.2 MB, free: 220 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.373e-05/0.007396, allocations: 91.44 kB / 258.3 MB, free: 120 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.007397, allocations: 0 / 258.3 MB, free: 120 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.007399, allocations: 4 kB / 258.3 MB, free: 116 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.6e-06/0.007405, allocations: 3.938 kB / 258.3 MB, free: 112 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000255/0.00766, allocations: 330.4 kB / 258.7 MB, free: 15.76 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.007662, allocations: 11.92 kB / 258.7 MB, free: 15.75 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.169e-05/0.007704, allocations: 11.98 kB / 258.7 MB, free: 15.74 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.007708, allocations: 4 kB / 258.7 MB, free: 15.73 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.805e-06/0.007716, allocations: 3.984 kB / 258.7 MB, free: 15.73 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.007717, allocations: 0 / 258.7 MB, free: 15.73 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.007718, allocations: 8 kB / 258.7 MB, free: 15.72 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001152/0.007833, allocations: 197.7 kB / 258.9 MB, free: 15.51 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.635e-05/0.00785, allocations: 23.78 kB / 258.9 MB, free: 15.49 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.717e-05/0.007867, allocations: 8 kB / 258.9 MB, free: 15.48 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.436e-05/0.007921, allocations: 11.98 kB / 258.9 MB, free: 15.47 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.618e-05/0.007968, allocations: 19.97 kB / 259 MB, free: 15.45 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.007978, allocations: 4 kB / 259 MB, free: 15.45 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.587e-05/0.008014, allocations: 57.77 kB / 259 MB, free: 15.39 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008014, allocations: 0 / 259 MB, free: 15.39 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001643/0.008178, allocations: 39.95 kB / 259.1 MB, free: 15.35 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.0001019/0.00828, allocations: 84.42 kB / 259.1 MB, free: 15.25 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001305/0.00841, allocations: 100.5 kB / 259.2 MB, free: 15.15 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.008413, allocations: 0 / 259.2 MB, free: 15.15 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.246e-05/0.008465, allocations: 40.78 kB / 259.3 MB, free: 15.11 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001799/0.008645, allocations: 44.14 kB / 259.3 MB, free: 15.07 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005714/0.009217, allocations: 336.1 kB / 259.7 MB, free: 14.71 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.801e-05/0.009265, allocations: 76.28 kB / 259.7 MB, free: 14.62 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.911e-05/0.009324, allocations: 17.73 kB / 259.7 MB, free: 14.61 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001113/0.009435, allocations: 79.36 kB / 259.8 MB, free: 14.53 MB / 250.7 MB Notification: Performance of SimCode: time 5.31e-07/0.009436, allocations: 4 kB / 259.8 MB, free: 14.52 MB / 250.7 MB Notification: Performance of Templates: time 0.004363/0.0138, allocations: 2.229 MB / 262.1 MB, free: 12.31 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.550360009074211]