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.001561/0.001561, allocations: 116 kB / 21.18 MB, free: 0.6289 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.00141/0.00141, allocations: 213.7 kB / 24.48 MB, free: 4.035 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.403/1.403, allocations: 230.4 MB / 258.1 MB, free: 8.168 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.001951/0.001951, allocations: 67.83 kB / 378.7 MB, free: 2.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2578, allocations: 53.31 MB / 432 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003168/0.261, allocations: 1.868 MB / 433.9 MB, free: 5.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001319/0.2623, allocations: 0.705 MB / 434.6 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.988e-05/0.2624, allocations: 7.938 kB / 434.6 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.2626, allocations: 27.66 kB / 434.7 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001282/0.2627, allocations: 35.67 kB / 434.7 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003285/0.263, allocations: 91.78 kB / 434.8 MB, free: 4.656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002577/0.2633, allocations: 183.4 kB / 435 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/0.2634, allocations: 46.66 kB / 435 MB, free: 4.426 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/0.2636, allocations: 83.64 kB / 435.1 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/0.2638, allocations: 91.59 kB / 435.2 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.52e-05/0.2638, allocations: 12 kB / 435.2 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.069e-05/0.2639, allocations: 31.92 kB / 435.2 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.171e-05/0.264, allocations: 43.84 kB / 435.3 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.552e-05/0.2641, allocations: 91.47 kB / 435.4 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000281/0.2643, allocations: 209 kB / 435.6 MB, free: 3.879 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.2643, allocations: 0 / 435.6 MB, free: 3.879 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2643, allocations: 0 / 435.6 MB, free: 3.879 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.2644, allocations: 0 / 435.6 MB, free: 3.879 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.001003/0.2654, allocations: 0.5101 MB / 436.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.2654, allocations: 11.97 kB / 436.1 MB, free: 3.309 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001638/0.2656, allocations: 36.78 kB / 436.1 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003319/0.2659, allocations: 253.6 kB / 436.4 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.2659, allocations: 12.38 kB / 436.4 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.202e-05/0.2659, allocations: 16.38 kB / 436.4 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004094/0.2664, allocations: 218 kB / 436.6 MB, free: 2.727 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.2664, allocations: 7.875 kB / 436.6 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.179e-05/0.2664, allocations: 7.984 kB / 436.6 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.03e-05/0.2664, allocations: 8 kB / 436.6 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003333/0.2667, allocations: 135.8 kB / 436.8 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001137/0.2679, allocations: 0.7818 MB / 437.5 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006367/0.2685, allocations: 182.6 kB / 437.7 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001586/0.2687, allocations: 60.83 kB / 437.8 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.2687, allocations: 3.984 kB / 437.8 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002851/0.269, allocations: 145 kB / 437.9 MB, free: 1.312 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.269, allocations: 0 / 437.9 MB, free: 1.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006137/0.2696, allocations: 245.4 kB / 438.2 MB, free: 1.066 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.2697, allocations: 77.11 kB / 438.2 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002278/0.2699, allocations: 231 kB / 438.5 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.985e-05/0.2699, allocations: 33.7 kB / 438.5 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.27, allocations: 140.4 kB / 438.6 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.941e-05/0.2701, allocations: 39.72 kB / 438.7 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.2702, allocations: 61.64 kB / 438.7 MB, free: 464 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.2704, allocations: 330.8 kB / 439.1 MB, free: 124 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001732/0.2705, allocations: 64.2 kB / 439.1 MB, free: 60 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002281/0.2708, allocations: 144.5 kB / 439.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003935/0.2712, allocations: 212.4 kB / 439.5 MB, free: 15.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.2712, allocations: 0 / 439.5 MB, free: 15.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005033/0.2717, allocations: 249.3 kB / 439.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.859e-05/0.2717, allocations: 8 kB / 439.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.2717, allocations: 384 / 439.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.093e-05/0.2717, allocations: 4 kB / 439.7 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001767/0.2719, allocations: 39.91 kB / 439.8 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.522e-05/0.2719, allocations: 7.938 kB / 439.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001811/0.2721, allocations: 35.77 kB / 439.8 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.45e-05/0.2721, allocations: 12.22 kB / 439.8 MB, free: 15.29 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.0002052/0.2723, allocations: 155.9 kB / 440 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.191e-05/0.2724, allocations: 19.91 kB / 440 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000277/0.2727, allocations: 127 kB / 440.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.2727, allocations: 4 kB / 440.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.2727, allocations: 3.984 kB / 440.1 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.792e-05/0.2727, allocations: 96.97 kB / 440.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.874e-05/0.2728, allocations: 7.938 kB / 440.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001574/0.2729, allocations: 27.91 kB / 440.2 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.254e-05/0.273, allocations: 15.98 kB / 440.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005958/0.2736, allocations: 348.1 kB / 440.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005206/0.2741, allocations: 448.9 kB / 441 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001835/0.2743, allocations: 72.02 kB / 441.1 MB, free: 13.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001336/0.2745, allocations: 152.6 kB / 441.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of Backend: time 5.61e-07/0.2745, allocations: 0 / 441.3 MB, free: 13.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006843/0.2751, allocations: 194.5 kB / 441.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of SimCode: time 0.0009383/0.2761, allocations: 0.771 MB / 442.2 MB, free: 12.77 MB / 350.1 MB Notification: Performance of Templates: time 0.006392/0.2825, allocations: 2.429 MB / 444.7 MB, free: 10.36 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: 4.210946286097169]