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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001681/0.001681, allocations: 100.1 kB / 16.35 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00194/0.00194, allocations: 199.2 kB / 17.3 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.458/1.458, allocations: 205.1 MB / 223.2 MB, free: 12.11 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04158/0.04158, allocations: 8.116 MB / 278.6 MB, free: 3.941 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaByExample requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 67.91 kB / 338.6 MB, free: 7.816 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2502, allocations: 48.28 MB / 386.9 MB, free: 51.81 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.003341/0.2536, allocations: 1.896 MB / 388.8 MB, free: 50.51 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003216/0.2539, allocations: 148 kB / 389 MB, free: 50.4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.648e-05/0.254, allocations: 2.344 kB / 389 MB, free: 50.4 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.275e-05/0.2541, allocations: 22.09 kB / 389 MB, free: 50.39 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.122e-05/0.2542, allocations: 41.92 kB / 389 MB, free: 50.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001939/0.2544, allocations: 47.75 kB / 389.1 MB, free: 50.33 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002114/0.2546, allocations: 169.2 kB / 389.2 MB, free: 50.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002176/0.2548, allocations: 83.91 kB / 389.3 MB, free: 50.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.818e-05/0.2549, allocations: 65.98 kB / 389.4 MB, free: 50.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001147/0.255, allocations: 73.8 kB / 389.4 MB, free: 50.14 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.637e-05/0.2551, allocations: 16.84 kB / 389.5 MB, free: 50.14 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.122e-05/0.2551, allocations: 17.62 kB / 389.5 MB, free: 50.14 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.699e-05/0.2551, allocations: 42.73 kB / 389.5 MB, free: 50.11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.005e-05/0.2552, allocations: 86.03 kB / 389.6 MB, free: 50.06 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000224/0.2555, allocations: 192.1 kB / 389.8 MB, free: 49.99 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.2555, allocations: 1.125 kB / 389.8 MB, free: 49.99 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2555, allocations: 0.5938 kB / 389.8 MB, free: 49.99 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.2555, allocations: 0.6562 kB / 389.8 MB, free: 49.99 MB / 318.1 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.000518/0.256, allocations: 449.4 kB / 390.2 MB, free: 49.57 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.2561, allocations: 9.984 kB / 390.2 MB, free: 49.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.873e-05/0.2561, allocations: 17.88 kB / 390.3 MB, free: 49.56 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001038/0.2562, allocations: 178.5 kB / 390.4 MB, free: 49.36 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.2563, allocations: 12.41 kB / 390.5 MB, free: 49.35 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.511e-05/0.2563, allocations: 23.69 kB / 390.5 MB, free: 49.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002749/0.2566, allocations: 155.2 kB / 390.6 MB, free: 49.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.2566, allocations: 4.125 kB / 390.6 MB, free: 49.26 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.2566, allocations: 14.56 kB / 390.6 MB, free: 49.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.2567, allocations: 6.031 kB / 390.7 MB, free: 49.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001967/0.2569, allocations: 107.5 kB / 390.8 MB, free: 49.21 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008672/0.2577, allocations: 0.6745 MB / 391.4 MB, free: 48.69 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004237/0.2582, allocations: 228.1 kB / 391.7 MB, free: 48.53 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002002/0.2584, allocations: 89.52 kB / 391.7 MB, free: 48.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.014e-05/0.2584, allocations: 7.656 kB / 391.7 MB, free: 48.49 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.71e-05/0.2584, allocations: 31.59 kB / 391.8 MB, free: 48.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.443e-06/0.2584, allocations: 0.9375 kB / 391.8 MB, free: 48.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007863/0.2592, allocations: 480.3 kB / 392.2 MB, free: 48.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.2593, allocations: 54.09 kB / 392.3 MB, free: 48.03 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.616e-05/0.2594, allocations: 124 kB / 392.4 MB, free: 47.92 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.294e-05/0.2594, allocations: 31.02 kB / 392.5 MB, free: 47.88 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.768e-05/0.2594, allocations: 130.4 kB / 392.6 MB, free: 47.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.346e-05/0.2595, allocations: 67.92 kB / 392.6 MB, free: 47.71 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.966e-05/0.2596, allocations: 38.78 kB / 392.7 MB, free: 47.68 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.234e-05/0.2596, allocations: 322.6 kB / 393 MB, free: 47.37 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.707e-05/0.2597, allocations: 46.19 kB / 393 MB, free: 47.35 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/0.2598, allocations: 92.17 kB / 393.1 MB, free: 47.28 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001683/0.26, allocations: 144.9 kB / 393.3 MB, free: 47.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.26, allocations: 0 / 393.3 MB, free: 47.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.00025/0.2603, allocations: 180.8 kB / 393.5 MB, free: 47.09 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.2603, allocations: 8.156 kB / 393.5 MB, free: 47.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.2603, allocations: 0.9688 kB / 393.5 MB, free: 47.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.2603, allocations: 3.5 kB / 393.5 MB, free: 47.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/0.2605, allocations: 46.31 kB / 393.5 MB, free: 47.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.2605, allocations: 3.734 kB / 393.5 MB, free: 47.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6e-05/0.2606, allocations: 10.75 kB / 393.5 MB, free: 47.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.294e-05/0.2606, allocations: 5.406 kB / 393.5 MB, free: 47.08 MB / 318.1 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.642e-05/0.2607, allocations: 135.2 kB / 393.7 MB, free: 46.95 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.226e-05/0.2607, allocations: 9.688 kB / 393.7 MB, free: 46.95 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.854e-05/0.2608, allocations: 21.98 kB / 393.7 MB, free: 46.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.2608, allocations: 1.844 kB / 393.7 MB, free: 46.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2608, allocations: 1.969 kB / 393.7 MB, free: 46.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.2608, allocations: 4.594 kB / 393.7 MB, free: 46.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005263/0.2614, allocations: 486.9 kB / 394.2 MB, free: 46.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.2614, allocations: 0 / 394.2 MB, free: 46.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001931/0.2616, allocations: 47.41 kB / 394.2 MB, free: 46.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.2616, allocations: 6.922 kB / 394.2 MB, free: 46.53 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.2616, allocations: 1.469 kB / 394.2 MB, free: 46.53 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.2616, allocations: 1.562 kB / 394.2 MB, free: 46.53 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2616, allocations: 0.6562 kB / 394.2 MB, free: 46.53 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002601/0.2619, allocations: 270.2 kB / 394.5 MB, free: 46.35 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.404e-05/0.2619, allocations: 89.5 kB / 394.6 MB, free: 46.25 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.984e-05/0.2619, allocations: 4.703 kB / 394.6 MB, free: 46.24 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.147e-05/0.262, allocations: 1.375 kB / 394.6 MB, free: 46.24 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.373e-05/0.262, allocations: 15.69 kB / 394.6 MB, free: 46.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.2621, allocations: 2.75 kB / 394.6 MB, free: 46.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.412e-05/0.2621, allocations: 92.61 kB / 394.7 MB, free: 46.16 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2621, allocations: 0 / 394.7 MB, free: 46.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002654/0.2624, allocations: 34.25 kB / 394.7 MB, free: 46.15 MB / 318.1 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 7.589e-05/0.2625, allocations: 105.9 kB / 394.8 MB, free: 46.05 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002004/0.2627, allocations: 118.5 kB / 395 MB, free: 46.02 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2627, allocations: 4 kB / 395 MB, free: 46.01 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.496e-05/0.2628, allocations: 57.2 kB / 395 MB, free: 45.99 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002249/0.263, allocations: 10.53 kB / 395 MB, free: 45.99 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007583/0.2637, allocations: 0.5184 MB / 395.5 MB, free: 45.61 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001521/0.2639, allocations: 0.7267 MB / 396.3 MB, free: 44.91 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.84e-05/0.264, allocations: 13.12 kB / 396.3 MB, free: 44.91 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.896e-05/0.264, allocations: 14.03 kB / 396.3 MB, free: 44.9 MB / 318.1 MB Notification: Performance of SimCode: time 7.71e-07/0.264, allocations: 1.188 kB / 396.3 MB, free: 44.9 MB / 318.1 MB Notification: Performance of Templates: time 0.003509/0.2675, allocations: 0.9841 MB / 397.3 MB, free: 44.81 MB / 318.1 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 -s gbode -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1)