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.001307/0.001307, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001435/0.001435, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.406/1.406, allocations: 230.6 MB / 258.3 MB, free: 7.984 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.001514/0.001514, allocations: 51.92 kB / 379 MB, free: 2.629 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2591, allocations: 53.36 MB / 432.4 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.0035/0.2626, allocations: 1.864 MB / 434.3 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.264, allocations: 0.705 MB / 435 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.2641, allocations: 7.938 kB / 435 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001482/0.2643, allocations: 27.66 kB / 435 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001439/0.2644, allocations: 27.73 kB / 435 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000357/0.2648, allocations: 107.7 kB / 435.1 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002725/0.2651, allocations: 175.4 kB / 435.3 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001894/0.2652, allocations: 54.94 kB / 435.3 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000182/0.2654, allocations: 87.62 kB / 435.4 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001781/0.2656, allocations: 87.61 kB / 435.5 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.329e-05/0.2656, allocations: 16 kB / 435.5 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.838e-05/0.2657, allocations: 27.98 kB / 435.6 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.564e-05/0.2658, allocations: 43.84 kB / 435.6 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.2659, allocations: 87.41 kB / 435.7 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003361/0.2663, allocations: 212.3 kB / 435.9 MB, free: 3.414 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2663, allocations: 0 / 435.9 MB, free: 3.414 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2663, allocations: 0 / 435.9 MB, free: 3.414 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.2663, allocations: 7.938 kB / 435.9 MB, free: 3.406 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.0009923/0.2673, allocations: 445.2 kB / 436.3 MB, free: 2.941 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.2673, allocations: 8.031 kB / 436.3 MB, free: 2.934 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001819/0.2675, allocations: 32.78 kB / 436.4 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003296/0.2678, allocations: 199.7 kB / 436.6 MB, free: 2.68 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.678e-05/0.2678, allocations: 12.38 kB / 436.6 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.298e-05/0.2679, allocations: 20.38 kB / 436.6 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004313/0.2683, allocations: 206.6 kB / 436.8 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/0.2683, allocations: 4 kB / 436.8 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.163e-05/0.2683, allocations: 4 kB / 436.8 MB, free: 2.422 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.452e-05/0.2684, allocations: 12 kB / 436.8 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003331/0.2687, allocations: 143.8 kB / 437 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001138/0.2698, allocations: 0.7534 MB / 437.7 MB, free: 1.461 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006196/0.2705, allocations: 182.6 kB / 437.9 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.2706, allocations: 60.83 kB / 438 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.455e-05/0.2707, allocations: 4 kB / 438 MB, free: 1.207 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002817/0.2709, allocations: 144.1 kB / 438.1 MB, free: 1.051 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.342e-06/0.2709, allocations: 0 / 438.1 MB, free: 1.051 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006373/0.2716, allocations: 249.6 kB / 438.3 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.79e-05/0.2716, allocations: 85.2 kB / 438.4 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000233/0.2719, allocations: 227 kB / 438.7 MB, free: 480 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.991e-05/0.2719, allocations: 29.7 kB / 438.7 MB, free: 444 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/0.272, allocations: 144.3 kB / 438.8 MB, free: 296 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.959e-05/0.2721, allocations: 35.72 kB / 438.9 MB, free: 260 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.32e-05/0.2722, allocations: 65.64 kB / 438.9 MB, free: 188 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001767/0.2723, allocations: 330.8 kB / 439.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001702/0.2725, allocations: 71.95 kB / 439.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002087/0.2727, allocations: 136.4 kB / 439.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003808/0.2731, allocations: 220.3 kB / 439.7 MB, free: 15.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.2731, allocations: 0 / 439.7 MB, free: 15.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004653/0.2736, allocations: 241.2 kB / 439.9 MB, free: 15.13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.2736, allocations: 8 kB / 439.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.2736, allocations: 4 kB / 439.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.2736, allocations: 4.25 kB / 439.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.2738, allocations: 43.91 kB / 440 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.2738, allocations: 4.312 kB / 440 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001652/0.274, allocations: 35.83 kB / 440 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.041e-05/0.274, allocations: 11.94 kB / 440 MB, free: 15.02 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.0001608/0.2741, allocations: 147.8 kB / 440.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.416e-05/0.2742, allocations: 23.91 kB / 440.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002608/0.2744, allocations: 131 kB / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.2744, allocations: 0 / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.2744, allocations: 0 / 440.3 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.2744, allocations: 4 kB / 440.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000677/0.2751, allocations: 457.3 kB / 440.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2751, allocations: 0 / 440.8 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/0.2752, allocations: 19.92 kB / 440.8 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/0.2752, allocations: 8 kB / 440.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.2753, allocations: 4 kB / 440.8 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.2753, allocations: 4.125 kB / 440.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.2753, allocations: 4 kB / 440.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004488/0.2757, allocations: 296 kB / 441.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.991e-05/0.2757, allocations: 15.84 kB / 441.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.349e-05/0.2758, allocations: 8 kB / 441.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.2759, allocations: 19.92 kB / 441.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.271e-05/0.276, allocations: 23.95 kB / 441.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.276, allocations: 4 kB / 441.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001476/0.2762, allocations: 148.6 kB / 441.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2762, allocations: 0 / 441.3 MB, free: 13.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003047/0.2765, allocations: 43.94 kB / 441.3 MB, free: 13.6 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.0001793/0.2767, allocations: 107.2 kB / 441.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004068/0.2771, allocations: 163.7 kB / 441.6 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.2771, allocations: 4 kB / 441.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001888/0.2773, allocations: 71.89 kB / 441.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003531/0.2776, allocations: 32.47 kB / 441.7 MB, free: 13.22 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008248/0.2784, allocations: 395.3 kB / 442.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004081/0.2789, allocations: 0.7281 MB / 442.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.125e-05/0.2789, allocations: 27.42 kB / 442.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2789, allocations: 0 / 442.9 MB, free: 12.02 MB / 350.1 MB Notification: Performance of Templates: time 0.005011/0.284, allocations: 2.48 MB / 445.3 MB, free: 9.547 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/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_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.3418395889457315]