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.001526/0.001526, allocations: 96.27 kB / 20.96 MB, free: 3.449 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.001631/0.001631, allocations: 152.9 kB / 24.26 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.587/1.587, allocations: 177 MB / 204.4 MB, free: 5.637 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 2.084e-06/2.084e-06, allocations: 0 / 272.2 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.635e-05/3.843e-05, allocations: 5.125 kB / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.003468/0.003507, allocations: 1.816 MB / 274 MB, free: 15.99 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.004919, allocations: 0.658 MB / 274.7 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.005029, allocations: 7.938 kB / 274.7 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001538/0.005183, allocations: 35.59 kB / 274.7 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001396/0.005323, allocations: 27.73 kB / 274.7 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003586/0.005681, allocations: 103.6 kB / 274.8 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003058/0.005987, allocations: 179.3 kB / 275 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001696/0.006157, allocations: 50.98 kB / 275.1 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003449/0.006502, allocations: 115.7 kB / 275.2 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.006643, allocations: 67.78 kB / 275.2 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.641e-05/0.006679, allocations: 16 kB / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.425e-05/0.006753, allocations: 24 kB / 275.3 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.933e-05/0.006823, allocations: 47.83 kB / 275.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.911e-05/0.006912, allocations: 55.77 kB / 275.4 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003149/0.007227, allocations: 211.2 kB / 275.6 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.007231, allocations: 4 kB / 275.6 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.007232, allocations: 0 / 275.6 MB, free: 14.4 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.007236, allocations: 0 / 275.6 MB, free: 14.4 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.0008917/0.008128, allocations: 445.2 kB / 276 MB, free: 13.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.00817, allocations: 15.98 kB / 276 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001734/0.008344, allocations: 44.78 kB / 276.1 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003313/0.008675, allocations: 190.8 kB / 276.3 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.071e-05/0.008696, allocations: 8.375 kB / 276.3 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.967e-05/0.008735, allocations: 24.3 kB / 276.3 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004309/0.009166, allocations: 213.6 kB / 276.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.009176, allocations: 192 / 276.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.009197, allocations: 8.375 kB / 276.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.057e-05/0.009218, allocations: 7.938 kB / 276.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003401/0.009558, allocations: 139.8 kB / 276.7 MB, free: 13.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001147/0.01071, allocations: 0.6877 MB / 277.4 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006437/0.01135, allocations: 182.6 kB / 277.5 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001562/0.0115, allocations: 56.83 kB / 277.6 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.935e-05/0.01153, allocations: 7.938 kB / 277.6 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003/0.01183, allocations: 153 kB / 277.7 MB, free: 12.1 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 9.52e-07/0.01184, allocations: 4 kB / 277.7 MB, free: 12.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.005199/0.01703, allocations: 253.3 kB / 278 MB, free: 11.84 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.197e-05/0.01712, allocations: 81.11 kB / 278.1 MB, free: 11.74 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002595/0.01738, allocations: 219.7 kB / 278.3 MB, free: 11.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.577e-05/0.01741, allocations: 29.7 kB / 278.3 MB, free: 11.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.01756, allocations: 144.3 kB / 278.5 MB, free: 11.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.26e-05/0.01762, allocations: 35.73 kB / 278.5 MB, free: 11.3 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001183/0.01773, allocations: 57.69 kB / 278.5 MB, free: 11.24 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000219/0.01795, allocations: 334.8 kB / 278.9 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001707/0.01812, allocations: 63.95 kB / 278.9 MB, free: 10.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002555/0.01838, allocations: 140.4 kB / 279.1 MB, free: 10.68 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004148/0.01879, allocations: 208.4 kB / 279.3 MB, free: 10.44 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.0188, allocations: 3.938 kB / 279.3 MB, free: 10.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005349/0.01933, allocations: 265.1 kB / 279.5 MB, free: 10.17 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.01935, allocations: 4 kB / 279.5 MB, free: 10.17 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.01935, allocations: 8.25 kB / 279.6 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.01937, allocations: 4 kB / 279.6 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001817/0.01955, allocations: 39.92 kB / 279.6 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.231e-05/0.01957, allocations: 7.938 kB / 279.6 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001928/0.01976, allocations: 27.86 kB / 279.6 MB, free: 10.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.184e-05/0.01978, allocations: 12 kB / 279.6 MB, free: 10.07 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.0001987/0.01998, allocations: 147.8 kB / 279.8 MB, free: 9.918 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.946e-05/0.02003, allocations: 27.84 kB / 279.8 MB, free: 9.891 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003031/0.02033, allocations: 131.1 kB / 279.9 MB, free: 9.758 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.02034, allocations: 4 kB / 279.9 MB, free: 9.754 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.02034, allocations: 0 / 279.9 MB, free: 9.754 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.02035, allocations: 0 / 279.9 MB, free: 9.754 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007424/0.02109, allocations: 414.3 kB / 280.4 MB, free: 9.312 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.02109, allocations: 320 / 280.4 MB, free: 9.312 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.02121, allocations: 15.98 kB / 280.4 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/0.02121, allocations: 8 kB / 280.4 MB, free: 9.289 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.664e-05/0.02123, allocations: 4 kB / 280.4 MB, free: 9.285 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.02123, allocations: 4 kB / 280.4 MB, free: 9.281 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.02124, allocations: 4 kB / 280.4 MB, free: 9.277 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00119/0.02243, allocations: 299 kB / 280.7 MB, free: 8.969 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.205e-05/0.02246, allocations: 23.84 kB / 280.7 MB, free: 8.945 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.029e-05/0.02249, allocations: 8 kB / 280.7 MB, free: 8.938 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001723/0.02266, allocations: 11.98 kB / 280.7 MB, free: 8.926 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.654e-05/0.02274, allocations: 23.95 kB / 280.7 MB, free: 8.902 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.946e-05/0.02276, allocations: 8 kB / 280.8 MB, free: 8.895 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001547/0.02291, allocations: 141.5 kB / 280.9 MB, free: 8.758 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02291, allocations: 4 kB / 280.9 MB, free: 8.754 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002935/0.0232, allocations: 43.89 kB / 280.9 MB, free: 8.711 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.0001631/0.02337, allocations: 111.2 kB / 281 MB, free: 8.59 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004121/0.02378, allocations: 163.7 kB / 281.2 MB, free: 8.43 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.02378, allocations: 0.5 kB / 281.2 MB, free: 8.43 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001934/0.02397, allocations: 83.88 kB / 281.3 MB, free: 8.348 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003511/0.02433, allocations: 27.98 kB / 281.3 MB, free: 8.32 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007234/0.02505, allocations: 364.9 kB / 281.7 MB, free: 7.938 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001697/0.02522, allocations: 124.9 kB / 281.8 MB, free: 7.797 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.02532, allocations: 29.47 kB / 281.8 MB, free: 7.766 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.633e-05/0.0254, allocations: 28.48 kB / 281.9 MB, free: 7.734 MB / 266.7 MB Notification: Performance of SimCode: time 3.4e-07/0.0254, allocations: 0 / 281.9 MB, free: 7.734 MB / 266.7 MB Notification: Performance of Templates: time 0.009104/0.0345, allocations: 2.172 MB / 284 MB, free: 5.586 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=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.8085460409056395]