Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001491/0.001491, allocations: 109.9 kB / 19.17 MB, free: 3.871 MB / 14.72 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.001711/0.001711, allocations: 208.9 kB / 22.13 MB, free: 0.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.385/1.385, allocations: 230.5 MB / 255.4 MB, free: 15 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-beta.om/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_4.1.0-beta.om_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-beta.om_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00179/0.00179, allocations: 63.89 kB / 374.7 MB, free: 9.742 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09141/0.0932, allocations: 53.31 MB / 428 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002914/0.09611, allocations: 1.853 MB / 429.9 MB, free: 2.473 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001171/0.09728, allocations: 0.705 MB / 430.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.695e-05/0.09737, allocations: 7.938 kB / 430.6 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001197/0.09749, allocations: 23.67 kB / 430.6 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001283/0.09762, allocations: 31.72 kB / 430.7 MB, free: 1.699 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002753/0.09789, allocations: 95.77 kB / 430.8 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002319/0.09813, allocations: 179.4 kB / 430.9 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.09828, allocations: 54.64 kB / 431 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001565/0.09844, allocations: 83.69 kB / 431.1 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001442/0.09859, allocations: 87.55 kB / 431.2 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.001e-05/0.09862, allocations: 16 kB / 431.2 MB, free: 1.188 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.229e-05/0.09869, allocations: 24 kB / 431.2 MB, free: 1.164 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.652e-05/0.09876, allocations: 55.75 kB / 431.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.019e-05/0.09885, allocations: 83.48 kB / 431.3 MB, free: 1.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002629/0.09912, allocations: 203.1 kB / 431.5 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.09912, allocations: 3.938 kB / 431.5 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.09912, allocations: 3.938 kB / 431.5 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.09913, allocations: 0 / 431.5 MB, free: 0.8203 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.0008516/0.09998, allocations: 0.5164 MB / 432 MB, free: 264 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.897e-05/0.1, allocations: 8.031 kB / 432.1 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001506/0.1002, allocations: 36.78 kB / 432.1 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1737/0.2739, allocations: 242.9 kB / 432.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.951e-05/0.2739, allocations: 10.06 kB / 432.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.303e-05/0.2739, allocations: 19.16 kB / 432.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004356/0.2744, allocations: 206.5 kB / 432.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.2744, allocations: 1.031 kB / 432.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.013e-05/0.2744, allocations: 9.25 kB / 432.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.395e-05/0.2744, allocations: 10.44 kB / 432.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003304/0.2748, allocations: 141.5 kB / 432.7 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009043/0.2757, allocations: 0.7756 MB / 433.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006332/0.2763, allocations: 189.8 kB / 433.7 MB, free: 10.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001421/0.2764, allocations: 58.83 kB / 433.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.918e-05/0.2765, allocations: 2.438 kB / 433.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002398/0.2767, allocations: 150.2 kB / 433.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 2.524e-06/0.2767, allocations: 1.078 kB / 433.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005485/0.2773, allocations: 251 kB / 434.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.337e-05/0.2773, allocations: 84.64 kB / 434.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.2774, allocations: 217 kB / 434.4 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.2775, allocations: 34.66 kB / 434.5 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.783e-05/0.2775, allocations: 146.2 kB / 434.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.469e-05/0.2775, allocations: 38.25 kB / 434.6 MB, free: 10.19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.026e-05/0.2776, allocations: 64.64 kB / 434.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.514e-05/0.2777, allocations: 325.6 kB / 435 MB, free: 9.859 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001393/0.2778, allocations: 67.66 kB / 435.1 MB, free: 9.859 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.278, allocations: 131.1 kB / 435.2 MB, free: 9.781 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002923/0.2782, allocations: 216.5 kB / 435.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.2783, allocations: 5 kB / 435.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004127/0.2787, allocations: 248.1 kB / 435.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.2787, allocations: 8.281 kB / 435.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.2787, allocations: 2.984 kB / 435.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.2787, allocations: 3.625 kB / 435.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.2789, allocations: 42.78 kB / 435.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.2789, allocations: 5.594 kB / 435.7 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001615/0.279, allocations: 31.38 kB / 435.8 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.803e-05/0.2791, allocations: 15.34 kB / 435.8 MB, free: 9.648 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.0001034/0.2792, allocations: 153.2 kB / 435.9 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.886e-05/0.2792, allocations: 17.06 kB / 435.9 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002244/0.2794, allocations: 131.6 kB / 436.1 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.2794, allocations: 2.312 kB / 436.1 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.2794, allocations: 1.25 kB / 436.1 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.2794, allocations: 1.453 kB / 436.1 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004928/0.2799, allocations: 484.1 kB / 436.6 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.2799, allocations: 2.469 kB / 436.6 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.28, allocations: 23.72 kB / 436.6 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.28, allocations: 1.25 kB / 436.6 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.28, allocations: 2.281 kB / 436.6 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.2801, allocations: 2.594 kB / 436.6 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2801, allocations: 1.125 kB / 436.6 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003514/0.2804, allocations: 293.1 kB / 436.9 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.057e-05/0.2804, allocations: 95.23 kB / 437 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.749e-05/0.2805, allocations: 2.828 kB / 437 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001651/0.2806, allocations: 20.03 kB / 437 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.384e-05/0.2807, allocations: 26.39 kB / 437 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.2807, allocations: 11.78 kB / 437 MB, free: 8.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.667e-05/0.2808, allocations: 144.5 kB / 437.2 MB, free: 8.836 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2808, allocations: 0 / 437.2 MB, free: 8.836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002969/0.2811, allocations: 48.55 kB / 437.2 MB, free: 8.828 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.0001288/0.2812, allocations: 110.2 kB / 437.3 MB, free: 8.734 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003944/0.2816, allocations: 165.7 kB / 437.5 MB, free: 8.691 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2816, allocations: 0.875 kB / 437.5 MB, free: 8.691 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001746/0.2818, allocations: 77.92 kB / 437.6 MB, free: 8.672 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.2821, allocations: 33.36 kB / 437.6 MB, free: 8.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006355/0.2828, allocations: 396 kB / 438 MB, free: 8.398 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001545/0.2829, allocations: 0.7312 MB / 438.7 MB, free: 7.703 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.782e-05/0.283, allocations: 25.88 kB / 438.7 MB, free: 7.691 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.283, allocations: 0 / 438.7 MB, free: 7.691 MB / 350.1 MB Notification: Performance of Templates: time 0.004769/0.2878, allocations: 2.479 MB / 441.2 MB, free: 7.5 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 6.651871973183006]