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.0008209/0.0008209, allocations: 91.5 kB / 21.19 MB, free: 3.375 MB / 18.57 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.001085/0.001085, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 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 0.9945/0.9945, allocations: 177 MB / 204.8 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 179] 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 1.462e-06/1.462e-06, allocations: 0 / 272.9 MB, free: 1.484 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.543e-05/2.689e-05, allocations: 4.984 kB / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002285/0.002312, allocations: 1.875 MB / 274.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008666/0.003178, allocations: 0.6815 MB / 275.5 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.145e-05/0.00325, allocations: 7.938 kB / 275.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 7.34e-05/0.003323, allocations: 31.66 kB / 275.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.009e-05/0.003393, allocations: 27.69 kB / 275.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002204/0.003614, allocations: 103.6 kB / 275.6 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001518/0.003766, allocations: 179.3 kB / 275.8 MB, free: 14.56 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001106/0.003876, allocations: 54.97 kB / 275.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001296/0.004006, allocations: 107.8 kB / 276 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.361e-05/0.004099, allocations: 67.78 kB / 276 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.833e-05/0.004128, allocations: 16 kB / 276 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.665e-05/0.004184, allocations: 27.98 kB / 276.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.361e-05/0.004228, allocations: 47.77 kB / 276.1 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.827e-05/0.004276, allocations: 55.77 kB / 276.2 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002009/0.004477, allocations: 171.3 kB / 276.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.363e-06/0.004478, allocations: 0 / 276.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.004479, allocations: 0 / 276.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.004483, allocations: 0 / 276.3 MB, free: 14.02 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.0004923/0.004975, allocations: 0.523 MB / 276.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.199e-05/0.005007, allocations: 11.98 kB / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.005121, allocations: 44.78 kB / 276.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001838/0.005305, allocations: 197.5 kB / 277.1 MB, free: 13.18 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.005321, allocations: 12.38 kB / 277.1 MB, free: 13.17 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.847e-05/0.005339, allocations: 16.38 kB / 277.1 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002325/0.005572, allocations: 205.8 kB / 277.3 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.005579, allocations: 192 / 277.3 MB, free: 12.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.005591, allocations: 4.375 kB / 277.3 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.005609, allocations: 15.92 kB / 277.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001092/0.005718, allocations: 67.89 kB / 277.4 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006211/0.00634, allocations: 0.8435 MB / 278.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002556/0.006595, allocations: 131.1 kB / 278.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.733e-05/0.006642, allocations: 35.61 kB / 278.4 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.978e-05/0.006672, allocations: 7.984 kB / 278.4 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001362/0.006809, allocations: 124.3 kB / 278.6 MB, free: 11.61 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 8.41e-07/0.006809, allocations: 0 / 278.6 MB, free: 11.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002304/0.00704, allocations: 153.8 kB / 278.7 MB, free: 11.46 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.007074, allocations: 81.11 kB / 278.8 MB, free: 11.36 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001413/0.007216, allocations: 270.6 kB / 279.1 MB, free: 11.08 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.599e-05/0.007232, allocations: 33.7 kB / 279.1 MB, free: 11.04 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.478e-05/0.007306, allocations: 187.1 kB / 279.3 MB, free: 10.85 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.715e-05/0.007333, allocations: 39.72 kB / 279.3 MB, free: 10.81 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.249e-05/0.007396, allocations: 71.28 kB / 279.4 MB, free: 10.73 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000252/0.007648, allocations: 0.4962 MB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.985e-05/0.007698, allocations: 31.97 kB / 279.9 MB, free: 10.2 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.948e-05/0.007787, allocations: 132.8 kB / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001503/0.007938, allocations: 172.7 kB / 280.2 MB, free: 9.812 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.00794, allocations: 3.938 kB / 280.2 MB, free: 9.809 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001937/0.008134, allocations: 189.5 kB / 280.4 MB, free: 9.617 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.008146, allocations: 11.06 kB / 280.4 MB, free: 9.609 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.417e-06/0.008149, allocations: 4 kB / 280.4 MB, free: 9.605 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.927e-06/0.008158, allocations: 4 kB / 280.4 MB, free: 9.602 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.438e-05/0.008252, allocations: 47.91 kB / 280.5 MB, free: 9.555 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.008258, allocations: 4 kB / 280.5 MB, free: 9.551 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.211e-05/0.00832, allocations: 23.88 kB / 280.5 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.008331, allocations: 8 kB / 280.5 MB, free: 9.52 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.0001017/0.008432, allocations: 186.4 kB / 280.7 MB, free: 9.328 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.473e-05/0.008457, allocations: 31.89 kB / 280.7 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001429/0.0086, allocations: 111.1 kB / 280.8 MB, free: 9.184 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.008602, allocations: 4 kB / 280.8 MB, free: 9.18 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.826e-06/0.008605, allocations: 0 / 280.8 MB, free: 9.18 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.008609, allocations: 0 / 280.8 MB, free: 9.18 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003176/0.008926, allocations: 425.2 kB / 281.2 MB, free: 8.723 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.008929, allocations: 4 kB / 281.2 MB, free: 8.719 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.63e-05/0.008975, allocations: 19.98 kB / 281.3 MB, free: 8.699 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.008977, allocations: 0 / 281.3 MB, free: 8.699 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.068e-05/0.008987, allocations: 7.922 kB / 281.3 MB, free: 8.691 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.008989, allocations: 4 kB / 281.3 MB, free: 8.688 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.00899, allocations: 4 kB / 281.3 MB, free: 8.684 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001979/0.009188, allocations: 296.6 kB / 281.6 MB, free: 8.371 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.314e-05/0.009201, allocations: 11.91 kB / 281.6 MB, free: 8.359 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.475e-05/0.009216, allocations: 0 / 281.6 MB, free: 8.359 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.917e-05/0.009275, allocations: 15.98 kB / 281.6 MB, free: 8.344 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.202e-05/0.009347, allocations: 27.94 kB / 281.6 MB, free: 8.316 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.009361, allocations: 8 kB / 281.6 MB, free: 8.309 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.937e-05/0.00944, allocations: 173.4 kB / 281.8 MB, free: 8.141 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.00944, allocations: 0 / 281.8 MB, free: 8.141 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001989/0.009639, allocations: 51.83 kB / 281.8 MB, free: 8.09 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.0001261/0.009765, allocations: 115.2 kB / 282 MB, free: 7.965 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001814/0.009947, allocations: 111.6 kB / 282.1 MB, free: 7.852 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.009948, allocations: 0 / 282.1 MB, free: 7.852 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.444e-05/0.01002, allocations: 55.72 kB / 282.1 MB, free: 7.793 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.01026, allocations: 40.75 kB / 282.2 MB, free: 7.754 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007012/0.01096, allocations: 353.4 kB / 282.5 MB, free: 7.379 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.48e-05/0.01102, allocations: 76.28 kB / 282.6 MB, free: 7.285 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.492e-05/0.01108, allocations: 29.45 kB / 282.6 MB, free: 7.254 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.261e-05/0.01113, allocations: 24.5 kB / 282.6 MB, free: 7.23 MB / 266.7 MB Notification: Performance of SimCode: time 1.082e-06/0.01113, allocations: 4 kB / 282.6 MB, free: 7.227 MB / 266.7 MB Notification: Performance of Templates: time 0.004218/0.01535, allocations: 2.184 MB / 284.8 MB, free: 5.07 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) [Timeout 240] 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","",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.6879667355678976]