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.001361/0.001361, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 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.001391/0.001391, allocations: 142.1 kB / 24.97 MB, free: 8.316 MB / 18.57 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 0.9601/0.9601, allocations: 173.3 MB / 201.5 MB, free: 9.32 MB / 186.7 MB " [Timeout remaining time 179] 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 1.452e-06/1.452e-06, allocations: 0 / 268 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.862e-05/2.007e-05, allocations: 6.312 kB / 268.1 MB, free: 6.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002111/0.002131, allocations: 1.844 MB / 269.9 MB, free: 4.867 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008374/0.002969, allocations: 0.6308 MB / 270.5 MB, free: 4.234 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.116e-05/0.00306, allocations: 4 kB / 270.5 MB, free: 4.23 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001211/0.003181, allocations: 27.66 kB / 270.6 MB, free: 4.203 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001302/0.003311, allocations: 35.61 kB / 270.6 MB, free: 4.168 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003424/0.003653, allocations: 95.7 kB / 270.7 MB, free: 4.074 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001952/0.003849, allocations: 175.4 kB / 270.9 MB, free: 3.902 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.003984, allocations: 43 kB / 270.9 MB, free: 3.852 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.00411, allocations: 107.7 kB / 271 MB, free: 3.746 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.004224, allocations: 63.84 kB / 271.1 MB, free: 3.684 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.542e-05/0.004249, allocations: 12 kB / 271.1 MB, free: 3.672 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.224e-05/0.004311, allocations: 35.86 kB / 271.1 MB, free: 3.637 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.214e-05/0.004373, allocations: 43.83 kB / 271.2 MB, free: 3.594 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.655e-05/0.00443, allocations: 55.83 kB / 271.2 MB, free: 3.539 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002128/0.004643, allocations: 155.4 kB / 271.4 MB, free: 3.387 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.004645, allocations: 4 kB / 271.4 MB, free: 3.383 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.004646, allocations: 3.938 kB / 271.4 MB, free: 3.379 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.22e-06/0.004651, allocations: 0 / 271.4 MB, free: 3.379 MB / 250.7 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.0006942/0.005345, allocations: 0.5191 MB / 271.9 MB, free: 2.824 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.005389, allocations: 16.91 kB / 271.9 MB, free: 2.809 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.532e-05/0.005465, allocations: 32.8 kB / 271.9 MB, free: 2.777 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.005694, allocations: 196.2 kB / 272.1 MB, free: 2.559 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.005719, allocations: 12.38 kB / 272.1 MB, free: 2.547 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.206e-05/0.005741, allocations: 16.38 kB / 272.2 MB, free: 2.531 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002786/0.00602, allocations: 205.2 kB / 272.4 MB, free: 2.301 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.00603, allocations: 0 / 272.4 MB, free: 2.301 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.006045, allocations: 4 kB / 272.4 MB, free: 2.297 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.361e-05/0.006069, allocations: 11.98 kB / 272.4 MB, free: 2.285 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001175/0.006186, allocations: 71.75 kB / 272.4 MB, free: 2.215 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006731/0.006859, allocations: 0.8435 MB / 273.3 MB, free: 1.32 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000271/0.00713, allocations: 131.1 kB / 273.4 MB, free: 1.18 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.003e-05/0.00718, allocations: 31.67 kB / 273.5 MB, free: 1.145 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.007206, allocations: 4 kB / 273.5 MB, free: 1.141 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000143/0.007349, allocations: 128.2 kB / 273.6 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.312e-06/0.00735, allocations: 0 / 273.6 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.000273/0.007623, allocations: 161.4 kB / 273.7 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.007664, allocations: 89.09 kB / 273.8 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000143/0.007807, allocations: 258.7 kB / 274.1 MB, free: 464 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.007823, allocations: 33.64 kB / 274.1 MB, free: 424 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.655e-05/0.007899, allocations: 195 kB / 274.3 MB, free: 224 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.867e-05/0.007928, allocations: 39.72 kB / 274.3 MB, free: 184 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.599e-05/0.007994, allocations: 59.36 kB / 274.4 MB, free: 116 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.008117, allocations: 0.5078 MB / 274.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.442e-05/0.008171, allocations: 27.98 kB / 274.9 MB, free: 15.57 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.174e-05/0.008263, allocations: 128.8 kB / 275.1 MB, free: 15.4 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001449/0.008408, allocations: 172.9 kB / 275.2 MB, free: 15.19 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.008411, allocations: 4 kB / 275.2 MB, free: 15.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000205/0.008616, allocations: 197.3 kB / 275.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/0.008628, allocations: 4 kB / 275.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.008634, allocations: 4 kB / 275.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.008649, allocations: 4 kB / 275.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.008752, allocations: 39.92 kB / 275.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.283e-06/0.008759, allocations: 7.984 kB / 275.5 MB, free: 14.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.865e-05/0.008828, allocations: 19.89 kB / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.008839, allocations: 12 kB / 275.5 MB, free: 14.89 MB / 266.7 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 9.195e-05/0.008931, allocations: 186.5 kB / 275.7 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.008956, allocations: 23.86 kB / 275.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001418/0.009098, allocations: 115.1 kB / 275.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.009101, allocations: 3.984 kB / 275.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.009105, allocations: 4 kB / 275.8 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.00911, allocations: 3.984 kB / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003383/0.009448, allocations: 425.2 kB / 276.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.00945, allocations: 0 / 276.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.061e-05/0.0095, allocations: 19.92 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.009502, allocations: 0 / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.075e-05/0.009513, allocations: 12 kB / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.009515, allocations: 0 / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.009516, allocations: 0 / 276.3 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001888/0.009704, allocations: 287.4 kB / 276.6 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.577e-05/0.00972, allocations: 19.83 kB / 276.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.108e-05/0.009741, allocations: 8 kB / 276.6 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.329e-05/0.009805, allocations: 11.98 kB / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.065e-05/0.009865, allocations: 23.91 kB / 276.6 MB, free: 13.69 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.275e-05/0.009878, allocations: 8.062 kB / 276.6 MB, free: 13.68 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.808e-05/0.009956, allocations: 181.3 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.009956, allocations: 4 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002189/0.01018, allocations: 39.95 kB / 276.9 MB, free: 13.46 MB / 266.7 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.0001135/0.01029, allocations: 115.1 kB / 277 MB, free: 13.34 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001834/0.01047, allocations: 111.5 kB / 277.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.01047, allocations: 0 / 277.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.066e-05/0.01054, allocations: 52.11 kB / 277.1 MB, free: 13.17 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002329/0.01078, allocations: 43.34 kB / 277.2 MB, free: 13.13 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006146/0.01139, allocations: 350.2 kB / 277.5 MB, free: 12.76 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.44e-05/0.01144, allocations: 75.98 kB / 277.6 MB, free: 12.67 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.669e-05/0.0115, allocations: 33.45 kB / 277.6 MB, free: 12.63 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.724e-05/0.01155, allocations: 24.5 kB / 277.6 MB, free: 12.61 MB / 266.7 MB Notification: Performance of SimCode: time 9.82e-07/0.01155, allocations: 0 / 277.6 MB, free: 12.61 MB / 266.7 MB Notification: Performance of Templates: time 0.004047/0.0156, allocations: 2.18 MB / 279.8 MB, free: 10.46 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.740652034059167]