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.006247/0.006247, allocations: 103.3 kB / 21.97 MB, free: 5.211 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.001765/0.001765, allocations: 220.6 kB / 25.29 MB, free: 3.215 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.437/1.437, allocations: 230.6 MB / 259 MB, free: 8.035 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.001939/0.001939, allocations: 63.88 kB / 379.8 MB, free: 2.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2692/0.2711, allocations: 53.38 MB / 433.2 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003485/0.2746, allocations: 1.863 MB / 435 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.276, allocations: 0.6972 MB / 435.7 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001157/0.2762, allocations: 7.938 kB / 435.7 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001495/0.2763, allocations: 35.59 kB / 435.8 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001626/0.2765, allocations: 27.73 kB / 435.8 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003684/0.2768, allocations: 99.7 kB / 435.9 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002913/0.2771, allocations: 183.4 kB / 436.1 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.2773, allocations: 50.59 kB / 436.1 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001965/0.2775, allocations: 91.62 kB / 436.2 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001808/0.2777, allocations: 91.61 kB / 436.3 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.334e-05/0.2777, allocations: 16 kB / 436.3 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.403e-05/0.2778, allocations: 27.98 kB / 436.3 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.684e-05/0.2779, allocations: 39.84 kB / 436.4 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.278, allocations: 87.47 kB / 436.5 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002976/0.2783, allocations: 205.6 kB / 436.7 MB, free: 3.469 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.2783, allocations: 4 kB / 436.7 MB, free: 3.465 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2783, allocations: 0 / 436.7 MB, free: 3.465 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.2783, allocations: 0 / 436.7 MB, free: 3.465 MB / 334.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.000968/0.2793, allocations: 449.2 kB / 437.1 MB, free: 2.996 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.2793, allocations: 8.031 kB / 437.1 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001691/0.2795, allocations: 32.78 kB / 437.2 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003062/0.2798, allocations: 195.7 kB / 437.3 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.576e-05/0.2798, allocations: 12.38 kB / 437.4 MB, free: 2.727 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.718e-05/0.2798, allocations: 12.38 kB / 437.4 MB, free: 2.715 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004244/0.2803, allocations: 221.9 kB / 437.6 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.2803, allocations: 0 / 437.6 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.155e-05/0.2803, allocations: 8 kB / 437.6 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.055e-05/0.2803, allocations: 4 kB / 437.6 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003518/0.2807, allocations: 147.8 kB / 437.7 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001199/0.2819, allocations: 0.7573 MB / 438.5 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006605/0.2825, allocations: 178.7 kB / 438.7 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.2827, allocations: 56.83 kB / 438.7 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.092e-05/0.2827, allocations: 0 / 438.7 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003017/0.283, allocations: 153 kB / 438.9 MB, free: 1.102 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.393e-06/0.283, allocations: 3.938 kB / 438.9 MB, free: 1.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006475/0.2837, allocations: 241.4 kB / 439.1 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.87e-05/0.2837, allocations: 81.05 kB / 439.2 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002412/0.284, allocations: 231 kB / 439.4 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/0.284, allocations: 33.7 kB / 439.5 MB, free: 496 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/0.2841, allocations: 144.3 kB / 439.6 MB, free: 348 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.782e-05/0.2842, allocations: 35.72 kB / 439.6 MB, free: 312 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.384e-05/0.2843, allocations: 65.64 kB / 439.7 MB, free: 240 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.2844, allocations: 330.8 kB / 440 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.2846, allocations: 63.95 kB / 440.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002206/0.2848, allocations: 140.5 kB / 440.2 MB, free: 15.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003827/0.2852, allocations: 212.3 kB / 440.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2852, allocations: 0 / 440.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004914/0.2857, allocations: 253.2 kB / 440.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.2857, allocations: 8 kB / 440.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.2857, allocations: 0 / 440.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.2857, allocations: 4 kB / 440.7 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.2859, allocations: 39.92 kB / 440.7 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.273e-05/0.2859, allocations: 12.23 kB / 440.7 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001933/0.2861, allocations: 35.81 kB / 440.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/0.2862, allocations: 11.94 kB / 440.8 MB, free: 15.07 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.0001921/0.2863, allocations: 143.8 kB / 440.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.522e-05/0.2864, allocations: 19.91 kB / 440.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002813/0.2867, allocations: 131 kB / 441.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.2867, allocations: 4.312 kB / 441.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.2867, allocations: 4 kB / 441.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.2867, allocations: 480 / 441.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007163/0.2874, allocations: 469.2 kB / 441.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2874, allocations: 0 / 441.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.2875, allocations: 15.98 kB / 441.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.2875, allocations: 0 / 441.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.2875, allocations: 4 kB / 441.6 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.2875, allocations: 7.875 kB / 441.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.2875, allocations: 4 kB / 441.6 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004626/0.288, allocations: 291 kB / 441.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.197e-05/0.288, allocations: 19.84 kB / 441.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/0.2881, allocations: 3.938 kB / 441.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001726/0.2882, allocations: 23.92 kB / 441.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.525e-05/0.2883, allocations: 23.95 kB / 441.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.2883, allocations: 8 kB / 441.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001376/0.2885, allocations: 148.6 kB / 442.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2885, allocations: 0 / 442.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003242/0.2888, allocations: 43.94 kB / 442.1 MB, free: 13.65 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.0001597/0.289, allocations: 103.2 kB / 442.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004429/0.2894, allocations: 167.7 kB / 442.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2894, allocations: 0 / 442.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001876/0.2896, allocations: 71.89 kB / 442.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003734/0.29, allocations: 31.97 kB / 442.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008046/0.2908, allocations: 399.8 kB / 442.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003997/0.2912, allocations: 0.732 MB / 443.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.376e-05/0.2912, allocations: 23.42 kB / 443.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2912, allocations: 0 / 443.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of Templates: time 0.005033/0.2963, allocations: 2.473 MB / 446.1 MB, free: 9.598 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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 7.553194127976894]