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.001859/0.001859, allocations: 110.4 kB / 21.17 MB, free: 0.7812 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.00217/0.00217, allocations: 217.4 kB / 24.47 MB, free: 4.355 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.56/1.56, allocations: 230.4 MB / 258.1 MB, free: 8.148 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.00275/0.00275, allocations: 59.91 kB / 378.7 MB, free: 2.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2769, allocations: 53.32 MB / 432 MB, free: 7.379 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003358/0.2802, allocations: 1.869 MB / 433.9 MB, free: 5.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.2816, allocations: 0.7011 MB / 434.6 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.903e-05/0.2817, allocations: 7.938 kB / 434.6 MB, free: 4.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001543/0.2818, allocations: 31.66 kB / 434.6 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001409/0.282, allocations: 31.72 kB / 434.7 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003349/0.2823, allocations: 95.77 kB / 434.8 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002758/0.2826, allocations: 179.4 kB / 434.9 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.2828, allocations: 50.64 kB / 435 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001816/0.2829, allocations: 87.64 kB / 435.1 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001671/0.2831, allocations: 87.61 kB / 435.2 MB, free: 4.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.017e-05/0.2831, allocations: 12 kB / 435.2 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.064e-05/0.2832, allocations: 27.98 kB / 435.2 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.953e-05/0.2833, allocations: 47.83 kB / 435.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.2834, allocations: 91.41 kB / 435.3 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003078/0.2837, allocations: 200.6 kB / 435.5 MB, free: 3.863 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2837, allocations: 0 / 435.5 MB, free: 3.863 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2837, allocations: 0 / 435.5 MB, free: 3.863 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.2837, allocations: 3.938 kB / 435.5 MB, free: 3.859 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.0009827/0.2847, allocations: 0.5179 MB / 436.1 MB, free: 3.293 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.2847, allocations: 8.031 kB / 436.1 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001587/0.2849, allocations: 36.72 kB / 436.1 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000378/0.2853, allocations: 253.6 kB / 436.3 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.33e-05/0.2853, allocations: 12.38 kB / 436.4 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.84e-05/0.2853, allocations: 20.31 kB / 436.4 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004253/0.2858, allocations: 218 kB / 436.6 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.999e-06/0.2858, allocations: 0 / 436.6 MB, free: 2.699 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/0.2858, allocations: 4 kB / 436.6 MB, free: 2.695 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.878e-05/0.2858, allocations: 8 kB / 436.6 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000332/0.2861, allocations: 139.8 kB / 436.7 MB, free: 2.551 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.2873, allocations: 0.7817 MB / 437.5 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006375/0.2879, allocations: 182.6 kB / 437.7 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001504/0.2881, allocations: 64.81 kB / 437.8 MB, free: 1.453 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.677e-05/0.2881, allocations: 4 kB / 437.8 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002714/0.2884, allocations: 143.8 kB / 437.9 MB, free: 1.293 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.242e-06/0.2884, allocations: 0 / 437.9 MB, free: 1.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006267/0.289, allocations: 245.5 kB / 438.2 MB, free: 1.047 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.535e-05/0.2891, allocations: 85.09 kB / 438.2 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/0.2893, allocations: 235 kB / 438.5 MB, free: 0.707 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.2893, allocations: 25.7 kB / 438.5 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.2894, allocations: 144.4 kB / 438.6 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.875e-05/0.2895, allocations: 31.75 kB / 438.7 MB, free: 0.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.813e-05/0.2895, allocations: 61.64 kB / 438.7 MB, free: 444 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.2897, allocations: 334.8 kB / 439 MB, free: 100 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001672/0.2899, allocations: 67.95 kB / 439.1 MB, free: 32 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.2901, allocations: 140.5 kB / 439.3 MB, free: 15.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003687/0.2905, allocations: 208.4 kB / 439.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2905, allocations: 0 / 439.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000478/0.2909, allocations: 257.2 kB / 439.7 MB, free: 15.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.291, allocations: 8 kB / 439.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.291, allocations: 4 kB / 439.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.291, allocations: 384 / 439.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001777/0.2912, allocations: 39.91 kB / 439.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.2912, allocations: 8.25 kB / 439.8 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001833/0.2913, allocations: 35.83 kB / 439.8 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.2914, allocations: 15.86 kB / 439.8 MB, free: 15.26 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.0001561/0.2915, allocations: 152.6 kB / 440 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.306e-05/0.2916, allocations: 19.89 kB / 440 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002801/0.2918, allocations: 127 kB / 440.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.2918, allocations: 0 / 440.1 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.2918, allocations: 7.984 kB / 440.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.2919, allocations: 4 kB / 440.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006563/0.2925, allocations: 478.3 kB / 440.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2925, allocations: 0 / 440.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001318/0.2926, allocations: 19.92 kB / 440.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.2926, allocations: 0 / 440.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.76e-05/0.2927, allocations: 11.98 kB / 440.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.24e-06/0.2927, allocations: 3.938 kB / 440.6 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.2927, allocations: 4.062 kB / 440.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004533/0.2931, allocations: 296.1 kB / 440.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.566e-05/0.2932, allocations: 89.02 kB / 441 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.062e-05/0.2932, allocations: 0 / 441 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.2934, allocations: 27.91 kB / 441 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.687e-05/0.2935, allocations: 27.91 kB / 441.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.251e-05/0.2935, allocations: 8 kB / 441.1 MB, free: 13.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000132/0.2936, allocations: 144.6 kB / 441.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2936, allocations: 0 / 441.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003096/0.2939, allocations: 51.88 kB / 441.3 MB, free: 13.71 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.0001574/0.2941, allocations: 103.7 kB / 441.4 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004274/0.2945, allocations: 171.7 kB / 441.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2945, allocations: 0 / 441.5 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001876/0.2947, allocations: 72.02 kB / 441.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003494/0.2951, allocations: 27.98 kB / 441.6 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007755/0.2958, allocations: 377.8 kB / 442 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004161/0.2962, allocations: 0.7359 MB / 442.7 MB, free: 12.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001007/0.2963, allocations: 37.52 kB / 442.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.483e-05/0.2964, allocations: 23.42 kB / 442.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2964, allocations: 0 / 442.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of Templates: time 0.005887/0.3023, allocations: 2.149 MB / 444.9 MB, free: 9.977 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 -s cvode -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: 4.564850733149797]