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.001851/0.001851, allocations: 103.5 kB / 20.97 MB, free: 3.453 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.001995/0.001995, allocations: 156.8 kB / 24.27 MB, free: 156 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 1.582/1.582, allocations: 177 MB / 204.4 MB, free: 5.605 MB / 186.7 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 1.793e-06/1.793e-06, allocations: 0 / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.508e-05/2.687e-05, allocations: 6.312 kB / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003665/0.003691, allocations: 1.843 MB / 274 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.005103, allocations: 0.6698 MB / 274.7 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.005204, allocations: 7.938 kB / 274.7 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.005351, allocations: 39.59 kB / 274.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001418/0.005493, allocations: 31.72 kB / 274.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003365/0.005829, allocations: 99.62 kB / 274.9 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002772/0.006106, allocations: 179.3 kB / 275 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001994/0.006306, allocations: 47 kB / 275.1 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002431/0.006549, allocations: 119.7 kB / 275.2 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001571/0.006706, allocations: 67.78 kB / 275.3 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.846e-05/0.006745, allocations: 12 kB / 275.3 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.178e-05/0.006836, allocations: 27.98 kB / 275.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.171e-05/0.006918, allocations: 47.83 kB / 275.4 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.885e-05/0.007017, allocations: 55.78 kB / 275.4 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003692/0.007386, allocations: 211.2 kB / 275.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.00739, allocations: 0 / 275.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.007391, allocations: 0 / 275.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.007397, allocations: 0 / 275.6 MB, free: 14.34 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.0009882/0.008385, allocations: 0.5383 MB / 276.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.008422, allocations: 11.98 kB / 276.2 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001851/0.008607, allocations: 40.8 kB / 276.2 MB, free: 13.72 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003467/0.008954, allocations: 197.6 kB / 276.4 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.234e-05/0.008976, allocations: 8.375 kB / 276.4 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.948e-05/0.009006, allocations: 16.38 kB / 276.4 MB, free: 13.47 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00041/0.009416, allocations: 209.1 kB / 276.6 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.00943, allocations: 4.188 kB / 276.6 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.214e-05/0.009452, allocations: 8.375 kB / 276.6 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.271e-05/0.009475, allocations: 7.938 kB / 276.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002918/0.009767, allocations: 103.9 kB / 276.8 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001251/0.01102, allocations: 0.8786 MB / 277.6 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005286/0.01155, allocations: 155.1 kB / 277.8 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001314/0.01168, allocations: 47.61 kB / 277.8 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.781e-05/0.01172, allocations: 4 kB / 277.8 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002964/0.01201, allocations: 148.3 kB / 278 MB, free: 11.81 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.302e-06/0.01201, allocations: 0 / 278 MB, free: 11.81 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.00057/0.01258, allocations: 197.7 kB / 278.2 MB, free: 11.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.968e-05/0.01265, allocations: 77.11 kB / 278.2 MB, free: 11.52 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000329/0.01298, allocations: 306.6 kB / 278.5 MB, free: 11.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.271e-05/0.01301, allocations: 33.7 kB / 278.6 MB, free: 11.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/0.01317, allocations: 199 kB / 278.8 MB, free: 10.96 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.665e-05/0.01322, allocations: 35.75 kB / 278.8 MB, free: 10.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/0.01334, allocations: 75.34 kB / 278.9 MB, free: 10.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002974/0.01364, allocations: 0.5079 MB / 279.4 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.01379, allocations: 43.98 kB / 279.4 MB, free: 10.28 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002299/0.01401, allocations: 152.8 kB / 279.6 MB, free: 10.09 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003636/0.01438, allocations: 204.7 kB / 279.8 MB, free: 9.848 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.01438, allocations: 3.938 kB / 279.8 MB, free: 9.844 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004658/0.01485, allocations: 229.3 kB / 280 MB, free: 9.613 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.01487, allocations: 8 kB / 280 MB, free: 9.605 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.01487, allocations: 0 / 280 MB, free: 9.605 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.01489, allocations: 4 kB / 280 MB, free: 9.602 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001847/0.01507, allocations: 39.92 kB / 280.1 MB, free: 9.562 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.01508, allocations: 4 kB / 280.1 MB, free: 9.559 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001402/0.01522, allocations: 27.81 kB / 280.1 MB, free: 9.531 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.006e-05/0.01524, allocations: 8 kB / 280.1 MB, free: 9.523 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.0001818/0.01543, allocations: 194.6 kB / 280.3 MB, free: 9.324 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.541e-05/0.01547, allocations: 19.91 kB / 280.3 MB, free: 9.305 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000292/0.01576, allocations: 123.4 kB / 280.4 MB, free: 9.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.01577, allocations: 4 kB / 280.4 MB, free: 9.176 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.01578, allocations: 4 kB / 280.4 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.01578, allocations: 3.984 kB / 280.4 MB, free: 9.168 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009546/0.01674, allocations: 465.1 kB / 280.9 MB, free: 8.672 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.01674, allocations: 0 / 280.9 MB, free: 8.672 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001088/0.01685, allocations: 15.98 kB / 280.9 MB, free: 8.656 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.01685, allocations: 4 kB / 280.9 MB, free: 8.652 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.577e-05/0.01687, allocations: 8 kB / 280.9 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.01687, allocations: 0 / 280.9 MB, free: 8.645 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.01687, allocations: 4 kB / 280.9 MB, free: 8.641 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004742/0.01735, allocations: 319.3 kB / 281.2 MB, free: 8.305 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.226e-05/0.01739, allocations: 15.86 kB / 281.3 MB, free: 8.289 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.273e-05/0.01742, allocations: 7.984 kB / 281.3 MB, free: 8.281 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001365/0.01756, allocations: 12 kB / 281.3 MB, free: 8.27 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.449e-05/0.01766, allocations: 23.95 kB / 281.3 MB, free: 8.246 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.01768, allocations: 8 kB / 281.3 MB, free: 8.238 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001602/0.01784, allocations: 189.4 kB / 281.5 MB, free: 8.055 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01784, allocations: 0 / 281.5 MB, free: 8.055 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003094/0.01815, allocations: 47.89 kB / 281.5 MB, free: 8.008 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.0001823/0.01833, allocations: 119.1 kB / 281.7 MB, free: 7.879 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003935/0.01872, allocations: 147.4 kB / 281.8 MB, free: 7.73 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.01872, allocations: 0.5 kB / 281.8 MB, free: 7.73 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001764/0.0189, allocations: 75.59 kB / 281.9 MB, free: 7.652 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003432/0.01924, allocations: 31.97 kB / 281.9 MB, free: 7.621 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007383/0.01998, allocations: 360.4 kB / 282.3 MB, free: 7.242 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001499/0.02013, allocations: 124.9 kB / 282.4 MB, free: 7.102 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001035/0.02023, allocations: 29.47 kB / 282.4 MB, free: 7.07 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.457e-05/0.02031, allocations: 24.48 kB / 282.4 MB, free: 7.047 MB / 266.7 MB Notification: Performance of SimCode: time 7.81e-07/0.02031, allocations: 0 / 282.4 MB, free: 7.047 MB / 266.7 MB Notification: Performance of Templates: time 0.006553/0.02686, allocations: 2.18 MB / 284.6 MB, free: 4.887 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","/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.481318906066008]