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.0009698/0.0009698, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 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.0009791/0.0009791, allocations: 169 kB / 23.02 MB, free: 1.547 MB / 18.57 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.9451/0.9451, allocations: 158.6 MB / 184.9 MB, free: 2.918 MB / 170.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.02768/0.02768, allocations: 6.414 MB / 243.6 MB, free: 8.723 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.854e-06/1.854e-06, allocations: 0 / 310.7 MB, free: 51.97 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.618e-05/2.803e-05, allocations: 4 kB / 310.7 MB, free: 51.96 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.005993/0.006021, allocations: 1.987 MB / 312.7 MB, free: 50.68 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000582/0.006603, allocations: 237.9 kB / 313 MB, free: 50.52 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.092e-05/0.006694, allocations: 1.75 kB / 313 MB, free: 50.52 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.079e-05/0.006765, allocations: 25.92 kB / 313 MB, free: 50.5 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001129/0.006878, allocations: 47.98 kB / 313 MB, free: 50.46 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003293/0.01017, allocations: 50.27 kB / 313.1 MB, free: 50.44 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002117/0.01038, allocations: 202.9 kB / 313.3 MB, free: 50.33 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000183/0.01057, allocations: 66 kB / 313.3 MB, free: 50.3 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.01071, allocations: 109.6 kB / 313.5 MB, free: 50.26 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001036/0.01082, allocations: 59.33 kB / 313.5 MB, free: 50.24 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.915e-05/0.01085, allocations: 18.56 kB / 313.5 MB, free: 50.24 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.601e-05/0.01087, allocations: 19.25 kB / 313.6 MB, free: 50.24 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.513e-05/0.01091, allocations: 46.61 kB / 313.6 MB, free: 50.21 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.192e-05/0.01098, allocations: 66.31 kB / 313.7 MB, free: 50.18 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001644/0.01114, allocations: 126 kB / 313.8 MB, free: 50.12 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.01115, allocations: 0 / 313.8 MB, free: 50.12 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.01115, allocations: 0 / 313.8 MB, free: 50.12 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.01115, allocations: 0 / 313.8 MB, free: 50.12 MB / 282.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.0004779/0.01163, allocations: 495.5 kB / 314.3 MB, free: 49.68 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.01167, allocations: 14.28 kB / 314.3 MB, free: 49.68 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.43e-05/0.01173, allocations: 30.72 kB / 314.3 MB, free: 49.66 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.946e-05/0.01181, allocations: 130.2 kB / 314.4 MB, free: 49.52 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.927e-05/0.01183, allocations: 20.88 kB / 314.5 MB, free: 49.51 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.332e-05/0.01188, allocations: 26.3 kB / 314.5 MB, free: 49.5 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002277/0.0121, allocations: 128.3 kB / 314.6 MB, free: 49.44 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.01212, allocations: 4.188 kB / 314.6 MB, free: 49.44 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.01214, allocations: 10.31 kB / 314.6 MB, free: 49.43 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.01215, allocations: 5.531 kB / 314.6 MB, free: 49.43 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001382/0.01229, allocations: 79.95 kB / 314.7 MB, free: 49.41 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003839/0.01613, allocations: 0.6013 MB / 315.3 MB, free: 48.94 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002457/0.01637, allocations: 123.6 kB / 315.4 MB, free: 48.88 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.01651, allocations: 70.61 kB / 315.5 MB, free: 48.86 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.137e-05/0.01652, allocations: 6.75 kB / 315.5 MB, free: 48.86 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001263/0.01665, allocations: 84.47 kB / 315.6 MB, free: 48.79 MB / 282.7 MB Notification: Performance of pre-optimization done (n=16): time 2.445e-06/0.01665, allocations: 1.375 kB / 315.6 MB, free: 48.79 MB / 282.7 MB Notification: Performance of matching and sorting (n=18): time 0.000671/0.01732, allocations: 400.1 kB / 316 MB, free: 48.43 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.617e-05/0.01735, allocations: 52.11 kB / 316 MB, free: 48.36 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.867e-05/0.01742, allocations: 184.5 kB / 316.2 MB, free: 48.17 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.989e-06/0.01743, allocations: 30.5 kB / 316.2 MB, free: 48.14 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.445e-05/0.01747, allocations: 177.8 kB / 316.4 MB, free: 47.96 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.551e-05/0.01751, allocations: 72.59 kB / 316.5 MB, free: 47.9 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.58e-05/0.01756, allocations: 58.8 kB / 316.5 MB, free: 47.84 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.832e-05/0.01761, allocations: 0.4964 MB / 317 MB, free: 47.33 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.183e-05/0.01766, allocations: 32.62 kB / 317.1 MB, free: 47.3 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.698e-05/0.01774, allocations: 107.7 kB / 317.2 MB, free: 47.17 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000137/0.01788, allocations: 147.2 kB / 317.3 MB, free: 47 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.01788, allocations: 4 kB / 317.3 MB, free: 46.99 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002097/0.01809, allocations: 172.8 kB / 317.5 MB, free: 46.82 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.0181, allocations: 4 kB / 317.5 MB, free: 46.82 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.01811, allocations: 4 kB / 317.5 MB, free: 46.81 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.873e-05/0.01813, allocations: 7.938 kB / 317.5 MB, free: 46.8 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.01828, allocations: 55.91 kB / 317.6 MB, free: 46.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.01829, allocations: 8.156 kB / 317.6 MB, free: 46.74 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.167e-05/0.01834, allocations: 8 kB / 317.6 MB, free: 46.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.013e-05/0.01835, allocations: 8 kB / 317.6 MB, free: 46.73 MB / 282.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 6.179e-05/0.01841, allocations: 172.5 kB / 317.8 MB, free: 46.55 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.117e-05/0.01843, allocations: 23.89 kB / 317.8 MB, free: 46.52 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.296e-05/0.01846, allocations: 16.78 kB / 317.8 MB, free: 46.51 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.01847, allocations: 0 / 317.8 MB, free: 46.51 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.718e-06/0.01847, allocations: 7.938 kB / 317.8 MB, free: 46.5 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.01848, allocations: 0 / 317.8 MB, free: 46.5 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003392/0.02187, allocations: 454.1 kB / 318.2 MB, free: 46.01 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.02187, allocations: 4 kB / 318.3 MB, free: 46.01 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000136/0.02201, allocations: 39.91 kB / 318.3 MB, free: 45.97 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.02201, allocations: 0 / 318.3 MB, free: 45.97 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.401e-05/0.02202, allocations: 12 kB / 318.3 MB, free: 45.96 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.02203, allocations: 0 / 318.3 MB, free: 45.96 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.02203, allocations: 0 / 318.3 MB, free: 45.96 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002272/0.02225, allocations: 318.2 kB / 318.6 MB, free: 45.63 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.101e-05/0.02227, allocations: 7.953 kB / 318.6 MB, free: 45.62 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.02228, allocations: 4 kB / 318.6 MB, free: 45.62 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.883e-05/0.02234, allocations: 4 kB / 318.6 MB, free: 45.61 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.017e-05/0.02237, allocations: 18.55 kB / 318.6 MB, free: 45.6 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.02238, allocations: 4 kB / 318.6 MB, free: 45.59 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.837e-05/0.02241, allocations: 141.7 kB / 318.8 MB, free: 45.46 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02241, allocations: 0 / 318.8 MB, free: 45.46 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002691/0.02268, allocations: 40 kB / 318.8 MB, free: 45.42 MB / 282.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.232e-05/0.02276, allocations: 104 kB / 318.9 MB, free: 45.31 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001709/0.02293, allocations: 103.6 kB / 319 MB, free: 45.2 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.02293, allocations: 448 / 319 MB, free: 45.2 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.649e-05/0.02299, allocations: 59.03 kB / 319.1 MB, free: 45.14 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002271/0.02322, allocations: 19.88 kB / 319.1 MB, free: 45.12 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008409/0.02406, allocations: 464.2 kB / 319.6 MB, free: 44.65 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.758e-05/0.0241, allocations: 71.83 kB / 319.6 MB, free: 44.56 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.979e-05/0.02414, allocations: 13.48 kB / 319.6 MB, free: 44.55 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.85e-05/0.02418, allocations: 20.5 kB / 319.7 MB, free: 44.53 MB / 282.7 MB Notification: Performance of SimCode: time 5.11e-07/0.02418, allocations: 0 / 319.7 MB, free: 44.53 MB / 282.7 MB Notification: Performance of Templates: time 0.006115/0.03029, allocations: 1.023 MB / 320.7 MB, free: 43.55 MB / 282.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: 3.0116802570410073]