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.0009611/0.0009611, allocations: 80.8 kB / 22.29 MB, free: 2.207 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.001118/0.001118, allocations: 166 kB / 25.7 MB, free: 8.414 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.982/0.982, allocations: 158.6 MB / 187.6 MB, free: 2.785 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.182e-06/1.182e-06, allocations: 0 / 251.6 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.451e-05/1.569e-05, allocations: 6.25 kB / 251.6 MB, free: 7.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.005631/0.005647, allocations: 1.885 MB / 253.4 MB, free: 5.328 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001019/0.006666, allocations: 0.6745 MB / 254.1 MB, free: 4.645 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.862e-05/0.006754, allocations: 7.938 kB / 254.1 MB, free: 4.637 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001225/0.006877, allocations: 27.72 kB / 254.2 MB, free: 4.609 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001212/0.006998, allocations: 47.53 kB / 254.2 MB, free: 4.562 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002577/0.007256, allocations: 75.78 kB / 254.3 MB, free: 4.488 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.003207/0.01046, allocations: 179.4 kB / 254.5 MB, free: 4.312 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.0106, allocations: 51.64 kB / 254.5 MB, free: 4.262 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001476/0.01074, allocations: 107.7 kB / 254.6 MB, free: 4.156 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.01087, allocations: 59.84 kB / 254.7 MB, free: 4.098 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.71e-05/0.0109, allocations: 16 kB / 254.7 MB, free: 4.082 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.1e-05/0.01098, allocations: 27.97 kB / 254.7 MB, free: 4.055 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.536e-05/0.01104, allocations: 51.77 kB / 254.8 MB, free: 4.004 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.871e-05/0.0111, allocations: 51.84 kB / 254.8 MB, free: 3.953 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002177/0.01131, allocations: 163.4 kB / 255 MB, free: 3.793 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.01131, allocations: 0 / 255 MB, free: 3.793 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.51e-07/0.01132, allocations: 0 / 255 MB, free: 3.793 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.477e-06/0.01132, allocations: 0 / 255 MB, free: 3.793 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.0005394/0.01186, allocations: 399.8 kB / 255.4 MB, free: 3.379 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.01189, allocations: 15.98 kB / 255.4 MB, free: 3.363 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.708e-05/0.01194, allocations: 24.92 kB / 255.4 MB, free: 3.34 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001919/0.01213, allocations: 177.4 kB / 255.6 MB, free: 3.141 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.171e-05/0.01215, allocations: 16.38 kB / 255.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.184e-05/0.01217, allocations: 20.36 kB / 255.6 MB, free: 3.105 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002338/0.01241, allocations: 173.3 kB / 255.8 MB, free: 2.914 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.01242, allocations: 192 / 255.8 MB, free: 2.914 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.01243, allocations: 4.375 kB / 255.8 MB, free: 2.91 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.117e-05/0.01245, allocations: 15.94 kB / 255.8 MB, free: 2.895 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.122e-05/0.01254, allocations: 54.59 kB / 255.9 MB, free: 2.84 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005793/0.01312, allocations: 0.5719 MB / 256.4 MB, free: 2.238 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003268/0.01639, allocations: 144.1 kB / 256.6 MB, free: 2.086 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.262e-05/0.01643, allocations: 28.77 kB / 256.6 MB, free: 2.055 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.01645, allocations: 4 kB / 256.6 MB, free: 2.051 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001363/0.01659, allocations: 119.4 kB / 256.7 MB, free: 1.918 MB / 234.7 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.01659, allocations: 0 / 256.7 MB, free: 1.918 MB / 234.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001964/0.01679, allocations: 115.2 kB / 256.8 MB, free: 1.797 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.099e-05/0.01683, allocations: 85.11 kB / 256.9 MB, free: 1.695 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001268/0.01696, allocations: 211.3 kB / 257.1 MB, free: 1.473 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.01697, allocations: 29.7 kB / 257.1 MB, free: 1.438 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.189e-05/0.01704, allocations: 132.3 kB / 257.3 MB, free: 1.305 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.16e-05/0.01707, allocations: 39.72 kB / 257.3 MB, free: 1.266 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.801e-05/0.01714, allocations: 53.66 kB / 257.4 MB, free: 1.207 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.229e-05/0.01723, allocations: 330.8 kB / 257.7 MB, free: 0.875 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.073e-05/0.01727, allocations: 18.83 kB / 257.7 MB, free: 0.8555 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.226e-05/0.01735, allocations: 104.4 kB / 257.8 MB, free: 0.7227 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001427/0.01749, allocations: 136.9 kB / 257.9 MB, free: 0.5547 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.0175, allocations: 0 / 257.9 MB, free: 0.5547 MB / 234.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001869/0.01768, allocations: 155.3 kB / 258.1 MB, free: 404 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.162e-05/0.01769, allocations: 4 kB / 258.1 MB, free: 400 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.0177, allocations: 8 kB / 258.1 MB, free: 392 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.01771, allocations: 4 kB / 258.1 MB, free: 388 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.01784, allocations: 47.84 kB / 258.2 MB, free: 340 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.01785, allocations: 4 kB / 258.2 MB, free: 336 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.782e-05/0.01793, allocations: 27.83 kB / 258.2 MB, free: 308 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/0.01795, allocations: 8 kB / 258.2 MB, free: 300 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 9.196e-05/0.01804, allocations: 138.8 kB / 258.3 MB, free: 148 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.719e-05/0.01807, allocations: 23.92 kB / 258.4 MB, free: 124 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000112/0.01818, allocations: 83.44 kB / 258.4 MB, free: 32 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.01818, allocations: 4 kB / 258.4 MB, free: 28 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.783e-06/0.01818, allocations: 0 / 258.4 MB, free: 28 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.349e-06/0.01819, allocations: 3.984 kB / 258.4 MB, free: 24 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003211/0.01851, allocations: 334.4 kB / 258.8 MB, free: 15.67 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.01851, allocations: 3.984 kB / 258.8 MB, free: 15.67 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.085e-05/0.01857, allocations: 15.98 kB / 258.8 MB, free: 15.65 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.01857, allocations: 4 kB / 258.8 MB, free: 15.65 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.056e-05/0.01859, allocations: 4 kB / 258.8 MB, free: 15.64 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.01859, allocations: 0 / 258.8 MB, free: 15.64 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.01859, allocations: 0 / 258.8 MB, free: 15.64 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000151/0.01874, allocations: 205.9 kB / 259 MB, free: 15.42 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.503e-05/0.01875, allocations: 19.8 kB / 259 MB, free: 15.4 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.01877, allocations: 8 kB / 259 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.538e-05/0.01883, allocations: 7.984 kB / 259 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.011e-05/0.01888, allocations: 23.97 kB / 259.1 MB, free: 15.36 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.295e-05/0.01889, allocations: 7.984 kB / 259.1 MB, free: 15.36 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.015e-05/0.01893, allocations: 49.8 kB / 259.1 MB, free: 15.3 MB / 250.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01893, allocations: 0 / 259.1 MB, free: 15.3 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001726/0.0191, allocations: 39.95 kB / 259.2 MB, free: 15.27 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.0001551/0.01926, allocations: 96.33 kB / 259.2 MB, free: 15.16 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001806/0.01944, allocations: 92.62 kB / 259.3 MB, free: 15.07 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.01944, allocations: 0.5 kB / 259.3 MB, free: 15.07 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 8.067e-05/0.01952, allocations: 48.89 kB / 259.4 MB, free: 15.02 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002466/0.01977, allocations: 40.17 kB / 259.4 MB, free: 14.98 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006439/0.02041, allocations: 343.7 kB / 259.8 MB, free: 14.61 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.466e-05/0.02047, allocations: 76.28 kB / 259.8 MB, free: 14.52 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.644e-05/0.02054, allocations: 17.48 kB / 259.8 MB, free: 14.5 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.02064, allocations: 91.28 kB / 259.9 MB, free: 14.41 MB / 250.7 MB Notification: Performance of SimCode: time 7.42e-07/0.02065, allocations: 0 / 259.9 MB, free: 14.41 MB / 250.7 MB Notification: Performance of Templates: time 0.0039/0.02455, allocations: 2.214 MB / 262.2 MB, free: 12.22 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 -s gbode -gbm=radauIIA3 -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.6692237169481814]