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.0009498/0.0009498, allocations: 75.91 kB / 21.18 MB, free: 3.395 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.0009391/0.0009391, allocations: 145.5 kB / 24.54 MB, free: 36 kB / 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 1.004/1.004, allocations: 173.4 MB / 201.1 MB, free: 9.34 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 2.054e-06/2.054e-06, allocations: 0 / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.961e-05/3.166e-05, allocations: 2.312 kB / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003776/0.003808, allocations: 1.864 MB / 269.8 MB, free: 4.566 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001598/0.005406, allocations: 0.6192 MB / 270.5 MB, free: 3.945 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001653/0.005572, allocations: 11.94 kB / 270.5 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001977/0.005769, allocations: 27.67 kB / 270.5 MB, free: 3.906 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002005/0.00597, allocations: 35.66 kB / 270.5 MB, free: 3.871 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004363/0.006406, allocations: 83.72 kB / 270.6 MB, free: 3.789 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000303/0.006709, allocations: 175.4 kB / 270.8 MB, free: 3.617 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001926/0.006902, allocations: 50.92 kB / 270.8 MB, free: 3.559 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002282/0.00713, allocations: 103.7 kB / 270.9 MB, free: 3.457 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001854/0.007315, allocations: 67.78 kB / 271 MB, free: 3.391 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.688e-05/0.007362, allocations: 19.98 kB / 271 MB, free: 3.371 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.318e-05/0.007455, allocations: 27.98 kB / 271 MB, free: 3.344 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.815e-05/0.007534, allocations: 43.83 kB / 271.1 MB, free: 3.301 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.242e-05/0.007616, allocations: 55.83 kB / 271.1 MB, free: 3.246 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003702/0.007986, allocations: 159.3 kB / 271.3 MB, free: 3.09 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.00799, allocations: 0 / 271.3 MB, free: 3.09 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.007992, allocations: 0 / 271.3 MB, free: 3.09 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.328e-06/0.008001, allocations: 0 / 271.3 MB, free: 3.09 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.0009299/0.008931, allocations: 0.5152 MB / 271.8 MB, free: 2.539 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.008985, allocations: 16.91 kB / 271.8 MB, free: 2.523 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.009091, allocations: 40.8 kB / 271.9 MB, free: 2.484 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003299/0.009421, allocations: 192.2 kB / 272.1 MB, free: 2.27 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.308e-05/0.009454, allocations: 8.375 kB / 272.1 MB, free: 2.262 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.326e-05/0.009487, allocations: 20.31 kB / 272.1 MB, free: 2.242 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004246/0.009911, allocations: 205.2 kB / 272.3 MB, free: 2.012 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.009927, allocations: 0 / 272.3 MB, free: 2.012 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.391e-05/0.009951, allocations: 4 kB / 272.3 MB, free: 2.008 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.001e-05/0.009991, allocations: 11.98 kB / 272.3 MB, free: 1.996 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002029/0.01019, allocations: 75.75 kB / 272.4 MB, free: 1.922 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.01131, allocations: 0.8512 MB / 273.2 MB, free: 1.02 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000412/0.01172, allocations: 119.2 kB / 273.3 MB, free: 0.8906 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000314/0.01204, allocations: 31.67 kB / 273.4 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.765e-05/0.01207, allocations: 4 kB / 273.4 MB, free: 0.8516 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001643/0.01224, allocations: 136.2 kB / 273.5 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 1.232e-06/0.01224, allocations: 0 / 273.5 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.000329/0.01257, allocations: 153.5 kB / 273.7 MB, free: 0.5391 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.01262, allocations: 89.03 kB / 273.8 MB, free: 444 kB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001629/0.01279, allocations: 262.7 kB / 274 MB, free: 164 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.681e-05/0.0128, allocations: 29.7 kB / 274 MB, free: 128 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.01291, allocations: 191 kB / 274.2 MB, free: 15.93 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.068e-05/0.01294, allocations: 39.73 kB / 274.3 MB, free: 15.89 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.619e-05/0.01301, allocations: 55.36 kB / 274.3 MB, free: 15.83 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.01313, allocations: 0.5117 MB / 274.8 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.559e-05/0.01318, allocations: 27.98 kB / 274.9 MB, free: 15.28 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.212e-05/0.01327, allocations: 128.8 kB / 275 MB, free: 15.11 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/0.01344, allocations: 173 kB / 275.1 MB, free: 14.9 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.01344, allocations: 4 kB / 275.2 MB, free: 14.9 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002357/0.01368, allocations: 193.2 kB / 275.3 MB, free: 14.7 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.819e-05/0.0137, allocations: 4 kB / 275.3 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.01371, allocations: 4 kB / 275.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.01373, allocations: 4 kB / 275.4 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.01384, allocations: 39.92 kB / 275.4 MB, free: 14.65 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.128e-06/0.01385, allocations: 7.984 kB / 275.4 MB, free: 14.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.11e-05/0.01393, allocations: 28.14 kB / 275.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.01395, allocations: 8 kB / 275.4 MB, free: 14.61 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 0.0001146/0.01406, allocations: 186.4 kB / 275.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.843e-05/0.01409, allocations: 27.86 kB / 275.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001862/0.01428, allocations: 111.4 kB / 275.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.01428, allocations: 0 / 275.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.01428, allocations: 0 / 275.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.01429, allocations: 7.984 kB / 275.8 MB, free: 14.26 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003695/0.01466, allocations: 433.2 kB / 276.2 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.01466, allocations: 0 / 276.2 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.752e-05/0.01472, allocations: 23.92 kB / 276.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.01472, allocations: 0 / 276.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.01473, allocations: 7.938 kB / 276.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.01474, allocations: 0 / 276.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.01474, allocations: 0 / 276.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002178/0.01496, allocations: 291.4 kB / 276.5 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.051e-05/0.01498, allocations: 19.83 kB / 276.5 MB, free: 13.44 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.13e-05/0.015, allocations: 4 kB / 276.5 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.697e-05/0.01507, allocations: 19.98 kB / 276.5 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.866e-05/0.01513, allocations: 23.84 kB / 276.6 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.01515, allocations: 12.06 kB / 276.6 MB, free: 13.38 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.361e-05/0.01523, allocations: 173.4 kB / 276.7 MB, free: 13.21 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01523, allocations: 0 / 276.7 MB, free: 13.21 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002306/0.01546, allocations: 43.95 kB / 276.8 MB, free: 13.17 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.0001482/0.01561, allocations: 107.2 kB / 276.9 MB, free: 13.05 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002003/0.01581, allocations: 115.8 kB / 277 MB, free: 12.94 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.01582, allocations: 4 kB / 277 MB, free: 12.93 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.521e-05/0.01589, allocations: 47.61 kB / 277.1 MB, free: 12.88 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002506/0.01614, allocations: 35.83 kB / 277.1 MB, free: 12.85 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000757/0.0169, allocations: 350.5 kB / 277.4 MB, free: 12.48 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.548e-05/0.01695, allocations: 79.98 kB / 277.5 MB, free: 12.38 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.984e-05/0.01702, allocations: 29.45 kB / 277.5 MB, free: 12.35 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.522e-05/0.01708, allocations: 24.5 kB / 277.6 MB, free: 12.32 MB / 266.7 MB Notification: Performance of SimCode: time 1.062e-06/0.01708, allocations: 0 / 277.6 MB, free: 12.32 MB / 266.7 MB Notification: Performance of Templates: time 0.004726/0.02181, allocations: 2.184 MB / 279.8 MB, free: 10.17 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: 3.0260349879972637]