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.001329/0.001329, allocations: 80.8 kB / 21.49 MB, free: 2.996 MB / 18.57 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.001614/0.001614, allocations: 166.9 kB / 24.91 MB, free: 9.152 MB / 18.57 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 0.9881/0.9881, allocations: 177.1 MB / 205.3 MB, free: 5.473 MB / 186.7 MB " [Timeout remaining time 179] 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 1.092e-06/1.092e-06, allocations: 0 / 273.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.263e-05/2.372e-05, allocations: 6.312 kB / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002265/0.002289, allocations: 1.865 MB / 275.3 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.003494, allocations: 0.693 MB / 276 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.003611, allocations: 11.94 kB / 276 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001346/0.003745, allocations: 19.73 kB / 276 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001474/0.003893, allocations: 39.59 kB / 276.1 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003676/0.00426, allocations: 103.6 kB / 276.2 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002249/0.004485, allocations: 175.4 kB / 276.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.004603, allocations: 55.62 kB / 276.4 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001928/0.004796, allocations: 111.7 kB / 276.5 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001634/0.004959, allocations: 63.8 kB / 276.6 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.063e-05/0.00499, allocations: 12 kB / 276.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.356e-05/0.005074, allocations: 31.98 kB / 276.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.499e-05/0.005139, allocations: 51.77 kB / 276.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.497e-05/0.005203, allocations: 55.83 kB / 276.7 MB, free: 14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002475/0.005451, allocations: 171.2 kB / 276.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.866e-06/0.005454, allocations: 4 kB / 276.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.005455, allocations: 0 / 276.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.005459, allocations: 0 / 276.9 MB, free: 13.83 MB / 266.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.0006247/0.006084, allocations: 396 kB / 277.3 MB, free: 13.42 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.649e-05/0.006121, allocations: 12.03 kB / 277.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001519/0.006272, allocations: 40.91 kB / 277.3 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002376/0.00651, allocations: 186.9 kB / 277.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.296e-05/0.006533, allocations: 12.38 kB / 277.5 MB, free: 13.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.529e-05/0.006558, allocations: 16.38 kB / 277.5 MB, free: 13.13 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002618/0.00682, allocations: 177.9 kB / 277.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.006829, allocations: 4.188 kB / 277.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.522e-05/0.006844, allocations: 4.375 kB / 277.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.91e-05/0.006873, allocations: 15.94 kB / 277.7 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001051/0.006978, allocations: 50.67 kB / 277.8 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006971/0.007675, allocations: 0.5565 MB / 278.3 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003057/0.007981, allocations: 156 kB / 278.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.343e-05/0.008024, allocations: 16.86 kB / 278.5 MB, free: 12.09 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.267e-05/0.008057, allocations: 19.97 kB / 278.5 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001567/0.008214, allocations: 118.4 kB / 278.6 MB, free: 11.94 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.713e-06/0.008215, allocations: 0 / 278.6 MB, free: 11.94 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002339/0.008449, allocations: 115.2 kB / 278.8 MB, free: 11.82 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.237e-05/0.008502, allocations: 81.11 kB / 278.8 MB, free: 11.72 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.008654, allocations: 215.3 kB / 279 MB, free: 11.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.008675, allocations: 29.7 kB / 279.1 MB, free: 11.46 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.127e-05/0.008746, allocations: 132.3 kB / 279.2 MB, free: 11.33 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.62e-05/0.008783, allocations: 35.78 kB / 279.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.634e-05/0.008869, allocations: 61.61 kB / 279.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.008976, allocations: 334.8 kB / 279.6 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.29e-05/0.009029, allocations: 22.81 kB / 279.6 MB, free: 10.87 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.859e-05/0.009118, allocations: 93.14 kB / 279.7 MB, free: 10.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001716/0.009289, allocations: 136.9 kB / 279.9 MB, free: 10.58 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.009292, allocations: 0 / 279.9 MB, free: 10.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002225/0.009514, allocations: 151 kB / 280 MB, free: 10.42 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.00953, allocations: 4 kB / 280 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.009538, allocations: 4 kB / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.009554, allocations: 4 kB / 280 MB, free: 10.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.00969, allocations: 40.17 kB / 280.1 MB, free: 10.37 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.009699, allocations: 15.92 kB / 280.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.009804, allocations: 24.14 kB / 280.1 MB, free: 10.33 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.138e-05/0.009826, allocations: 8 kB / 280.1 MB, free: 10.32 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,showValue.number,showValue1.number,showValue2.number,triggeredAdd.local_reset,triggeredAdd.local_set,multiSwitch1.expr[1],multiSwitch1.expr[2],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1) * 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.000116/0.009942, allocations: 138.6 kB / 280.2 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.228e-05/0.009974, allocations: 19.86 kB / 280.3 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000151/0.01013, allocations: 87.12 kB / 280.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.01013, allocations: 0 / 280.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.01013, allocations: 4 kB / 280.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.01014, allocations: 4 kB / 280.4 MB, free: 10.06 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000367/0.0105, allocations: 322.5 kB / 280.7 MB, free: 9.723 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.217e-06/0.01051, allocations: 4 kB / 280.7 MB, free: 9.719 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.554e-05/0.01057, allocations: 15.92 kB / 280.7 MB, free: 9.703 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.01058, allocations: 4 kB / 280.7 MB, free: 9.699 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.01059, allocations: 4 kB / 280.7 MB, free: 9.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.01059, allocations: 0 / 280.7 MB, free: 9.695 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.01059, allocations: 4 kB / 280.7 MB, free: 9.691 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001911/0.01078, allocations: 201.9 kB / 280.9 MB, free: 9.473 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.229e-05/0.01081, allocations: 15.91 kB / 280.9 MB, free: 9.457 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.646e-05/0.01083, allocations: 7.984 kB / 280.9 MB, free: 9.449 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.899e-05/0.01093, allocations: 12 kB / 280.9 MB, free: 9.438 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.294e-05/0.01099, allocations: 23.89 kB / 281 MB, free: 9.414 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.01101, allocations: 4 kB / 281 MB, free: 9.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.091e-05/0.01107, allocations: 63.02 kB / 281 MB, free: 9.348 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01107, allocations: 0 / 281 MB, free: 9.348 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003056/0.01138, allocations: 43.89 kB / 281.1 MB, free: 9.305 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.0001478/0.01152, allocations: 92.45 kB / 281.2 MB, free: 9.203 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002671/0.01179, allocations: 94.59 kB / 281.3 MB, free: 9.109 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.828e-06/0.0118, allocations: 4 kB / 281.3 MB, free: 9.105 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.01192, allocations: 44.77 kB / 281.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003252/0.01224, allocations: 40.64 kB / 281.3 MB, free: 9.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007759/0.01302, allocations: 352.2 kB / 281.7 MB, free: 8.648 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.175e-05/0.01306, allocations: 71.98 kB / 281.8 MB, free: 8.559 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.294e-05/0.01311, allocations: 17.73 kB / 281.8 MB, free: 8.539 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.233e-05/0.01321, allocations: 83.36 kB / 281.9 MB, free: 8.457 MB / 266.7 MB Notification: Performance of SimCode: time 1.031e-06/0.01321, allocations: 0 / 281.9 MB, free: 8.457 MB / 266.7 MB Notification: Performance of Templates: time 0.004051/0.01726, allocations: 2.213 MB / 284.1 MB, free: 6.277 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.6482566921040416]