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.001644/0.001644, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 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.001757/0.001757, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 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 1.519/1.519, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001522/0.001522, allocations: 47.92 kB / 373.5 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1046, allocations: 53.34 MB / 426.8 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003149/0.1078, allocations: 1.853 MB / 428.7 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.109, allocations: 0.7011 MB / 429.4 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.936e-05/0.1091, allocations: 4 kB / 429.4 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001358/0.1092, allocations: 35.59 kB / 429.4 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.1094, allocations: 31.73 kB / 429.4 MB, free: 1.637 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003014/0.1097, allocations: 91.77 kB / 429.5 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002449/0.1099, allocations: 179.4 kB / 429.7 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.1101, allocations: 54.66 kB / 429.7 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001636/0.1102, allocations: 79.7 kB / 429.8 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001585/0.1104, allocations: 99.47 kB / 429.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.151e-05/0.1104, allocations: 16 kB / 429.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.298e-05/0.1105, allocations: 27.98 kB / 430 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.973e-05/0.1106, allocations: 39.84 kB / 430 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.959e-05/0.1107, allocations: 83.47 kB / 430.1 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002984/0.111, allocations: 203 kB / 430.3 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.111, allocations: 7.938 kB / 430.3 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.111, allocations: 0 / 430.3 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.111, allocations: 4 kB / 430.3 MB, free: 0.7617 MB / 350.1 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.0009448/0.1119, allocations: 0.5062 MB / 430.8 MB, free: 212 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.112, allocations: 12.03 kB / 430.8 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001671/0.1121, allocations: 36.78 kB / 430.8 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2218/0.334, allocations: 248.7 kB / 431.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.475e-05/0.334, allocations: 11.31 kB / 431.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.058e-05/0.3341, allocations: 16.69 kB / 431.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004961/0.3346, allocations: 205.2 kB / 431.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.3346, allocations: 3.938 kB / 431.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/0.3346, allocations: 10.53 kB / 431.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.654e-05/0.3346, allocations: 7.078 kB / 431.3 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003753/0.335, allocations: 142.2 kB / 431.5 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001124/0.3361, allocations: 0.7821 MB / 432.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006939/0.3368, allocations: 186.2 kB / 432.4 MB, free: 11.08 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001689/0.337, allocations: 62.41 kB / 432.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.203e-05/0.337, allocations: 5.875 kB / 432.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003081/0.3373, allocations: 140.1 kB / 432.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.575e-06/0.3373, allocations: 0.5625 kB / 432.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007381/0.3381, allocations: 249.5 kB / 432.9 MB, free: 10.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.773e-05/0.3381, allocations: 84.86 kB / 433 MB, free: 10.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002323/0.3384, allocations: 225.5 kB / 433.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.331e-05/0.3384, allocations: 25.7 kB / 433.2 MB, free: 10.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.696e-05/0.3385, allocations: 149.2 kB / 433.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.319e-05/0.3385, allocations: 33.23 kB / 433.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.479e-05/0.3386, allocations: 56.56 kB / 433.4 MB, free: 10.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.586e-05/0.3387, allocations: 336.2 kB / 433.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000167/0.3389, allocations: 65.81 kB / 433.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002131/0.3391, allocations: 133.2 kB / 434 MB, free: 10.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004033/0.3395, allocations: 220.8 kB / 434.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.3395, allocations: 5.062 kB / 434.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005152/0.34, allocations: 250.2 kB / 434.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.656e-05/0.34, allocations: 6.531 kB / 434.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.34, allocations: 2.594 kB / 434.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.753e-05/0.3401, allocations: 3.312 kB / 434.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002037/0.3403, allocations: 38.91 kB / 434.5 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.56e-05/0.3403, allocations: 4.484 kB / 434.5 MB, free: 9.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002038/0.3405, allocations: 30.56 kB / 434.5 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.604e-05/0.3405, allocations: 12.69 kB / 434.5 MB, free: 9.965 MB / 350.1 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 0.0001544/0.3407, allocations: 152.6 kB / 434.7 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.166e-05/0.3407, allocations: 21.66 kB / 434.7 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002958/0.341, allocations: 130.2 kB / 434.8 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.074e-06/0.341, allocations: 3.266 kB / 434.8 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.341, allocations: 1.906 kB / 434.8 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.341, allocations: 1.125 kB / 434.8 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006126/0.3416, allocations: 492.8 kB / 435.3 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3417, allocations: 0 / 435.3 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001244/0.3418, allocations: 22.67 kB / 435.3 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.3418, allocations: 1.469 kB / 435.3 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.3418, allocations: 5.25 kB / 435.3 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.868e-06/0.3418, allocations: 4.656 kB / 435.3 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3418, allocations: 1.156 kB / 435.3 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004244/0.3422, allocations: 285.8 kB / 435.6 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.414e-05/0.3423, allocations: 97.91 kB / 435.7 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.72e-05/0.3423, allocations: 9.219 kB / 435.7 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001732/0.3425, allocations: 17.17 kB / 435.8 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.3426, allocations: 22.2 kB / 435.8 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.311e-05/0.3426, allocations: 13.45 kB / 435.8 MB, free: 9.074 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001277/0.3427, allocations: 151.5 kB / 435.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3427, allocations: 1.125 kB / 435.9 MB, free: 8.977 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003424/0.3431, allocations: 36.33 kB / 436 MB, free: 8.973 MB / 350.1 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.0001873/0.3433, allocations: 119.9 kB / 436.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004495/0.3437, allocations: 160.3 kB / 436.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3437, allocations: 4.062 kB / 436.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001929/0.3439, allocations: 74.44 kB / 436.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003574/0.3443, allocations: 30.27 kB / 436.3 MB, free: 8.801 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007571/0.345, allocations: 368 kB / 436.7 MB, free: 8.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002182/0.3452, allocations: 0.7356 MB / 437.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001257/0.3454, allocations: 35.88 kB / 437.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.893e-05/0.3454, allocations: 20.88 kB / 437.5 MB, free: 7.859 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3454, allocations: 4 kB / 437.5 MB, free: 7.855 MB / 350.1 MB Notification: Performance of Templates: time 0.00694/0.3524, allocations: 2.127 MB / 439.6 MB, free: 7.723 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.752120777964592]