Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001099/0.001099, allocations: 84.25 kB / 22.22 MB, free: 2.285 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001169/0.001169, allocations: 165.1 kB / 25.61 MB, free: 8.578 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.024/1.024, allocations: 177 MB / 205.9 MB, free: 4.445 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.552e-06/1.552e-06, allocations: 0 / 274.1 MB, free: 4.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.254e-05/2.409e-05, allocations: 9.125 kB / 274.1 MB, free: 4.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002649/0.002673, allocations: 1.862 MB / 276 MB, free: 2.426 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001082/0.003755, allocations: 0.6746 MB / 276.6 MB, free: 1.746 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.003869, allocations: 7.938 kB / 276.7 MB, free: 1.738 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001337/0.004003, allocations: 37.16 kB / 276.7 MB, free: 1.703 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001398/0.004142, allocations: 23.73 kB / 276.7 MB, free: 1.68 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003583/0.004501, allocations: 104.5 kB / 276.8 MB, free: 1.578 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002481/0.004749, allocations: 183.3 kB / 277 MB, free: 1.398 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001664/0.004915, allocations: 43.69 kB / 277 MB, free: 1.348 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002015/0.005117, allocations: 111.7 kB / 277.1 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/0.005252, allocations: 69.41 kB / 277.2 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.367e-05/0.005276, allocations: 16 kB / 277.2 MB, free: 1.156 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.682e-05/0.005353, allocations: 31.97 kB / 277.3 MB, free: 1.125 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.399e-05/0.005407, allocations: 43.83 kB / 277.3 MB, free: 1.082 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.879e-05/0.005456, allocations: 52.56 kB / 277.4 MB, free: 1.031 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002599/0.005715, allocations: 171.2 kB / 277.5 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.005718, allocations: 4 kB / 277.5 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.005718, allocations: 0 / 277.5 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.005722, allocations: 4 kB / 277.5 MB, free: 0.8555 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.0005345/0.006257, allocations: 0.5229 MB / 278.1 MB, free: 304 kB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.049e-05/0.006287, allocations: 12.03 kB / 278.1 MB, free: 292 kB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001095/0.006397, allocations: 44.78 kB / 278.1 MB, free: 248 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002111/0.006608, allocations: 185.1 kB / 278.3 MB, free: 32 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.492e-05/0.006633, allocations: 16.36 kB / 278.3 MB, free: 16 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.84e-05/0.006671, allocations: 20.45 kB / 278.3 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002058/0.006877, allocations: 177.8 kB / 278.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.006885, allocations: 192 / 278.5 MB, free: 15.8 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.006898, allocations: 4.375 kB / 278.5 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.909e-05/0.006917, allocations: 15.92 kB / 278.5 MB, free: 15.78 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.416e-05/0.006991, allocations: 52.48 kB / 278.6 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006121/0.007603, allocations: 0.8128 MB / 279.4 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002318/0.007835, allocations: 111.2 kB / 279.5 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.868e-05/0.007873, allocations: 27.61 kB / 279.5 MB, free: 14.72 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.939e-05/0.007903, allocations: 11.94 kB / 279.5 MB, free: 14.71 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000132/0.008035, allocations: 124.2 kB / 279.7 MB, free: 14.56 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.008036, allocations: 0 / 279.7 MB, free: 14.56 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002303/0.008267, allocations: 145.6 kB / 279.8 MB, free: 14.41 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.008311, allocations: 85.05 kB / 279.9 MB, free: 14.31 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001421/0.008453, allocations: 270.5 kB / 280.1 MB, free: 14.03 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.008478, allocations: 29.7 kB / 280.2 MB, free: 14 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.498e-05/0.008573, allocations: 187.1 kB / 280.4 MB, free: 13.81 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.497e-05/0.008608, allocations: 39.67 kB / 280.4 MB, free: 13.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.819e-05/0.008676, allocations: 71.3 kB / 280.5 MB, free: 13.69 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.008844, allocations: 0.4962 MB / 281 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.12e-05/0.008885, allocations: 28.03 kB / 281 MB, free: 13.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.201e-05/0.008977, allocations: 122.6 kB / 281.1 MB, free: 13 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001468/0.009124, allocations: 162.3 kB / 281.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.009127, allocations: 0 / 281.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001897/0.009317, allocations: 172 kB / 281.4 MB, free: 12.62 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.009332, allocations: 4 kB / 281.4 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.009339, allocations: 4 kB / 281.4 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.009353, allocations: 7.938 kB / 281.4 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.009462, allocations: 39.91 kB / 281.5 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.009467, allocations: 4 kB / 281.5 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.031e-05/0.009537, allocations: 31.83 kB / 281.5 MB, free: 12.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.009547, allocations: 4 kB / 281.5 MB, free: 12.53 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.0001091/0.009656, allocations: 190.7 kB / 281.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.75e-05/0.009684, allocations: 27.84 kB / 281.7 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001405/0.009824, allocations: 99.06 kB / 281.8 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.009831, allocations: 7.984 kB / 281.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.009833, allocations: 0 / 281.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.009838, allocations: 0 / 281.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003222/0.01016, allocations: 389.8 kB / 282.2 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.01016, allocations: 0 / 282.2 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.895e-05/0.01021, allocations: 19.92 kB / 282.2 MB, free: 11.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.01021, allocations: 4 kB / 282.2 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.01022, allocations: 4 kB / 282.3 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.01022, allocations: 64 / 282.3 MB, free: 11.76 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.01023, allocations: 7.984 kB / 282.3 MB, free: 11.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001958/0.01043, allocations: 279.3 kB / 282.5 MB, free: 11.45 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.805e-05/0.01044, allocations: 23.84 kB / 282.6 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.01046, allocations: 4 kB / 282.6 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.333e-05/0.01053, allocations: 11.98 kB / 282.6 MB, free: 11.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.443e-05/0.01058, allocations: 23.97 kB / 282.6 MB, free: 11.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.298e-05/0.01059, allocations: 7.984 kB / 282.6 MB, free: 11.38 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.707e-05/0.01066, allocations: 173.4 kB / 282.8 MB, free: 11.21 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01066, allocations: 0 / 282.8 MB, free: 11.21 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000197/0.01086, allocations: 43.89 kB / 282.8 MB, free: 11.17 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.0001128/0.01097, allocations: 103.2 kB / 282.9 MB, free: 11.06 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001455/0.01112, allocations: 103.4 kB / 283 MB, free: 10.95 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.273e-06/0.01112, allocations: 0.5 kB / 283 MB, free: 10.95 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.151e-05/0.01118, allocations: 54.14 kB / 283.1 MB, free: 10.9 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002266/0.01141, allocations: 39.84 kB / 283.1 MB, free: 10.86 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005385/0.01194, allocations: 341.4 kB / 283.4 MB, free: 10.5 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.604e-05/0.01199, allocations: 75.98 kB / 283.5 MB, free: 10.4 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.516e-05/0.01204, allocations: 25.47 kB / 283.5 MB, free: 10.38 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.406e-05/0.01214, allocations: 102.2 kB / 283.6 MB, free: 10.27 MB / 266.7 MB Notification: Performance of SimCode: time 1.142e-06/0.01214, allocations: 0 / 283.6 MB, free: 10.27 MB / 266.7 MB Notification: Performance of Templates: time 0.00446/0.0166, allocations: 2.434 MB / 286.1 MB, free: 7.887 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.908070635050535]