Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.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.0008037/0.0008037, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001999/0.002803, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0009428/0.0009428, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001933/0.002876, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9511/0.9511, allocations: 158.6 MB / 171.2 MB, free: 2.512 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1659/1.117, allocations: 49.51 MB / 220.7 MB, free: 1.355 MB / 218.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03837/0.03837, allocations: 6.419 MB / 227.8 MB, free: 10.22 MB / 234.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01392/0.05229, allocations: 2.173 MB / 230 MB, free: 8.035 MB / 234.7 MB " [Timeout remaining time 180] Using package ModelicaByExample with version 0.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.283e-06/1.283e-06, allocations: 3.938 kB / 231.2 MB, free: 6.812 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.134e-05/2.262e-05, allocations: 2.312 kB / 231.2 MB, free: 6.809 MB / 234.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003092/0.003115, allocations: 2.031 MB / 233.2 MB, free: 4.762 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004754/0.00359, allocations: 262.9 kB / 233.5 MB, free: 4.504 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.373e-05/0.003664, allocations: 4 kB / 233.5 MB, free: 4.5 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 6.124e-05/0.003725, allocations: 19.78 kB / 233.5 MB, free: 4.48 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.483e-05/0.00381, allocations: 47.56 kB / 233.6 MB, free: 4.434 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001286/0.003939, allocations: 47.86 kB / 233.6 MB, free: 4.387 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000195/0.004134, allocations: 195.1 kB / 233.8 MB, free: 4.195 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001528/0.004286, allocations: 63.03 kB / 233.9 MB, free: 4.137 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001475/0.004434, allocations: 123.8 kB / 234 MB, free: 4.016 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001105/0.004544, allocations: 51.88 kB / 234 MB, free: 3.965 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.524e-05/0.00458, allocations: 24 kB / 234.1 MB, free: 3.941 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.859e-05/0.004608, allocations: 19.94 kB / 234.1 MB, free: 3.922 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 4.373e-05/0.004652, allocations: 35.92 kB / 234.1 MB, free: 3.887 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.538e-05/0.004717, allocations: 59.88 kB / 234.2 MB, free: 3.828 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001814/0.004899, allocations: 115.5 kB / 234.3 MB, free: 3.715 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.094e-05/0.00491, allocations: 0 / 234.3 MB, free: 3.715 MB / 234.7 MB Notification: Performance of FrontEnd: time 4.71e-07/0.00491, allocations: 0 / 234.3 MB, free: 3.715 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.00492, allocations: 0 / 234.3 MB, free: 3.715 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0005428/0.005463, allocations: 404.2 kB / 234.7 MB, free: 3.289 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.0055, allocations: 19.89 kB / 234.7 MB, free: 3.27 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.607e-05/0.005556, allocations: 28.92 kB / 234.7 MB, free: 3.242 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001143/0.00567, allocations: 129.5 kB / 234.9 MB, free: 3.09 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/0.005689, allocations: 12.75 kB / 234.9 MB, free: 3.078 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.055e-05/0.005729, allocations: 24.38 kB / 234.9 MB, free: 3.055 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001693/0.005898, allocations: 120.9 kB / 235 MB, free: 2.934 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.005911, allocations: 192 / 235 MB, free: 2.934 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.616e-05/0.005927, allocations: 4.375 kB / 235 MB, free: 2.93 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.005934, allocations: 4.375 kB / 235 MB, free: 2.926 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.867e-05/0.006023, allocations: 59.59 kB / 235.1 MB, free: 2.867 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007464/0.006769, allocations: 499.5 kB / 235.6 MB, free: 2.344 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002025/0.006972, allocations: 98.53 kB / 235.7 MB, free: 2.238 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.00708, allocations: 56.81 kB / 235.7 MB, free: 2.18 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.107e-05/0.007091, allocations: 4 kB / 235.7 MB, free: 2.176 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001313/0.007223, allocations: 75.36 kB / 235.8 MB, free: 2.09 MB / 234.7 MB Notification: Performance of pre-optimization done (n=16): time 1.423e-06/0.007224, allocations: 0 / 235.8 MB, free: 2.09 MB / 234.7 MB Notification: Performance of matching and sorting (n=18): time 0.0007124/0.007936, allocations: 353.6 kB / 236.1 MB, free: 1.711 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.301e-05/0.007979, allocations: 51.41 kB / 236.2 MB, free: 1.648 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001012/0.008081, allocations: 130.6 kB / 236.3 MB, free: 1.508 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.0081, allocations: 33.7 kB / 236.4 MB, free: 1.469 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.511e-05/0.008175, allocations: 140.3 kB / 236.5 MB, free: 1.328 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.836e-05/0.008223, allocations: 63.42 kB / 236.6 MB, free: 1.266 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.446e-05/0.008288, allocations: 49.67 kB / 236.6 MB, free: 1.211 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001013/0.008389, allocations: 322.8 kB / 236.9 MB, free: 0.8867 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.484e-05/0.008424, allocations: 23.98 kB / 236.9 MB, free: 0.8633 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.332e-05/0.008507, allocations: 86.83 kB / 237 MB, free: 0.7539 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001272/0.008634, allocations: 118.6 kB / 237.1 MB, free: 0.6133 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.008636, allocations: 4 kB / 237.1 MB, free: 0.6094 MB / 234.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000173/0.008809, allocations: 141.4 kB / 237.3 MB, free: 476 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.008824, allocations: 7.984 kB / 237.3 MB, free: 468 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.00883, allocations: 4 kB / 237.3 MB, free: 464 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.008843, allocations: 0 / 237.3 MB, free: 464 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002166/0.00906, allocations: 64.19 kB / 237.4 MB, free: 400 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.009065, allocations: 4 kB / 237.4 MB, free: 396 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.598e-05/0.009121, allocations: 12.16 kB / 237.4 MB, free: 384 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-06/0.009131, allocations: 11.94 kB / 237.4 MB, free: 372 kB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,sampleHold.w,$PRE.sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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 7.936e-05/0.009211, allocations: 121.8 kB / 237.5 MB, free: 240 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.095e-05/0.009232, allocations: 15.98 kB / 237.5 MB, free: 224 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.481e-05/0.009266, allocations: 12.78 kB / 237.5 MB, free: 208 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.009269, allocations: 4 kB / 237.5 MB, free: 204 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.009271, allocations: 0 / 237.5 MB, free: 204 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.009276, allocations: 3.984 kB / 237.5 MB, free: 200 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003717/0.009648, allocations: 310.7 kB / 237.8 MB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.00965, allocations: 0 / 237.8 MB, free: 15.86 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001762/0.009826, allocations: 55.84 kB / 237.9 MB, free: 15.81 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.278e-05/0.009839, allocations: 7.953 kB / 237.9 MB, free: 15.8 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.938e-06/0.009843, allocations: 3.938 kB / 237.9 MB, free: 15.8 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.009854, allocations: 11.98 kB / 237.9 MB, free: 15.79 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.387e-06/0.009858, allocations: 3.984 kB / 237.9 MB, free: 15.78 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.009859, allocations: 0 / 237.9 MB, free: 15.78 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002175/0.01008, allocations: 219.8 kB / 238.1 MB, free: 15.55 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.925e-05/0.0101, allocations: 7.938 kB / 238.2 MB, free: 15.54 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.532e-05/0.01016, allocations: 8 kB / 238.2 MB, free: 15.54 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.53e-05/0.01019, allocations: 11.98 kB / 238.2 MB, free: 15.52 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.534e-06/0.01019, allocations: 0 / 238.2 MB, free: 15.52 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.197e-05/0.01022, allocations: 16.84 kB / 238.2 MB, free: 15.5 MB / 250.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01022, allocations: 4 kB / 238.2 MB, free: 15.5 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000248/0.01046, allocations: 40 kB / 238.2 MB, free: 15.46 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.w,sampleHold.flange.phi) * Number of discrete variables: 2 ($whenCondition1,sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 8.08e-05/0.01055, allocations: 88.44 kB / 238.3 MB, free: 15.37 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001451/0.01069, allocations: 97.28 kB / 238.4 MB, free: 15.27 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/0.0107, allocations: 3.938 kB / 238.4 MB, free: 15.27 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001554/0.01085, allocations: 65.25 kB / 238.5 MB, free: 15.2 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002115/0.01106, allocations: 83.38 kB / 238.6 MB, free: 15.11 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003591/0.01466, allocations: 400.6 kB / 239 MB, free: 14.69 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.285e-05/0.01471, allocations: 79.77 kB / 239 MB, free: 14.59 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.062e-05/0.01476, allocations: 13.48 kB / 239 MB, free: 14.58 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.131e-05/0.01483, allocations: 67.38 kB / 239.1 MB, free: 14.51 MB / 250.7 MB Notification: Performance of SimCode: time 1.072e-06/0.01483, allocations: 0 / 239.1 MB, free: 14.51 MB / 250.7 MB Notification: Performance of Templates: time 0.003554/0.01839, allocations: 1.12 MB / 240.2 MB, free: 13.39 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.makefile [Timeout 660] (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold -abortSlowSimulation -alarm=240 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.662898387759924]