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.001112/0.001112, allocations: 79.73 kB / 21.97 MB, free: 2.598 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.001191/0.001191, allocations: 161.1 kB / 25.33 MB, free: 9.219 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.9851/0.9851, allocations: 158.6 MB / 187.2 MB, free: 2.934 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 2.395e-06/2.395e-06, allocations: 4 kB / 251 MB, free: 7.523 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.469e-05/2.708e-05, allocations: 6.25 kB / 251 MB, free: 7.516 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002303/0.00233, allocations: 1.841 MB / 252.9 MB, free: 5.656 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008805/0.00321, allocations: 0.6591 MB / 253.5 MB, free: 4.988 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.632e-05/0.003297, allocations: 4 kB / 253.5 MB, free: 4.984 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.003417, allocations: 31.61 kB / 253.6 MB, free: 4.953 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001282/0.003545, allocations: 31.73 kB / 253.6 MB, free: 4.922 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000279/0.003824, allocations: 91.69 kB / 253.7 MB, free: 4.832 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001865/0.004011, allocations: 183.3 kB / 253.9 MB, free: 4.652 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.004144, allocations: 43.02 kB / 253.9 MB, free: 4.609 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001213/0.004265, allocations: 103.8 kB / 254 MB, free: 4.508 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001279/0.004393, allocations: 67.78 kB / 254.1 MB, free: 4.441 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.262e-05/0.004425, allocations: 16 kB / 254.1 MB, free: 4.426 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.776e-05/0.004493, allocations: 31.88 kB / 254.1 MB, free: 4.395 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.661e-05/0.00455, allocations: 47.83 kB / 254.2 MB, free: 4.348 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.353e-05/0.004603, allocations: 51.83 kB / 254.2 MB, free: 4.297 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002023/0.004806, allocations: 167.3 kB / 254.4 MB, free: 4.133 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.004808, allocations: 0 / 254.4 MB, free: 4.133 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.004809, allocations: 0 / 254.4 MB, free: 4.133 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.038e-06/0.004813, allocations: 0 / 254.4 MB, free: 4.133 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.000583/0.005396, allocations: 0.5191 MB / 254.9 MB, free: 3.578 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.005432, allocations: 11.98 kB / 254.9 MB, free: 3.566 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.041e-05/0.005492, allocations: 40.8 kB / 255 MB, free: 3.527 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001934/0.005686, allocations: 188.2 kB / 255.1 MB, free: 3.312 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.005708, allocations: 12.38 kB / 255.2 MB, free: 3.301 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.036e-05/0.005728, allocations: 16.38 kB / 255.2 MB, free: 3.285 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002469/0.005975, allocations: 193.8 kB / 255.4 MB, free: 3.07 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.797e-06/0.005984, allocations: 192 / 255.4 MB, free: 3.07 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.006002, allocations: 12.38 kB / 255.4 MB, free: 3.059 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.075e-05/0.006023, allocations: 7.938 kB / 255.4 MB, free: 3.051 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001104/0.006133, allocations: 71.89 kB / 255.5 MB, free: 2.98 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006611/0.006794, allocations: 0.8513 MB / 256.3 MB, free: 2.078 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002825/0.007077, allocations: 131.1 kB / 256.4 MB, free: 1.938 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.642e-05/0.007123, allocations: 23.69 kB / 256.5 MB, free: 1.91 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.52e-05/0.007158, allocations: 7.984 kB / 256.5 MB, free: 1.902 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001392/0.007297, allocations: 132.3 kB / 256.6 MB, free: 1.75 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.192e-06/0.007298, allocations: 0 / 256.6 MB, free: 1.75 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002829/0.007581, allocations: 157.5 kB / 256.7 MB, free: 1.59 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4e-05/0.007621, allocations: 81.11 kB / 256.8 MB, free: 1.492 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001425/0.007764, allocations: 266.6 kB / 257.1 MB, free: 1.215 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.812e-05/0.007782, allocations: 33.7 kB / 257.1 MB, free: 1.176 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.764e-05/0.00786, allocations: 191 kB / 257.3 MB, free: 0.9844 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.678e-05/0.007886, allocations: 35.72 kB / 257.3 MB, free: 0.9492 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.274e-05/0.007949, allocations: 71.3 kB / 257.4 MB, free: 0.8711 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.008064, allocations: 0.4962 MB / 257.9 MB, free: 372 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.041e-05/0.008114, allocations: 35.97 kB / 257.9 MB, free: 336 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.046e-05/0.008205, allocations: 132.7 kB / 258.1 MB, free: 160 kB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001573/0.008362, allocations: 164.8 kB / 258.2 MB, free: 15.95 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.008366, allocations: 7.922 kB / 258.2 MB, free: 15.94 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002008/0.008567, allocations: 185.3 kB / 258.4 MB, free: 15.75 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.00858, allocations: 8 kB / 258.4 MB, free: 15.75 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.008584, allocations: 0 / 258.4 MB, free: 15.75 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.008597, allocations: 4 kB / 258.4 MB, free: 15.74 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001041/0.008701, allocations: 43.91 kB / 258.5 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.453e-06/0.008707, allocations: 4 kB / 258.5 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.017e-05/0.008778, allocations: 32.08 kB / 258.5 MB, free: 15.66 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.189e-05/0.00879, allocations: 12 kB / 258.5 MB, free: 15.65 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,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * 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 9.14e-05/0.008881, allocations: 182.5 kB / 258.7 MB, free: 15.46 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.407e-05/0.008905, allocations: 23.73 kB / 258.7 MB, free: 15.44 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001426/0.009048, allocations: 111.4 kB / 258.8 MB, free: 15.32 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.009051, allocations: 4 kB / 258.8 MB, free: 15.32 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.009054, allocations: 0 / 258.8 MB, free: 15.32 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.009057, allocations: 0 / 258.8 MB, free: 15.32 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000517/0.009574, allocations: 445.1 kB / 259.3 MB, free: 14.84 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.00958, allocations: 4 kB / 259.3 MB, free: 14.84 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.009703, allocations: 19.92 kB / 259.3 MB, free: 14.82 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.009708, allocations: 320 / 259.3 MB, free: 14.82 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.009721, allocations: 4 kB / 259.3 MB, free: 14.82 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.402e-06/0.009728, allocations: 8 kB / 259.3 MB, free: 14.81 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.00973, allocations: 3.984 kB / 259.3 MB, free: 14.8 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002634/0.009994, allocations: 291.2 kB / 259.6 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.861e-05/0.01002, allocations: 15.84 kB / 259.6 MB, free: 14.48 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.368e-05/0.01005, allocations: 4 kB / 259.6 MB, free: 14.48 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.832e-05/0.01013, allocations: 15.98 kB / 259.6 MB, free: 14.46 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.75e-05/0.01021, allocations: 23.97 kB / 259.7 MB, free: 14.44 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.786e-05/0.01023, allocations: 7.984 kB / 259.7 MB, free: 14.43 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.505e-05/0.01031, allocations: 176.1 kB / 259.8 MB, free: 14.26 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01031, allocations: 0 / 259.8 MB, free: 14.26 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002301/0.01054, allocations: 43.89 kB / 259.9 MB, free: 14.22 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.0001469/0.01069, allocations: 107.2 kB / 260 MB, free: 14.1 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002121/0.0109, allocations: 111.8 kB / 260.1 MB, free: 13.99 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.01091, allocations: 0 / 260.1 MB, free: 13.99 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.753e-05/0.01098, allocations: 59.59 kB / 260.1 MB, free: 13.93 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002596/0.01124, allocations: 36.11 kB / 260.2 MB, free: 13.89 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00071/0.01195, allocations: 353.4 kB / 260.5 MB, free: 13.52 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.748e-05/0.012, allocations: 72.47 kB / 260.6 MB, free: 13.43 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.679e-05/0.01207, allocations: 29.47 kB / 260.6 MB, free: 13.4 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.365e-05/0.01212, allocations: 24.48 kB / 260.7 MB, free: 13.38 MB / 250.7 MB Notification: Performance of SimCode: time 1.303e-06/0.01212, allocations: 3.938 kB / 260.7 MB, free: 13.37 MB / 250.7 MB Notification: Performance of Templates: time 0.004193/0.01632, allocations: 2.315 MB / 263 MB, free: 11.08 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.725912942085415]