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.002451/0.002451, allocations: 81.86 kB / 21.42 MB, free: 3.078 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.001598/0.001598, allocations: 166.2 kB / 24.82 MB, free: 9.238 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.9359/0.9359, allocations: 177.1 MB / 205.3 MB, free: 5.504 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.232e-06/1.232e-06, allocations: 0 / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.287e-05/1.411e-05, allocations: 6.312 kB / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001965/0.001979, allocations: 1.863 MB / 275.2 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008628/0.002842, allocations: 0.6738 MB / 275.9 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.498e-05/0.002937, allocations: 7.938 kB / 275.9 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.003057, allocations: 31.61 kB / 276 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001045/0.003161, allocations: 31.72 kB / 276 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002634/0.003425, allocations: 103.6 kB / 276.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001992/0.003624, allocations: 175.3 kB / 276.3 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.003787, allocations: 50.98 kB / 276.3 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002163/0.004004, allocations: 115.7 kB / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001449/0.004149, allocations: 67.8 kB / 276.5 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.956e-05/0.004178, allocations: 12 kB / 276.5 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.598e-05/0.004254, allocations: 27.98 kB / 276.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.665e-05/0.004311, allocations: 47.83 kB / 276.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.161e-05/0.004373, allocations: 55.77 kB / 276.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002362/0.004609, allocations: 167.3 kB / 276.8 MB, free: 13.88 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.743e-06/0.00461, allocations: 4 kB / 276.8 MB, free: 13.88 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.31e-07/0.004611, allocations: 0 / 276.8 MB, free: 13.88 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.004615, allocations: 0 / 276.8 MB, free: 13.88 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0006682/0.005283, allocations: 0.5308 MB / 277.3 MB, free: 13.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.005325, allocations: 8.031 kB / 277.3 MB, free: 13.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001491/0.005474, allocations: 40.8 kB / 277.4 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002388/0.005713, allocations: 193.8 kB / 277.6 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.533e-05/0.005738, allocations: 16.31 kB / 277.6 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.695e-05/0.005765, allocations: 20.38 kB / 277.6 MB, free: 13.01 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002715/0.006037, allocations: 182.5 kB / 277.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.006046, allocations: 192 / 277.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.006062, allocations: 4.375 kB / 277.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.576e-05/0.006088, allocations: 15.94 kB / 277.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001057/0.006193, allocations: 47.89 kB / 277.9 MB, free: 12.74 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007117/0.006905, allocations: 0.8128 MB / 278.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002628/0.007168, allocations: 115.2 kB / 278.8 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.297e-05/0.007211, allocations: 27.67 kB / 278.8 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.097e-05/0.007242, allocations: 15.88 kB / 278.8 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001502/0.007392, allocations: 127.5 kB / 278.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.112e-06/0.007393, allocations: 0 / 278.9 MB, free: 11.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002602/0.007653, allocations: 137.4 kB / 279.1 MB, free: 11.43 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/0.007701, allocations: 85.09 kB / 279.2 MB, free: 11.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000198/0.007899, allocations: 270.5 kB / 279.4 MB, free: 11.04 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.229e-05/0.007921, allocations: 33.7 kB / 279.5 MB, free: 11 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.00804, allocations: 195 kB / 279.6 MB, free: 10.81 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.551e-05/0.008086, allocations: 39.72 kB / 279.7 MB, free: 10.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.134e-05/0.008177, allocations: 59.33 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.008371, allocations: 0.5079 MB / 280.3 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.353e-05/0.008425, allocations: 19.98 kB / 280.3 MB, free: 10.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001172/0.008542, allocations: 121.4 kB / 280.4 MB, free: 10 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001971/0.008739, allocations: 156.7 kB / 280.5 MB, free: 9.809 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.008742, allocations: 0 / 280.5 MB, free: 9.809 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000279/0.009021, allocations: 177.1 kB / 280.7 MB, free: 9.629 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.009036, allocations: 8 kB / 280.7 MB, free: 9.621 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-06/0.009041, allocations: 4.25 kB / 280.7 MB, free: 9.617 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.009057, allocations: 4 kB / 280.7 MB, free: 9.613 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001299/0.009187, allocations: 39.92 kB / 280.8 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.009195, allocations: 7.922 kB / 280.8 MB, free: 9.566 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.009309, allocations: 23.89 kB / 280.8 MB, free: 9.543 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.578e-05/0.009324, allocations: 12 kB / 280.8 MB, free: 9.531 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 0.0001236/0.009448, allocations: 178.4 kB / 281 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.844e-05/0.009487, allocations: 27.84 kB / 281 MB, free: 9.32 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001615/0.009648, allocations: 99.12 kB / 281.1 MB, free: 9.219 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.00965, allocations: 4 kB / 281.1 MB, free: 9.215 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.009653, allocations: 320 / 281.1 MB, free: 9.215 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.009657, allocations: 0 / 281.1 MB, free: 9.215 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004047/0.01006, allocations: 397.7 kB / 281.5 MB, free: 8.793 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.01007, allocations: 4 kB / 281.5 MB, free: 8.789 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.21e-05/0.01013, allocations: 15.98 kB / 281.5 MB, free: 8.773 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.01013, allocations: 4 kB / 281.5 MB, free: 8.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.01014, allocations: 0 / 281.5 MB, free: 8.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.355e-06/0.01014, allocations: 0 / 281.5 MB, free: 8.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.01015, allocations: 4 kB / 281.5 MB, free: 8.766 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002208/0.01037, allocations: 291.2 kB / 281.8 MB, free: 8.457 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.252e-05/0.01039, allocations: 19.89 kB / 281.8 MB, free: 8.438 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.113e-05/0.01041, allocations: 4 kB / 281.8 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.998e-05/0.0105, allocations: 11.98 kB / 281.9 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.976e-05/0.01056, allocations: 19.97 kB / 281.9 MB, free: 8.402 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.01057, allocations: 4 kB / 281.9 MB, free: 8.398 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.383e-05/0.01067, allocations: 173.3 kB / 282 MB, free: 8.23 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01067, allocations: 0 / 282 MB, free: 8.23 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003019/0.01097, allocations: 43.89 kB / 282.1 MB, free: 8.188 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 0.0001235/0.01109, allocations: 119.2 kB / 282.2 MB, free: 8.059 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001766/0.01127, allocations: 97.98 kB / 282.3 MB, free: 7.961 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01127, allocations: 4 kB / 282.3 MB, free: 7.957 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.78e-05/0.01135, allocations: 51.58 kB / 282.4 MB, free: 7.902 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003352/0.01168, allocations: 32.59 kB / 282.4 MB, free: 7.871 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006741/0.01236, allocations: 353.3 kB / 282.7 MB, free: 7.496 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.75e-05/0.01242, allocations: 75.98 kB / 282.8 MB, free: 7.402 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.525e-05/0.01249, allocations: 21.47 kB / 282.8 MB, free: 7.379 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.01262, allocations: 110.1 kB / 282.9 MB, free: 7.27 MB / 266.7 MB Notification: Performance of SimCode: time 6.81e-07/0.01262, allocations: 0 / 282.9 MB, free: 7.27 MB / 266.7 MB Notification: Performance of Templates: time 0.00511/0.01773, allocations: 2.363 MB / 285.3 MB, free: 4.941 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 -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.678756874985993]