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.0054/0.0054, allocations: 176 kB / 15.12 MB, free: 5.98 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.079/1.079, allocations: 194.5 MB / 210.3 MB, free: 7.609 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03525/0.03525, allocations: 8.1 MB / 263.6 MB, free: 2.227 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.001562/0.001562, allocations: 120.5 kB / 310.6 MB, free: 27.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003/0.0003, allocations: 8 kB / 367.2 MB, free: 2.309 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1686/0.1689, allocations: 46.2 MB / 413.4 MB, free: 47.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06879/0.2377, allocations: 71.97 MB / 485.4 MB, free: 13.83 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000123/0.2379, allocations: 51.92 kB / 485.5 MB, free: 13.78 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005325/0.2432, allocations: 2.432 MB / 487.9 MB, free: 11.36 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.542e-06/0.2432, allocations: 0 / 487.9 MB, free: 11.36 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.2432, allocations: 4 kB / 487.9 MB, free: 11.35 MB / 330.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.0003922/0.2436, allocations: 411 kB / 488.3 MB, free: 10.9 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.897e-05/0.2437, allocations: 8.031 kB / 488.3 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.876e-05/0.2437, allocations: 19.77 kB / 488.3 MB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001026/0.2438, allocations: 178.9 kB / 488.5 MB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.2439, allocations: 12 kB / 488.5 MB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.813e-05/0.2439, allocations: 31.83 kB / 488.5 MB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002321/0.2441, allocations: 149.2 kB / 488.7 MB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.2442, allocations: 0 / 488.7 MB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.605e-05/0.2442, allocations: 8 kB / 488.7 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.2442, allocations: 4 kB / 488.7 MB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001518/0.2444, allocations: 95.95 kB / 488.8 MB, free: 10.36 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008368/0.2452, allocations: 0.7026 MB / 489.5 MB, free: 9.594 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003396/0.2456, allocations: 224.6 kB / 489.7 MB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.523e-05/0.2456, allocations: 3.938 kB / 489.7 MB, free: 9.344 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/0.2456, allocations: 46.44 kB / 489.8 MB, free: 9.289 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.223e-06/0.2456, allocations: 3.938 kB / 489.8 MB, free: 9.285 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.0006943/0.2463, allocations: 479.7 kB / 490.2 MB, free: 8.766 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.763e-05/0.2464, allocations: 59.41 kB / 490.3 MB, free: 8.695 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.707e-05/0.2464, allocations: 115.1 kB / 490.4 MB, free: 8.578 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.526e-05/0.2464, allocations: 25.7 kB / 490.4 MB, free: 8.547 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.203e-05/0.2465, allocations: 132.1 kB / 490.6 MB, free: 8.414 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.004e-05/0.2466, allocations: 63.09 kB / 490.6 MB, free: 8.352 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.374e-06/0.2466, allocations: 4 kB / 490.6 MB, free: 8.348 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.071e-05/0.2466, allocations: 318.8 kB / 490.9 MB, free: 8.027 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.486e-05/0.2467, allocations: 43.98 kB / 491 MB, free: 7.984 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.879e-05/0.2468, allocations: 89.12 kB / 491.1 MB, free: 7.879 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.355e-05/0.2469, allocations: 58.86 kB / 491.1 MB, free: 7.824 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2469, allocations: 3.953 kB / 491.1 MB, free: 7.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002196/0.2471, allocations: 181.4 kB / 491.3 MB, free: 7.637 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.2472, allocations: 7.953 kB / 491.3 MB, free: 7.629 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.2472, allocations: 4 kB / 491.3 MB, free: 7.625 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.008e-05/0.2472, allocations: 0 / 491.3 MB, free: 7.625 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/0.2474, allocations: 47.92 kB / 491.4 MB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.2474, allocations: 7.984 kB / 491.4 MB, free: 7.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.405e-05/0.2474, allocations: 8 kB / 491.4 MB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.2475, allocations: 4 kB / 491.4 MB, free: 7.559 MB / 330.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.046e-05/0.2475, allocations: 133.9 kB / 491.5 MB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.785e-05/0.2476, allocations: 7.906 kB / 491.5 MB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.018e-05/0.2476, allocations: 20.8 kB / 491.5 MB, free: 7.391 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.2476, allocations: 0 / 491.5 MB, free: 7.391 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.2476, allocations: 0 / 491.5 MB, free: 7.391 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.2476, allocations: 0 / 491.5 MB, free: 7.391 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004653/0.2481, allocations: 491 kB / 492 MB, free: 6.855 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2481, allocations: 7.938 kB / 492 MB, free: 6.848 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.2483, allocations: 39.97 kB / 492.1 MB, free: 6.809 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.2483, allocations: 4 kB / 492.1 MB, free: 6.805 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.2483, allocations: 4 kB / 492.1 MB, free: 6.801 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.2484, allocations: 3.938 kB / 492.1 MB, free: 6.797 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2484, allocations: 0 / 492.1 MB, free: 6.797 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002791/0.2486, allocations: 292.8 kB / 492.4 MB, free: 6.496 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.175e-05/0.2487, allocations: 81.02 kB / 492.5 MB, free: 6.398 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/0.2487, allocations: 8 kB / 492.5 MB, free: 6.391 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.954e-05/0.2488, allocations: 8.031 kB / 492.5 MB, free: 6.383 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.713e-05/0.2488, allocations: 4 kB / 492.5 MB, free: 6.379 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.774e-06/0.2488, allocations: 8.094 kB / 492.5 MB, free: 6.371 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.004e-05/0.2489, allocations: 91.27 kB / 492.6 MB, free: 6.281 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2489, allocations: 0 / 492.6 MB, free: 6.281 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002361/0.2491, allocations: 39.94 kB / 492.6 MB, free: 6.242 MB / 330.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,idealSensor.flange.phi) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.759e-05/0.2492, allocations: 107.2 kB / 492.7 MB, free: 6.129 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001771/0.2494, allocations: 120.8 kB / 492.8 MB, free: 6.012 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2494, allocations: 0 / 492.8 MB, free: 6.012 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.589e-05/0.2495, allocations: 59.92 kB / 492.9 MB, free: 5.953 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001235/0.2496, allocations: 9.5 kB / 492.9 MB, free: 5.945 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007716/0.2504, allocations: 0.6444 MB / 493.5 MB, free: 5.277 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000199/0.2506, allocations: 0.7204 MB / 494.3 MB, free: 4.531 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.143e-05/0.2506, allocations: 13.02 kB / 494.3 MB, free: 4.52 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.562e-05/0.2507, allocations: 15.44 kB / 494.3 MB, free: 4.504 MB / 330.7 MB Notification: Performance of SimCode: time 2.81e-07/0.2507, allocations: 4 kB / 494.3 MB, free: 4.5 MB / 330.7 MB Notification: Performance of Templates: time 0.002394/0.2531, allocations: 0.8286 MB / 495.1 MB, free: 3.684 MB / 330.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)