Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001658/0.001658, allocations: 85.5 kB / 20.68 MB, free: 1.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001988/0.001988, allocations: 158.3 kB / 23.95 MB, free: 4.168 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.534/1.534, allocations: 177 MB / 204.1 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 325 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.386e-05/3.601e-05, allocations: 2.281 kB / 325 MB, free: 500 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003292/0.003328, allocations: 1.815 MB / 326.8 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001535/0.004863, allocations: 0.6633 MB / 327.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001806/0.005043, allocations: 11.91 kB / 327.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001604/0.005204, allocations: 27.72 kB / 327.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001892/0.005393, allocations: 38.25 kB / 327.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005345/0.005928, allocations: 102 kB / 327.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003388/0.006266, allocations: 176.7 kB / 327.8 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000195/0.006461, allocations: 50.02 kB / 327.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003118/0.006773, allocations: 114.9 kB / 328 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001864/0.006959, allocations: 67.77 kB / 328.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.567e-05/0.007005, allocations: 13.97 kB / 328.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.007108, allocations: 22.84 kB / 328.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.137e-05/0.007189, allocations: 50.72 kB / 328.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.219e-05/0.007281, allocations: 54.5 kB / 328.2 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003838/0.007665, allocations: 217.9 kB / 328.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.007668, allocations: 1.219 kB / 328.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.007668, allocations: 0 / 328.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.007676, allocations: 0 / 328.4 MB, free: 14.34 MB / 302.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.001099/0.008775, allocations: 434.5 kB / 328.8 MB, free: 14 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.008816, allocations: 13.45 kB / 328.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001955/0.009011, allocations: 36.47 kB / 328.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003575/0.009369, allocations: 186.3 kB / 329.1 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.174e-05/0.009401, allocations: 19.84 kB / 329.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.794e-05/0.009439, allocations: 19 kB / 329.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004802/0.009919, allocations: 206.5 kB / 329.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.009933, allocations: 1.312 kB / 329.3 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.773e-05/0.009961, allocations: 11.77 kB / 329.3 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.68e-05/0.009987, allocations: 14.28 kB / 329.3 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003819/0.01037, allocations: 141.8 kB / 329.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/0.01157, allocations: 0.679 MB / 330.1 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007116/0.01229, allocations: 189 kB / 330.3 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001625/0.01245, allocations: 56.22 kB / 330.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.152e-05/0.01249, allocations: 4.203 kB / 330.4 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000313/0.0128, allocations: 155.7 kB / 330.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.473e-06/0.0128, allocations: 0 / 330.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006677/0.01347, allocations: 237.8 kB / 330.8 MB, free: 12.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.202e-05/0.01354, allocations: 88.97 kB / 330.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000242/0.01379, allocations: 223.8 kB / 331.1 MB, free: 12.51 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.163e-05/0.01382, allocations: 30.86 kB / 331.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.01393, allocations: 143.5 kB / 331.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.289e-05/0.01397, allocations: 30.66 kB / 331.3 MB, free: 12.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.01408, allocations: 59.94 kB / 331.3 MB, free: 12.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.01424, allocations: 336.2 kB / 331.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.01443, allocations: 65.58 kB / 331.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002234/0.01465, allocations: 136.4 kB / 331.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003911/0.01504, allocations: 205.6 kB / 332.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.01505, allocations: 5.031 kB / 332.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005365/0.01559, allocations: 256.7 kB / 332.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.0156, allocations: 6.312 kB / 332.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.01561, allocations: 2.344 kB / 332.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.278e-05/0.01564, allocations: 3.531 kB / 332.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.01582, allocations: 36.19 kB / 332.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.01583, allocations: 7.312 kB / 332.4 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002044/0.01604, allocations: 37.23 kB / 332.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.779e-05/0.01606, allocations: 7.938 kB / 332.4 MB, free: 11.47 MB / 302.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.0001997/0.01626, allocations: 155.8 kB / 332.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.517e-05/0.01631, allocations: 16.94 kB / 332.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002867/0.01659, allocations: 131 kB / 332.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.0166, allocations: 2.594 kB / 332.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.0166, allocations: 1.219 kB / 332.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.01661, allocations: 0 / 332.7 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006371/0.01725, allocations: 408.7 kB / 333.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.01725, allocations: 1.125 kB / 333.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001197/0.01737, allocations: 17.02 kB / 333.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.01737, allocations: 4.969 kB / 333.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.105e-05/0.0174, allocations: 10.08 kB / 333.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.0174, allocations: 1.25 kB / 333.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.0174, allocations: 1.094 kB / 333.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004824/0.01788, allocations: 289.3 kB / 333.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.622e-05/0.01792, allocations: 26.17 kB / 333.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.413e-05/0.01795, allocations: 1.125 kB / 333.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001839/0.01814, allocations: 21.59 kB / 333.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.655e-05/0.01822, allocations: 19.56 kB / 333.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.209e-05/0.01824, allocations: 8.203 kB / 333.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001352/0.01838, allocations: 147.6 kB / 333.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01838, allocations: 0 / 333.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003416/0.01872, allocations: 42.67 kB / 333.7 MB, free: 10.5 MB / 302.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.0001695/0.01889, allocations: 114.3 kB / 333.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004237/0.01931, allocations: 157.8 kB / 334 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.01932, allocations: 0 / 334 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002052/0.01952, allocations: 79.38 kB / 334 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003841/0.01991, allocations: 45.91 kB / 334.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007423/0.02065, allocations: 363 kB / 334.4 MB, free: 10 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001288/0.02078, allocations: 120.9 kB / 334.6 MB, free: 9.898 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001093/0.02089, allocations: 37.83 kB / 334.6 MB, free: 9.879 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.634e-05/0.02095, allocations: 23.09 kB / 334.6 MB, free: 9.867 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.02095, allocations: 1.25 kB / 334.6 MB, free: 9.867 MB / 302.1 MB Notification: Performance of Templates: time 0.006396/0.02735, allocations: 2.151 MB / 336.8 MB, free: 8.773 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.309343732893467]