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: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0057/0.0057, allocations: 100.9 kB / 15.73 MB, free: 6.062 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.001302/0.001302, allocations: 195.3 kB / 16.67 MB, free: 5.973 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.517/1.517, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.05101/0.05101, allocations: 8.12 MB / 278 MB, free: 13.05 MB / 238.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.002152/0.002152, allocations: 71.89 kB / 386.2 MB, free: 9.516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2693, allocations: 48.29 MB / 434.5 MB, free: 7.719 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.003122/0.2724, allocations: 1.901 MB / 436.4 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003148/0.2728, allocations: 147.4 kB / 436.5 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.521e-05/0.2729, allocations: 3.25 kB / 436.5 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.21e-05/0.273, allocations: 24.48 kB / 436.6 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.876e-05/0.2731, allocations: 42.25 kB / 436.6 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001743/0.2732, allocations: 45.92 kB / 436.6 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001912/0.2734, allocations: 172.5 kB / 436.8 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002056/0.2736, allocations: 83.5 kB / 436.9 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.252e-05/0.2737, allocations: 66.72 kB / 437 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001248/0.2739, allocations: 73.59 kB / 437 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.031e-05/0.2739, allocations: 16.44 kB / 437.1 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.007e-05/0.274, allocations: 21.09 kB / 437.1 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.762e-05/0.274, allocations: 42.44 kB / 437.1 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.224e-05/0.2741, allocations: 78.14 kB / 437.2 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002441/0.2743, allocations: 187.8 kB / 437.4 MB, free: 5.859 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.2743, allocations: 0 / 437.4 MB, free: 5.859 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.2744, allocations: 1.375 kB / 437.4 MB, free: 5.859 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.2744, allocations: 0 / 437.4 MB, free: 5.859 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.0005174/0.2749, allocations: 448.6 kB / 437.8 MB, free: 5.441 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.2749, allocations: 13.62 kB / 437.8 MB, free: 5.438 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.143e-05/0.275, allocations: 56.59 kB / 437.9 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.564e-05/0.275, allocations: 17.09 kB / 437.9 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.154e-05/0.2751, allocations: 185.4 kB / 438.1 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.2751, allocations: 11.86 kB / 438.1 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.667e-05/0.2752, allocations: 20.75 kB / 438.1 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002756/0.2755, allocations: 153.9 kB / 438.3 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.2755, allocations: 4.734 kB / 438.3 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.2755, allocations: 10.69 kB / 438.3 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.2755, allocations: 4.125 kB / 438.3 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001728/0.2757, allocations: 106.8 kB / 438.4 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008346/0.2765, allocations: 0.6736 MB / 439.1 MB, free: 4.492 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003959/0.2769, allocations: 229.1 kB / 439.3 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001944/0.2772, allocations: 91.3 kB / 439.4 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.833e-05/0.2772, allocations: 2.125 kB / 439.4 MB, free: 4.293 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.546e-05/0.2772, allocations: 39.84 kB / 439.4 MB, free: 4.246 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.322e-06/0.2772, allocations: 0.9375 kB / 439.4 MB, free: 4.246 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007328/0.2779, allocations: 474.9 kB / 439.9 MB, free: 3.883 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.421e-05/0.278, allocations: 54 kB / 439.9 MB, free: 3.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.302e-05/0.2781, allocations: 128.4 kB / 440.1 MB, free: 3.703 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.137e-05/0.2781, allocations: 30.92 kB / 440.1 MB, free: 3.668 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.039e-05/0.2781, allocations: 131.7 kB / 440.2 MB, free: 3.547 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.421e-05/0.2782, allocations: 68.22 kB / 440.3 MB, free: 3.492 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.706e-05/0.2782, allocations: 36.84 kB / 440.3 MB, free: 3.465 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.702e-05/0.2783, allocations: 321.5 kB / 440.6 MB, free: 3.148 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.435e-05/0.2784, allocations: 43.89 kB / 440.7 MB, free: 3.133 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.46e-05/0.2785, allocations: 99.47 kB / 440.8 MB, free: 3.051 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00018/0.2787, allocations: 142.1 kB / 440.9 MB, free: 2.953 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-06/0.2787, allocations: 4 kB / 440.9 MB, free: 2.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002438/0.2789, allocations: 177.7 kB / 441.1 MB, free: 2.859 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.279, allocations: 7.172 kB / 441.1 MB, free: 2.859 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.279, allocations: 5.531 kB / 441.1 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.279, allocations: 1.625 kB / 441.1 MB, free: 2.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000184/0.2792, allocations: 48.14 kB / 441.1 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.2792, allocations: 6.672 kB / 441.2 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.503e-05/0.2793, allocations: 6.344 kB / 441.2 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.177e-05/0.2793, allocations: 10 kB / 441.2 MB, free: 2.84 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.349e-05/0.2794, allocations: 134 kB / 441.3 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.279e-05/0.2794, allocations: 8.516 kB / 441.3 MB, free: 2.703 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.502e-05/0.2795, allocations: 19.11 kB / 441.3 MB, free: 2.688 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.2795, allocations: 2.25 kB / 441.3 MB, free: 2.688 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.2795, allocations: 3.938 kB / 441.3 MB, free: 2.684 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.2795, allocations: 2.453 kB / 441.3 MB, free: 2.684 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005455/0.28, allocations: 494.8 kB / 441.8 MB, free: 2.293 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.2801, allocations: 3.938 kB / 441.8 MB, free: 2.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002019/0.2803, allocations: 38.89 kB / 441.9 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.2803, allocations: 1.062 kB / 441.9 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.39e-05/0.2803, allocations: 1.906 kB / 441.9 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.2803, allocations: 1.188 kB / 441.9 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.2803, allocations: 0 / 441.9 MB, free: 2.285 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003382/0.2807, allocations: 280.5 kB / 442.1 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.384e-05/0.2807, allocations: 92.66 kB / 442.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.091e-05/0.2807, allocations: 5.844 kB / 442.2 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.041e-05/0.2808, allocations: 0.8125 kB / 442.2 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.498e-05/0.2808, allocations: 7.547 kB / 442.2 MB, free: 1.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.959e-06/0.2808, allocations: 7.25 kB / 442.3 MB, free: 1.977 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.005e-05/0.2809, allocations: 91.23 kB / 442.3 MB, free: 1.898 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2809, allocations: 0 / 442.3 MB, free: 1.898 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000292/0.2812, allocations: 34.66 kB / 442.4 MB, free: 1.895 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 0.0005127/0.2817, allocations: 0.8237 MB / 443.2 MB, free: 1.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002714/0.282, allocations: 113.5 kB / 443.3 MB, free: 1.125 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.282, allocations: 0.625 kB / 443.3 MB, free: 1.125 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.726e-05/0.2821, allocations: 61.42 kB / 443.4 MB, free: 1.102 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002328/0.2823, allocations: 7.062 kB / 443.4 MB, free: 1.098 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001953/0.2843, allocations: 1.983 MB / 445.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003826/0.2847, allocations: 0.721 MB / 446.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.642e-05/0.2847, allocations: 10.31 kB / 446.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.774e-05/0.2848, allocations: 45.16 kB / 446.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2848, allocations: 0 / 446.1 MB, free: 14.7 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02635/0.3112, allocations: 2.563 MB / 448.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.019/8.33, allocations: 9.062 kB / 448.7 MB, free: 14.13 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1)