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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) 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.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001299/0.001299, allocations: 186.5 kB / 15.98 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.484/1.484, allocations: 194.2 MB / 210.9 MB, free: 2.363 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04275/0.04275, allocations: 8.115 MB / 263.3 MB, free: 12.65 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001864/0.001864, allocations: 124.1 kB / 309.4 MB, free: 14.47 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 67.91 kB / 365.4 MB, free: 6.328 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2419, allocations: 45.26 MB / 410.7 MB, free: 66.84 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003759/0.2457, allocations: 1.988 MB / 412.6 MB, free: 64.84 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005379/0.2463, allocations: 235.2 kB / 412.9 MB, free: 64.61 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.614e-05/0.2464, allocations: 0 / 412.9 MB, free: 64.61 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 8.965e-05/0.2465, allocations: 23.84 kB / 412.9 MB, free: 64.59 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001263/0.2467, allocations: 31.7 kB / 412.9 MB, free: 64.56 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002578/0.2469, allocations: 43.95 kB / 413 MB, free: 64.52 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002151/0.2472, allocations: 179.3 kB / 413.1 MB, free: 64.34 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002266/0.2474, allocations: 78.61 kB / 413.2 MB, free: 64.26 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.127e-05/0.2475, allocations: 63.8 kB / 413.3 MB, free: 64.2 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001191/0.2476, allocations: 87.61 kB / 413.4 MB, free: 64.11 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.355e-05/0.2476, allocations: 12 kB / 413.4 MB, free: 64.1 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.222e-05/0.2477, allocations: 16 kB / 413.4 MB, free: 64.09 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 4.714e-05/0.2478, allocations: 27.92 kB / 413.4 MB, free: 64.06 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001062/0.2479, allocations: 83.59 kB / 413.5 MB, free: 63.98 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002241/0.2481, allocations: 205.5 kB / 413.7 MB, free: 63.78 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.2481, allocations: 0 / 413.7 MB, free: 63.78 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.2481, allocations: 0 / 413.7 MB, free: 63.78 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.406e-06/0.2481, allocations: 7.938 kB / 413.7 MB, free: 63.77 MB / 314.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.0007142/0.2489, allocations: 463.4 kB / 414.2 MB, free: 63.26 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.2489, allocations: 12.03 kB / 414.2 MB, free: 63.25 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.639e-05/0.249, allocations: 16.75 kB / 414.2 MB, free: 63.23 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001155/0.2491, allocations: 184.1 kB / 414.4 MB, free: 63.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.2492, allocations: 16.73 kB / 414.4 MB, free: 63 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.833e-05/0.2492, allocations: 20.38 kB / 414.4 MB, free: 62.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003643/0.2496, allocations: 176.9 kB / 414.6 MB, free: 62.8 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.2496, allocations: 192 / 414.6 MB, free: 62.8 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.682e-05/0.2497, allocations: 7.938 kB / 414.6 MB, free: 62.8 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.2497, allocations: 8 kB / 414.6 MB, free: 62.79 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002759/0.25, allocations: 103.7 kB / 414.7 MB, free: 62.69 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001216/0.2512, allocations: 0.7065 MB / 415.4 MB, free: 61.91 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003891/0.2516, allocations: 227.6 kB / 415.6 MB, free: 61.66 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002427/0.2519, allocations: 96.81 kB / 415.7 MB, free: 61.56 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.2519, allocations: 4 kB / 415.7 MB, free: 61.56 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002618/0.2522, allocations: 87.38 kB / 415.8 MB, free: 61.46 MB / 314.7 MB Notification: Performance of pre-optimization done (n=16): time 2.004e-06/0.2522, allocations: 3.938 kB / 415.8 MB, free: 61.46 MB / 314.7 MB Notification: Performance of matching and sorting (n=18): time 0.001001/0.2532, allocations: 0.5126 MB / 416.3 MB, free: 60.9 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.2532, allocations: 67.28 kB / 416.4 MB, free: 60.82 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.093e-05/0.2533, allocations: 123.9 kB / 416.5 MB, free: 60.69 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.2534, allocations: 29.7 kB / 416.5 MB, free: 60.65 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.576e-05/0.2534, allocations: 132 kB / 416.7 MB, free: 60.52 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.678e-05/0.2535, allocations: 67.08 kB / 416.7 MB, free: 60.45 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.06e-05/0.2536, allocations: 45.7 kB / 416.8 MB, free: 60.4 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.7e-05/0.2536, allocations: 322.8 kB / 417.1 MB, free: 60.08 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001046/0.2538, allocations: 47.98 kB / 417.2 MB, free: 60.03 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001585/0.2539, allocations: 104.3 kB / 417.3 MB, free: 59.91 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001574/0.2541, allocations: 166.7 kB / 417.4 MB, free: 59.72 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.2541, allocations: 4 kB / 417.4 MB, free: 59.71 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002246/0.2543, allocations: 205.3 kB / 417.6 MB, free: 59.51 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.2543, allocations: 12.03 kB / 417.6 MB, free: 59.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.2544, allocations: 0 / 417.6 MB, free: 59.5 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.2544, allocations: 4 kB / 417.6 MB, free: 59.49 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001728/0.2546, allocations: 55.97 kB / 417.7 MB, free: 59.44 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.2546, allocations: 7.938 kB / 417.7 MB, free: 59.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.218e-05/0.2546, allocations: 8 kB / 417.7 MB, free: 59.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.2547, allocations: 8 kB / 417.7 MB, free: 59.41 MB / 314.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.891e-05/0.2547, allocations: 133.7 kB / 417.8 MB, free: 59.27 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.649e-05/0.2548, allocations: 15.84 kB / 417.9 MB, free: 59.26 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.085e-05/0.2548, allocations: 16.84 kB / 417.9 MB, free: 59.24 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.2548, allocations: 7.984 kB / 417.9 MB, free: 59.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-06/0.2548, allocations: 3.984 kB / 417.9 MB, free: 59.23 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.2548, allocations: 0 / 417.9 MB, free: 59.23 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004587/0.2553, allocations: 0.5022 MB / 418.4 MB, free: 58.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2553, allocations: 0 / 418.4 MB, free: 58.67 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001715/0.2555, allocations: 39.98 kB / 418.4 MB, free: 58.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.2555, allocations: 0 / 418.4 MB, free: 58.63 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.277e-05/0.2555, allocations: 8 kB / 418.4 MB, free: 58.62 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.2555, allocations: 3.984 kB / 418.4 MB, free: 58.62 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2555, allocations: 0 / 418.4 MB, free: 58.62 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/0.2568, allocations: 1.573 MB / 420 MB, free: 56.91 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.189e-05/0.2568, allocations: 89.05 kB / 420.1 MB, free: 56.8 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.563e-05/0.2568, allocations: 4 kB / 420.1 MB, free: 56.8 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.523e-05/0.2569, allocations: 3.938 kB / 420.1 MB, free: 56.8 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.478e-05/0.2569, allocations: 15.98 kB / 420.1 MB, free: 56.78 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.257e-06/0.257, allocations: 8 kB / 420.1 MB, free: 56.77 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.307e-05/0.257, allocations: 91.27 kB / 420.2 MB, free: 56.68 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.257, allocations: 0 / 420.2 MB, free: 56.68 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003281/0.2573, allocations: 55.94 kB / 420.3 MB, free: 56.63 MB / 314.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.361e-05/0.2574, allocations: 107.2 kB / 420.4 MB, free: 56.52 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001783/0.2576, allocations: 128.1 kB / 420.5 MB, free: 56.39 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2576, allocations: 4.125 kB / 420.5 MB, free: 56.39 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 6.966e-05/0.2577, allocations: 59.92 kB / 420.6 MB, free: 56.33 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002371/0.2579, allocations: 8 kB / 420.6 MB, free: 56.32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008285/0.2588, allocations: 0.7913 MB / 421.4 MB, free: 55.49 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001405/0.2589, allocations: 0.7322 MB / 422.1 MB, free: 54.73 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.436e-05/0.259, allocations: 21.34 kB / 422.1 MB, free: 54.71 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.022e-05/0.259, allocations: 19.44 kB / 422.1 MB, free: 54.69 MB / 314.7 MB Notification: Performance of SimCode: time 2.11e-07/0.259, allocations: 0 / 422.1 MB, free: 54.69 MB / 314.7 MB Notification: Performance of Templates: time 0.003052/0.2621, allocations: 1.389 MB / 423.5 MB, free: 53.31 MB / 314.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.makefile (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=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1)