Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001273/0.001273, allocations: 96.02 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 181.8 kB / 24.45 MB, free: 3.977 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001625/0.001625, allocations: 63.83 kB / 371.6 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.2682, allocations: 52.17 MB / 423.8 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003664/0.2719, allocations: 1.797 MB / 425.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001656/0.2736, allocations: 0.5844 MB / 426.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000148/0.2737, allocations: 7.938 kB / 426.2 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00018/0.2739, allocations: 31.66 kB / 426.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001671/0.274, allocations: 31.66 kB / 426.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003864/0.2744, allocations: 87.84 kB / 426.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003001/0.2747, allocations: 175.4 kB / 426.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00022/0.275, allocations: 54.59 kB / 426.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001571/0.2751, allocations: 79.64 kB / 426.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001973/0.2753, allocations: 79.59 kB / 426.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.371e-05/0.2753, allocations: 12 kB / 426.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.493e-05/0.2754, allocations: 24 kB / 426.8 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.99e-05/0.2755, allocations: 43.83 kB / 426.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.945e-05/0.2756, allocations: 67.61 kB / 426.9 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003081/0.2759, allocations: 206 kB / 427.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2759, allocations: 3.938 kB / 427.1 MB, free: 11.17 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2759, allocations: 0 / 427.1 MB, free: 11.17 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.2759, allocations: 0 / 427.1 MB, free: 11.17 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.001005/0.2769, allocations: 441.3 kB / 427.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.277, allocations: 12.03 kB / 427.5 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.513e-05/0.277, allocations: 24.78 kB / 427.5 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003168/0.2773, allocations: 178.2 kB / 427.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.939e-05/0.2774, allocations: 16.38 kB / 427.7 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.752e-05/0.2774, allocations: 19.88 kB / 427.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004219/0.2778, allocations: 209.9 kB / 428 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.2779, allocations: 4 kB / 428 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.958e-05/0.2779, allocations: 4 kB / 428 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.683e-05/0.2779, allocations: 11.98 kB / 428 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003378/0.2782, allocations: 139.8 kB / 428.1 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.2793, allocations: 0.6916 MB / 428.8 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006502/0.28, allocations: 194.5 kB / 429 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/0.2801, allocations: 60.83 kB / 429.1 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.308e-05/0.2802, allocations: 4 kB / 429.1 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002798/0.2805, allocations: 137 kB / 429.2 MB, free: 8.906 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.864e-06/0.2805, allocations: 4 kB / 429.2 MB, free: 8.902 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.00062/0.2811, allocations: 245.4 kB / 429.4 MB, free: 8.656 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.414e-05/0.2811, allocations: 85.09 kB / 429.5 MB, free: 8.555 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/0.2814, allocations: 223.5 kB / 429.7 MB, free: 8.328 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.029e-05/0.2814, allocations: 29.7 kB / 429.8 MB, free: 8.293 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.2815, allocations: 140.4 kB / 429.9 MB, free: 8.152 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.127e-05/0.2815, allocations: 35.75 kB / 429.9 MB, free: 8.117 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.227e-05/0.2816, allocations: 57.62 kB / 430 MB, free: 8.055 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001576/0.2818, allocations: 342.8 kB / 430.3 MB, free: 7.711 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.2819, allocations: 63.95 kB / 430.4 MB, free: 7.648 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002063/0.2821, allocations: 132.5 kB / 430.5 MB, free: 7.488 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000368/0.2825, allocations: 220.2 kB / 430.7 MB, free: 7.242 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2825, allocations: 0 / 430.7 MB, free: 7.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004775/0.283, allocations: 253.2 kB / 431 MB, free: 6.988 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.283, allocations: 4 kB / 431 MB, free: 6.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.283, allocations: 8.25 kB / 431 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.283, allocations: 4 kB / 431 MB, free: 6.973 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001725/0.2832, allocations: 35.91 kB / 431 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.2832, allocations: 7.984 kB / 431 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001816/0.2834, allocations: 35.81 kB / 431.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.952e-05/0.2834, allocations: 11.98 kB / 431.1 MB, free: 6.883 MB / 334.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.0001514/0.2836, allocations: 147.7 kB / 431.2 MB, free: 6.73 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.209e-05/0.2836, allocations: 19.89 kB / 431.3 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002665/0.2839, allocations: 131.4 kB / 431.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.2839, allocations: 96 / 431.4 MB, free: 6.574 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.2839, allocations: 11.92 kB / 431.4 MB, free: 6.562 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.2839, allocations: 4.25 kB / 431.4 MB, free: 6.559 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006417/0.2845, allocations: 390 kB / 431.8 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.2845, allocations: 8 kB / 431.8 MB, free: 6.133 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.2847, allocations: 23.92 kB / 431.8 MB, free: 6.109 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.2847, allocations: 0 / 431.8 MB, free: 6.109 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.78e-05/0.2847, allocations: 7.984 kB / 431.8 MB, free: 6.102 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.2847, allocations: 7.938 kB / 431.8 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2847, allocations: 0 / 431.8 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004543/0.2851, allocations: 291.6 kB / 432.1 MB, free: 5.793 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.711e-05/0.2852, allocations: 11.91 kB / 432.1 MB, free: 5.781 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.221e-05/0.2852, allocations: 4 kB / 432.1 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.2854, allocations: 23.91 kB / 432.1 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.452e-05/0.2855, allocations: 27.91 kB / 432.2 MB, free: 5.727 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.018e-05/0.2855, allocations: 7.984 kB / 432.2 MB, free: 5.719 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001302/0.2856, allocations: 137.5 kB / 432.3 MB, free: 5.586 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2856, allocations: 4 kB / 432.3 MB, free: 5.582 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000315/0.2859, allocations: 47.83 kB / 432.4 MB, free: 5.535 MB / 334.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.0001624/0.2861, allocations: 107.2 kB / 432.5 MB, free: 5.422 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004236/0.2865, allocations: 159.8 kB / 432.6 MB, free: 5.266 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2865, allocations: 0.5 kB / 432.6 MB, free: 5.266 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000198/0.2867, allocations: 79.89 kB / 432.7 MB, free: 5.188 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003501/0.2871, allocations: 30.7 kB / 432.7 MB, free: 5.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007478/0.2878, allocations: 395.2 kB / 433.1 MB, free: 4.738 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001394/0.2879, allocations: 128.9 kB / 433.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.731e-05/0.288, allocations: 19.44 kB / 433.3 MB, free: 4.574 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.288, allocations: 0 / 433.3 MB, free: 4.574 MB / 334.1 MB Notification: Performance of Templates: time 0.004841/0.2929, allocations: 2.458 MB / 435.7 MB, free: 2.121 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.4052054630592465]