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.002423/0.002423, allocations: 85.48 kB / 19.44 MB, free: 336 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.003073/0.003073, allocations: 173.2 kB / 22.76 MB, free: 1.66 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 1.372/1.372, allocations: 158.6 MB / 184.6 MB, free: 2.898 MB / 170.7 MB " [Timeout remaining time 178] 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.06169/0.06169, allocations: 6.408 MB / 243.3 MB, free: 8.781 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.322e-06/1.322e-06, allocations: 0 / 310 MB, free: 52.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.016e-05/2.148e-05, allocations: 6.359 kB / 310 MB, free: 52.25 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.002614/0.002635, allocations: 1.966 MB / 312 MB, free: 50.95 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000484/0.003119, allocations: 228.2 kB / 312.2 MB, free: 50.8 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.713e-05/0.003217, allocations: 3.219 kB / 312.2 MB, free: 50.8 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 6.569e-05/0.003282, allocations: 25.59 kB / 312.2 MB, free: 50.78 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001374/0.00342, allocations: 46.89 kB / 312.3 MB, free: 50.75 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002093/0.003629, allocations: 58.31 kB / 312.3 MB, free: 50.71 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001959/0.003825, allocations: 192.2 kB / 312.5 MB, free: 50.61 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001664/0.003991, allocations: 69.89 kB / 312.6 MB, free: 50.58 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001551/0.004146, allocations: 113 kB / 312.7 MB, free: 50.54 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001101/0.004256, allocations: 59.23 kB / 312.8 MB, free: 50.52 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.456e-05/0.004301, allocations: 19.09 kB / 312.8 MB, free: 50.52 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.638e-05/0.004337, allocations: 17.97 kB / 312.8 MB, free: 50.52 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.534e-05/0.004373, allocations: 44.73 kB / 312.8 MB, free: 50.48 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.797e-05/0.004451, allocations: 66.78 kB / 312.9 MB, free: 50.46 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002439/0.004695, allocations: 213.2 kB / 313.1 MB, free: 50.38 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.803e-06/0.004696, allocations: 0 / 313.1 MB, free: 50.38 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.004697, allocations: 1.625 kB / 313.1 MB, free: 50.38 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.004703, allocations: 0 / 313.1 MB, free: 50.38 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.0005856/0.005289, allocations: 0.4889 MB / 313.6 MB, free: 49.94 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.714e-05/0.005326, allocations: 14.25 kB / 313.6 MB, free: 49.93 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.635e-05/0.005402, allocations: 34.5 kB / 313.7 MB, free: 49.92 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.964e-05/0.005482, allocations: 134.2 kB / 313.8 MB, free: 49.77 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.005501, allocations: 13 kB / 313.8 MB, free: 49.77 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.939e-05/0.00554, allocations: 21.45 kB / 313.8 MB, free: 49.76 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002579/0.005798, allocations: 156.4 kB / 314 MB, free: 49.69 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.005815, allocations: 0.75 kB / 314 MB, free: 49.69 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.005832, allocations: 11.12 kB / 314 MB, free: 49.68 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.81e-06/0.005838, allocations: 8.5 kB / 314 MB, free: 49.68 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001793/0.006017, allocations: 109.4 kB / 314.1 MB, free: 49.64 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009554/0.006973, allocations: 0.6628 MB / 314.8 MB, free: 49.13 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003052/0.007278, allocations: 158.6 kB / 314.9 MB, free: 49.06 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001987/0.007477, allocations: 90.91 kB / 315 MB, free: 49.02 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.149e-05/0.007498, allocations: 3.875 kB / 315 MB, free: 49.02 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001588/0.007657, allocations: 100.6 kB / 315.1 MB, free: 48.95 MB / 282.7 MB Notification: Performance of pre-optimization done (n=16): time 1.453e-06/0.007658, allocations: 1.281 kB / 315.1 MB, free: 48.95 MB / 282.7 MB Notification: Performance of matching and sorting (n=18): time 0.0008724/0.008531, allocations: 459.5 kB / 315.6 MB, free: 48.64 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.745e-05/0.008558, allocations: 51.92 kB / 315.6 MB, free: 48.57 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.515e-05/0.008643, allocations: 199.7 kB / 315.8 MB, free: 48.37 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.008655, allocations: 25.7 kB / 315.8 MB, free: 48.34 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.776e-05/0.008713, allocations: 190.2 kB / 316 MB, free: 48.16 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.542e-05/0.008758, allocations: 77.34 kB / 316.1 MB, free: 48.09 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.728e-05/0.008825, allocations: 58.42 kB / 316.2 MB, free: 48.02 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.998e-05/0.008905, allocations: 0.4999 MB / 316.7 MB, free: 47.52 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.377e-05/0.008979, allocations: 53.48 kB / 316.7 MB, free: 47.47 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001075/0.009087, allocations: 134 kB / 316.8 MB, free: 47.31 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001929/0.00928, allocations: 192.9 kB / 317 MB, free: 47.1 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.009281, allocations: 0 / 317 MB, free: 47.1 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002585/0.00954, allocations: 224.2 kB / 317.2 MB, free: 46.89 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.282e-05/0.009553, allocations: 4.75 kB / 317.2 MB, free: 46.88 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.009559, allocations: 0 / 317.2 MB, free: 46.88 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.009576, allocations: 4 kB / 317.2 MB, free: 46.88 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001856/0.009762, allocations: 62.67 kB / 317.3 MB, free: 46.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.188e-06/0.009771, allocations: 0 / 317.3 MB, free: 46.82 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.516e-05/0.009836, allocations: 8 kB / 317.3 MB, free: 46.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.348e-05/0.00985, allocations: 13.3 kB / 317.3 MB, free: 46.8 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 8.83e-05/0.009938, allocations: 180.5 kB / 317.5 MB, free: 46.62 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.676e-05/0.009965, allocations: 16.47 kB / 317.5 MB, free: 46.6 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.878e-05/0.01001, allocations: 18.8 kB / 317.5 MB, free: 46.59 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.01002, allocations: 0 / 317.5 MB, free: 46.59 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.01002, allocations: 3.938 kB / 317.5 MB, free: 46.58 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.01003, allocations: 4.75 kB / 317.6 MB, free: 46.58 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005093/0.01053, allocations: 0.4972 MB / 318 MB, free: 46.05 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.01054, allocations: 0 / 318 MB, free: 46.05 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000174/0.01071, allocations: 39.92 kB / 318.1 MB, free: 46.01 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.065e-06/0.01071, allocations: 4 kB / 318.1 MB, free: 46.01 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.01073, allocations: 11.94 kB / 318.1 MB, free: 46 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.01073, allocations: 0 / 318.1 MB, free: 46 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.01073, allocations: 3.938 kB / 318.1 MB, free: 45.99 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000288/0.01102, allocations: 362 kB / 318.5 MB, free: 45.62 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.468e-05/0.01103, allocations: 7.953 kB / 318.5 MB, free: 45.61 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.263e-05/0.01106, allocations: 7.984 kB / 318.5 MB, free: 45.61 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.361e-05/0.01113, allocations: 1.453 kB / 318.5 MB, free: 45.61 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.447e-05/0.01116, allocations: 11.98 kB / 318.5 MB, free: 45.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.107e-06/0.01117, allocations: 4 kB / 318.5 MB, free: 45.59 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.866e-05/0.01121, allocations: 147.2 kB / 318.6 MB, free: 45.45 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01121, allocations: 0 / 318.6 MB, free: 45.45 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002553/0.01147, allocations: 36 kB / 318.7 MB, free: 45.41 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 7.816e-05/0.01155, allocations: 110.9 kB / 318.8 MB, free: 45.3 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002022/0.01175, allocations: 143.5 kB / 318.9 MB, free: 45.15 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.01175, allocations: 0 / 318.9 MB, free: 45.15 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 7.283e-05/0.01182, allocations: 75.19 kB / 319 MB, free: 45.08 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.01205, allocations: 8.375 kB / 319 MB, free: 45.07 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000652/0.0127, allocations: 484.7 kB / 319.5 MB, free: 44.57 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.326e-05/0.01276, allocations: 118.5 kB / 319.6 MB, free: 44.45 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.25e-05/0.01281, allocations: 13.48 kB / 319.6 MB, free: 44.43 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.1e-05/0.01285, allocations: 16.5 kB / 319.6 MB, free: 44.41 MB / 282.7 MB Notification: Performance of SimCode: time 7.11e-07/0.01285, allocations: 4 kB / 319.6 MB, free: 44.41 MB / 282.7 MB Notification: Performance of Templates: time 0.003795/0.01664, allocations: 1.017 MB / 320.6 MB, free: 43.44 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: 4.383947386057116]