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.006855/0.006854, allocations: 102.5 kB / 15.73 MB, free: 6.484 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.001615/0.001615, allocations: 190.1 kB / 16.67 MB, free: 6.379 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.484/1.484, allocations: 205.1 MB / 222.5 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04222/0.04222, allocations: 8.109 MB / 278 MB, free: 13.06 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.001583/0.001583, allocations: 71.89 kB / 386.2 MB, free: 9.535 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3568/0.3584, allocations: 48.3 MB / 434.5 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.003843/0.3623, allocations: 1.889 MB / 436.4 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004402/0.3628, allocations: 144.4 kB / 436.5 MB, free: 6.023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.958e-05/0.3629, allocations: 6.5 kB / 436.5 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.557e-05/0.363, allocations: 28.39 kB / 436.6 MB, free: 6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001308/0.3631, allocations: 38.33 kB / 436.6 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002923/0.3634, allocations: 41.95 kB / 436.6 MB, free: 5.949 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000358/0.3638, allocations: 173.6 kB / 436.8 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002926/0.3641, allocations: 87.33 kB / 436.9 MB, free: 5.816 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.128e-05/0.3642, allocations: 65.92 kB / 437 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001643/0.3644, allocations: 69.38 kB / 437 MB, free: 5.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.087e-05/0.3644, allocations: 21.59 kB / 437 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.437e-05/0.3645, allocations: 15.88 kB / 437.1 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.259e-05/0.3645, allocations: 42.5 kB / 437.1 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001313/0.3647, allocations: 82.73 kB / 437.2 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003248/0.365, allocations: 187.8 kB / 437.4 MB, free: 5.598 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.365, allocations: 0 / 437.4 MB, free: 5.598 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.757e-06/0.365, allocations: 1.375 kB / 437.4 MB, free: 5.598 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.365, allocations: 0 / 437.4 MB, free: 5.598 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.0007075/0.3658, allocations: 444.1 kB / 437.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.357e-05/0.3658, allocations: 8.969 kB / 437.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001021/0.3659, allocations: 53.48 kB / 437.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.347e-05/0.366, allocations: 21.31 kB / 437.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001583/0.3662, allocations: 180.9 kB / 438.1 MB, free: 4.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.181e-05/0.3662, allocations: 16.19 kB / 438.1 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.266e-05/0.3663, allocations: 17.17 kB / 438.1 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000359/0.3666, allocations: 157.7 kB / 438.2 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/0.3667, allocations: 5.031 kB / 438.2 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.329e-05/0.3667, allocations: 9.906 kB / 438.3 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.3667, allocations: 7.5 kB / 438.3 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002265/0.367, allocations: 104.8 kB / 438.4 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001084/0.368, allocations: 0.677 MB / 439 MB, free: 4.234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003988/0.3685, allocations: 221.2 kB / 439.3 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001947/0.3687, allocations: 99.06 kB / 439.4 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.861e-05/0.3687, allocations: 2.078 kB / 439.4 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.169e-05/0.3687, allocations: 32.25 kB / 439.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.3687, allocations: 0 / 439.4 MB, free: 3.996 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007372/0.3695, allocations: 483 kB / 439.9 MB, free: 3.629 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.301e-05/0.3695, allocations: 53.38 kB / 439.9 MB, free: 3.566 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.908e-05/0.3696, allocations: 129.1 kB / 440 MB, free: 3.449 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.162e-05/0.3696, allocations: 27.44 kB / 440.1 MB, free: 3.418 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.619e-05/0.3697, allocations: 135.4 kB / 440.2 MB, free: 3.293 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.041e-05/0.3697, allocations: 62.97 kB / 440.3 MB, free: 3.242 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.053e-05/0.3698, allocations: 42.03 kB / 440.3 MB, free: 3.211 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.556e-05/0.3698, allocations: 326 kB / 440.6 MB, free: 2.891 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.437e-05/0.3699, allocations: 37.62 kB / 440.7 MB, free: 2.879 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001017/0.37, allocations: 97.73 kB / 440.8 MB, free: 2.801 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/0.3702, allocations: 138.1 kB / 440.9 MB, free: 2.703 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3702, allocations: 0 / 440.9 MB, free: 2.703 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002465/0.3705, allocations: 184.5 kB / 441.1 MB, free: 2.609 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.3705, allocations: 7.328 kB / 441.1 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.3705, allocations: 1.031 kB / 441.1 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.3705, allocations: 7.219 kB / 441.1 MB, free: 2.605 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001835/0.3707, allocations: 48.22 kB / 441.1 MB, free: 2.602 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.3707, allocations: 9.75 kB / 441.1 MB, free: 2.594 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.415e-05/0.3708, allocations: 6.125 kB / 441.1 MB, free: 2.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/0.3708, allocations: 10.09 kB / 441.2 MB, free: 2.586 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.803e-05/0.3709, allocations: 131.7 kB / 441.3 MB, free: 2.457 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.045e-05/0.3709, allocations: 7.656 kB / 441.3 MB, free: 2.453 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.162e-05/0.371, allocations: 15.56 kB / 441.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.371, allocations: 3.094 kB / 441.3 MB, free: 2.441 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.371, allocations: 3.938 kB / 441.3 MB, free: 2.438 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.371, allocations: 0 / 441.3 MB, free: 2.438 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005836/0.3716, allocations: 495.9 kB / 441.8 MB, free: 2.047 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3716, allocations: 7.875 kB / 441.8 MB, free: 2.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001877/0.3718, allocations: 34.52 kB / 441.8 MB, free: 2.039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.3718, allocations: 1.781 kB / 441.8 MB, free: 2.039 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.3718, allocations: 5.219 kB / 441.8 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.3718, allocations: 1.812 kB / 441.8 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.3718, allocations: 0 / 441.8 MB, free: 2.035 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003957/0.3722, allocations: 279.2 kB / 442.1 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.443e-05/0.3723, allocations: 88.23 kB / 442.2 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.357e-05/0.3723, allocations: 2.328 kB / 442.2 MB, free: 1.738 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.964e-05/0.3724, allocations: 4.531 kB / 442.2 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.014e-05/0.3724, allocations: 8.375 kB / 442.2 MB, free: 1.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.3724, allocations: 7.516 kB / 442.2 MB, free: 1.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.952e-05/0.3725, allocations: 94.77 kB / 442.3 MB, free: 1.648 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3725, allocations: 0.9688 kB / 442.3 MB, free: 1.648 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002869/0.3728, allocations: 38.09 kB / 442.4 MB, free: 1.641 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.0005759/0.3734, allocations: 0.819 MB / 443.2 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000284/0.3737, allocations: 120.6 kB / 443.3 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3737, allocations: 0 / 443.3 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.337e-05/0.3738, allocations: 53.66 kB / 443.3 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002456/0.374, allocations: 18.03 kB / 443.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002318/0.3764, allocations: 1.974 MB / 445.3 MB, free: 15.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004142/0.3768, allocations: 0.721 MB / 446.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.11e-05/0.3769, allocations: 12.47 kB / 446.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.581e-05/0.3769, allocations: 41.83 kB / 446.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.377, allocations: 0 / 446.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02289/0.3999, allocations: 2.606 MB / 448.7 MB, free: 13.88 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.697/8.097, allocations: 1.531 kB / 448.7 MB, free: 13.88 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)