Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009279/0.0009279, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.0009875/0.0009875, allocations: 170.4 kB / 24.91 MB, free: 8.723 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.8789/0.8789, allocations: 177.1 MB / 205.3 MB, free: 4.492 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.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.383e-06/1.383e-06, allocations: 0 / 273.5 MB, free: 4.398 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.224e-05/1.363e-05, allocations: 5.266 kB / 273.5 MB, free: 4.395 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002034/0.002048, allocations: 1.912 MB / 275.4 MB, free: 2.484 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009039/0.002952, allocations: 0.691 MB / 276.1 MB, free: 1.789 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.384e-05/0.003036, allocations: 9.969 kB / 276.1 MB, free: 1.781 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001082/0.003144, allocations: 27.72 kB / 276.1 MB, free: 1.754 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001062/0.00325, allocations: 35.61 kB / 276.2 MB, free: 1.719 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002417/0.003492, allocations: 92.2 kB / 276.3 MB, free: 1.629 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000175/0.003667, allocations: 183.4 kB / 276.4 MB, free: 1.449 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.003782, allocations: 55.58 kB / 276.5 MB, free: 1.387 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001677/0.00395, allocations: 111.7 kB / 276.6 MB, free: 1.277 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.004079, allocations: 67.78 kB / 276.7 MB, free: 1.211 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.472e-05/0.004104, allocations: 16 kB / 276.7 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.511e-05/0.004189, allocations: 31.97 kB / 276.7 MB, free: 1.164 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.889e-05/0.004238, allocations: 47.83 kB / 276.8 MB, free: 1.117 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.558e-05/0.004284, allocations: 43.84 kB / 276.8 MB, free: 1.074 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000195/0.004479, allocations: 175.2 kB / 277 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.674e-06/0.00448, allocations: 0 / 277 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.004481, allocations: 0 / 277 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.004484, allocations: 4 kB / 277 MB, free: 0.8984 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.0004705/0.004955, allocations: 407.8 kB / 277.4 MB, free: 488 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.805e-05/0.004983, allocations: 8.031 kB / 277.4 MB, free: 480 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.759e-05/0.005081, allocations: 36.91 kB / 277.4 MB, free: 444 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.005261, allocations: 174.3 kB / 277.6 MB, free: 240 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.00528, allocations: 16.38 kB / 277.6 MB, free: 224 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.601e-05/0.005296, allocations: 24.3 kB / 277.6 MB, free: 200 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/0.005496, allocations: 170 kB / 277.8 MB, free: 8 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.005506, allocations: 4.125 kB / 277.8 MB, free: 4 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.986e-05/0.005535, allocations: 8.453 kB / 277.8 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.655e-05/0.005552, allocations: 7.938 kB / 277.8 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.3e-05/0.005625, allocations: 54.64 kB / 277.9 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005607/0.006186, allocations: 0.5603 MB / 278.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002254/0.006411, allocations: 156 kB / 278.6 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.183e-05/0.006443, allocations: 20.84 kB / 278.6 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.324e-05/0.006466, allocations: 4 kB / 278.6 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001186/0.006585, allocations: 107.8 kB / 278.7 MB, free: 15.03 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.122e-06/0.006586, allocations: 4 kB / 278.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001656/0.006751, allocations: 115.2 kB / 278.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.641e-05/0.006788, allocations: 85.05 kB / 278.9 MB, free: 14.8 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.006967, allocations: 223.2 kB / 279.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.571e-05/0.006983, allocations: 29.7 kB / 279.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.028e-05/0.007033, allocations: 132.3 kB / 279.3 MB, free: 14.4 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.541e-05/0.007059, allocations: 31.73 kB / 279.3 MB, free: 14.37 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.313e-05/0.007112, allocations: 61.64 kB / 279.4 MB, free: 14.3 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.341e-05/0.007185, allocations: 330.8 kB / 279.7 MB, free: 13.97 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.091e-05/0.007216, allocations: 18.83 kB / 279.7 MB, free: 13.95 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.728e-05/0.007273, allocations: 92.55 kB / 279.8 MB, free: 13.83 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001085/0.007382, allocations: 144.8 kB / 279.9 MB, free: 13.66 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.007384, allocations: 0 / 279.9 MB, free: 13.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001426/0.007527, allocations: 147.2 kB / 280.1 MB, free: 13.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.849e-06/0.007536, allocations: 12.06 kB / 280.1 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.007542, allocations: 4 kB / 280.1 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.063e-05/0.007553, allocations: 4 kB / 280.1 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.313e-05/0.007646, allocations: 40.22 kB / 280.2 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.176e-06/0.007649, allocations: 4 kB / 280.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.238e-05/0.007712, allocations: 35.83 kB / 280.2 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.839e-06/0.007722, allocations: 8 kB / 280.2 MB, free: 13.4 MB / 266.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.105e-05/0.007803, allocations: 134.5 kB / 280.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.992e-05/0.007822, allocations: 27.91 kB / 280.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001014/0.007924, allocations: 91.38 kB / 280.4 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.007927, allocations: 4 kB / 280.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.00793, allocations: 3.984 kB / 280.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.007933, allocations: 0 / 280.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003637/0.008297, allocations: 330.5 kB / 280.8 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.008297, allocations: 0 / 280.8 MB, free: 12.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.02e-05/0.008348, allocations: 19.92 kB / 280.8 MB, free: 12.76 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.008349, allocations: 0 / 280.8 MB, free: 12.76 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.696e-06/0.008358, allocations: 4 kB / 280.8 MB, free: 12.76 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.00836, allocations: 4 kB / 280.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.008361, allocations: 0 / 280.8 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001292/0.00849, allocations: 204.7 kB / 281 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.246e-05/0.008502, allocations: 11.91 kB / 281 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.81e-05/0.00852, allocations: 8 kB / 281 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.551e-05/0.008576, allocations: 7.984 kB / 281 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.177e-05/0.008628, allocations: 31.89 kB / 281.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.987e-06/0.008637, allocations: 3.938 kB / 281.1 MB, free: 12.47 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.72e-05/0.008674, allocations: 59.03 kB / 281.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008674, allocations: 0 / 281.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001612/0.008835, allocations: 47.89 kB / 281.2 MB, free: 12.37 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: 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 9.095e-05/0.008926, allocations: 88.41 kB / 281.3 MB, free: 12.27 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001262/0.009052, allocations: 97.38 kB / 281.4 MB, free: 12.17 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.009056, allocations: 0 / 281.4 MB, free: 12.17 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.386e-05/0.009109, allocations: 44.78 kB / 281.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001698/0.009279, allocations: 35.8 kB / 281.4 MB, free: 12.09 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005026/0.009782, allocations: 343.9 kB / 281.8 MB, free: 11.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.333e-05/0.009825, allocations: 79.97 kB / 281.8 MB, free: 11.63 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.396e-05/0.009879, allocations: 21.48 kB / 281.9 MB, free: 11.61 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.37e-05/0.009963, allocations: 79.36 kB / 281.9 MB, free: 11.53 MB / 266.7 MB Notification: Performance of SimCode: time 3.51e-07/0.009963, allocations: 0 / 281.9 MB, free: 11.53 MB / 266.7 MB Notification: Performance of Templates: time 0.003818/0.01378, allocations: 2.221 MB / 284.2 MB, free: 9.352 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.5285521862097085]