Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.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.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001373/0.001373, allocations: 184.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.431/1.431, allocations: 194.2 MB / 210.9 MB, free: 2.359 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03785/0.03785, allocations: 8.114 MB / 263.3 MB, free: 12.64 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.001793/0.001793, allocations: 124.1 kB / 309.4 MB, free: 14.46 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.002171/0.002171, allocations: 72.12 kB / 365.4 MB, free: 6.309 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2492, allocations: 45.25 MB / 410.7 MB, free: 66.82 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.0034/0.2527, allocations: 1.94 MB / 412.6 MB, free: 64.87 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002642/0.253, allocations: 143.4 kB / 412.7 MB, free: 64.73 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.925e-05/0.2531, allocations: 4 kB / 412.7 MB, free: 64.72 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 6.789e-05/0.2532, allocations: 23.84 kB / 412.8 MB, free: 64.7 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 8.856e-05/0.2533, allocations: 27.77 kB / 412.8 MB, free: 64.67 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001583/0.2534, allocations: 31.97 kB / 412.8 MB, free: 64.64 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001539/0.2536, allocations: 171.2 kB / 413 MB, free: 64.47 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001866/0.2538, allocations: 66.31 kB / 413.1 MB, free: 64.4 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.818e-05/0.2539, allocations: 63.78 kB / 413.1 MB, free: 64.34 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000101/0.254, allocations: 75.69 kB / 413.2 MB, free: 64.27 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.652e-05/0.254, allocations: 12 kB / 413.2 MB, free: 64.25 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.814e-05/0.254, allocations: 12 kB / 413.2 MB, free: 64.24 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 2.992e-05/0.2541, allocations: 27.86 kB / 413.2 MB, free: 64.21 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 7.312e-05/0.2541, allocations: 83.64 kB / 413.3 MB, free: 64.13 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000159/0.2543, allocations: 185.5 kB / 413.5 MB, free: 63.95 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.2543, allocations: 0 / 413.5 MB, free: 63.95 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.2543, allocations: 0 / 413.5 MB, free: 63.95 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.2543, allocations: 0 / 413.5 MB, free: 63.95 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0004977/0.2548, allocations: 451.1 kB / 413.9 MB, free: 63.46 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.2549, allocations: 8.031 kB / 414 MB, free: 63.45 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.259e-05/0.2549, allocations: 16.75 kB / 414 MB, free: 63.44 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.419e-05/0.255, allocations: 180.2 kB / 414.1 MB, free: 63.22 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.818e-05/0.2551, allocations: 16.38 kB / 414.2 MB, free: 63.21 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.005e-05/0.2551, allocations: 16.38 kB / 414.2 MB, free: 63.19 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002294/0.2553, allocations: 154.1 kB / 414.3 MB, free: 63.04 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.2553, allocations: 4.188 kB / 414.3 MB, free: 63.03 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.2554, allocations: 11.94 kB / 414.3 MB, free: 63.02 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.2554, allocations: 8 kB / 414.4 MB, free: 63.01 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001559/0.2555, allocations: 103.9 kB / 414.5 MB, free: 62.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008283/0.2564, allocations: 0.6908 MB / 415.1 MB, free: 62.15 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003602/0.2567, allocations: 223.6 kB / 415.4 MB, free: 61.9 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.2569, allocations: 88.83 kB / 415.5 MB, free: 61.81 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.349e-05/0.2569, allocations: 4 kB / 415.5 MB, free: 61.81 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.177e-05/0.257, allocations: 46.44 kB / 415.5 MB, free: 61.75 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 1.693e-06/0.257, allocations: 0 / 415.5 MB, free: 61.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=16): time 0.0006578/0.2576, allocations: 475 kB / 416 MB, free: 61.24 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.579e-05/0.2577, allocations: 59.41 kB / 416 MB, free: 61.17 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.492e-05/0.2577, allocations: 117.6 kB / 416.1 MB, free: 61.04 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.2578, allocations: 33.7 kB / 416.2 MB, free: 61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.295e-05/0.2578, allocations: 136 kB / 416.3 MB, free: 60.87 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.241e-05/0.2579, allocations: 55.17 kB / 416.4 MB, free: 60.81 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.816e-05/0.2579, allocations: 41.7 kB / 416.4 MB, free: 60.77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.256e-05/0.258, allocations: 318.8 kB / 416.7 MB, free: 60.45 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.071e-05/0.258, allocations: 43.98 kB / 416.8 MB, free: 60.4 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.234e-05/0.2581, allocations: 89.06 kB / 416.8 MB, free: 60.3 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001498/0.2583, allocations: 149 kB / 417 MB, free: 60.13 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.041e-06/0.2583, allocations: 0 / 417 MB, free: 60.13 MB / 314.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0001901/0.2585, allocations: 177.4 kB / 417.2 MB, free: 59.95 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.2585, allocations: 10.19 kB / 417.2 MB, free: 59.95 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.2585, allocations: 0 / 417.2 MB, free: 59.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.2586, allocations: 4 kB / 417.2 MB, free: 59.94 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001507/0.2587, allocations: 43.97 kB / 417.2 MB, free: 59.9 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.946e-06/0.2587, allocations: 11.94 kB / 417.2 MB, free: 59.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.048e-05/0.2588, allocations: 7.938 kB / 417.2 MB, free: 59.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.727e-06/0.2588, allocations: 8 kB / 417.2 MB, free: 59.87 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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.865e-05/0.2589, allocations: 130 kB / 417.4 MB, free: 59.73 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.82e-05/0.2589, allocations: 7.906 kB / 417.4 MB, free: 59.73 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.417e-05/0.259, allocations: 16.84 kB / 417.4 MB, free: 59.71 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.259, allocations: 4 kB / 417.4 MB, free: 59.71 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.259, allocations: 7.875 kB / 417.4 MB, free: 59.7 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.259, allocations: 7.922 kB / 417.4 MB, free: 59.69 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004661/0.2595, allocations: 491.1 kB / 417.9 MB, free: 59.16 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2595, allocations: 0 / 417.9 MB, free: 59.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000165/0.2596, allocations: 43.92 kB / 417.9 MB, free: 59.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.2597, allocations: 0 / 417.9 MB, free: 59.11 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.2597, allocations: 0 / 417.9 MB, free: 59.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.2597, allocations: 4 kB / 417.9 MB, free: 59.11 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2597, allocations: 0 / 417.9 MB, free: 59.11 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001306/0.261, allocations: 1.547 MB / 419.5 MB, free: 57.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.597e-05/0.261, allocations: 85.02 kB / 419.6 MB, free: 57.33 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.344e-05/0.2611, allocations: 4 kB / 419.6 MB, free: 57.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.317e-05/0.2611, allocations: 8 kB / 419.6 MB, free: 57.32 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.294e-05/0.2612, allocations: 8.031 kB / 419.6 MB, free: 57.31 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.814e-06/0.2612, allocations: 8 kB / 419.6 MB, free: 57.3 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.321e-05/0.2612, allocations: 95.86 kB / 419.7 MB, free: 57.21 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2612, allocations: 3.938 kB / 419.7 MB, free: 57.2 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000321/0.2615, allocations: 44 kB / 419.7 MB, free: 57.16 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.flange_a.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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 Backend phase and start with SimCode phase: time 8.763e-05/0.2616, allocations: 99.36 kB / 419.8 MB, free: 57.05 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001768/0.2618, allocations: 123.8 kB / 420 MB, free: 56.93 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2618, allocations: 0 / 420 MB, free: 56.93 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 5.455e-05/0.2619, allocations: 55.92 kB / 420 MB, free: 56.88 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002143/0.2621, allocations: 11.94 kB / 420 MB, free: 56.87 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008675/0.263, allocations: 0.7479 MB / 420.8 MB, free: 56.08 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001688/0.2632, allocations: 0.7244 MB / 421.5 MB, free: 55.33 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 5.031e-05/0.2632, allocations: 13.64 kB / 421.5 MB, free: 55.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.975e-05/0.2633, allocations: 15.44 kB / 421.5 MB, free: 55.3 MB / 314.7 MB Notification: Performance of SimCode: time 2e-07/0.2633, allocations: 0 / 421.5 MB, free: 55.3 MB / 314.7 MB Notification: Performance of Templates: time 0.003189/0.2665, allocations: 1.267 MB / 422.8 MB, free: 54.04 MB / 314.7 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.makefile (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1)