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.001701/0.001701, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002017/0.002017, allocations: 192.2 kB / 16.53 MB, free: 6.391 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.412/1.412, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04234/0.04234, allocations: 8.115 MB / 277.9 MB, free: 13.17 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.001601/0.001601, allocations: 68.52 kB / 337.3 MB, free: 26.41 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07192/0.07353, allocations: 48.31 MB / 385.6 MB, free: 10.06 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.004605/0.07817, allocations: 1.892 MB / 387.5 MB, free: 8.145 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004155/0.07862, allocations: 147.5 kB / 387.6 MB, free: 8 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.07878, allocations: 4 kB / 387.6 MB, free: 7.996 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.206e-05/0.07887, allocations: 23.73 kB / 387.7 MB, free: 7.973 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001243/0.079, allocations: 39.62 kB / 387.7 MB, free: 7.934 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001744/0.07918, allocations: 35.95 kB / 387.7 MB, free: 7.898 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001867/0.07937, allocations: 171.3 kB / 387.9 MB, free: 7.73 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001881/0.07957, allocations: 89.47 kB / 388 MB, free: 7.637 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.325e-05/0.07966, allocations: 67.78 kB / 388.1 MB, free: 7.57 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000104/0.07977, allocations: 71.69 kB / 388.1 MB, free: 7.5 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3e-05/0.07981, allocations: 16 kB / 388.1 MB, free: 7.484 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.355e-05/0.07985, allocations: 16 kB / 388.2 MB, free: 7.469 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.097e-05/0.07989, allocations: 39.86 kB / 388.2 MB, free: 7.43 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.785e-05/0.08, allocations: 83.64 kB / 388.3 MB, free: 7.348 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002167/0.08022, allocations: 187.6 kB / 388.5 MB, free: 7.164 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.08024, allocations: 4 kB / 388.5 MB, free: 7.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.08024, allocations: 0 / 388.5 MB, free: 7.16 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.764e-06/0.08026, allocations: 4 kB / 388.5 MB, free: 7.156 MB / 286.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.0007047/0.08097, allocations: 443 kB / 388.9 MB, free: 6.672 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.08103, allocations: 12.03 kB / 388.9 MB, free: 6.66 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.639e-05/0.08111, allocations: 54.66 kB / 389 MB, free: 6.598 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.303e-05/0.08119, allocations: 20.69 kB / 389 MB, free: 6.578 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001693/0.08136, allocations: 176.2 kB / 389.2 MB, free: 6.367 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.237e-05/0.08139, allocations: 16.38 kB / 389.2 MB, free: 6.352 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.591e-05/0.08145, allocations: 24.27 kB / 389.2 MB, free: 6.328 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002739/0.08173, allocations: 162.1 kB / 389.4 MB, free: 6.164 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/0.08175, allocations: 7.938 kB / 389.4 MB, free: 6.156 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.08177, allocations: 4 kB / 389.4 MB, free: 6.152 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.08179, allocations: 4 kB / 389.4 MB, free: 6.148 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001733/0.08197, allocations: 107.8 kB / 389.5 MB, free: 6.043 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009405/0.08291, allocations: 0.6793 MB / 390.2 MB, free: 5.297 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00039/0.08332, allocations: 219.6 kB / 390.4 MB, free: 5.055 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001993/0.08353, allocations: 96.81 kB / 390.5 MB, free: 4.957 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.152e-05/0.08355, allocations: 0 / 390.5 MB, free: 4.957 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.08358, allocations: 34.81 kB / 390.5 MB, free: 4.914 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.773e-06/0.08359, allocations: 0 / 390.5 MB, free: 4.914 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007716/0.08436, allocations: 485.5 kB / 391 MB, free: 4.391 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.591e-05/0.08441, allocations: 59.34 kB / 391 MB, free: 4.32 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.168e-05/0.08451, allocations: 129.7 kB / 391.2 MB, free: 4.184 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.621e-05/0.08453, allocations: 25.7 kB / 391.2 MB, free: 4.152 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.495e-05/0.0846, allocations: 128.1 kB / 391.3 MB, free: 4.023 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.42e-05/0.08465, allocations: 59.09 kB / 391.4 MB, free: 3.965 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.843e-05/0.08472, allocations: 37.72 kB / 391.4 MB, free: 3.922 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.887e-05/0.08482, allocations: 318.8 kB / 391.7 MB, free: 3.602 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.226e-05/0.0849, allocations: 43.98 kB / 391.8 MB, free: 3.559 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.646e-05/0.085, allocations: 90.22 kB / 391.9 MB, free: 3.453 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000193/0.0852, allocations: 141.1 kB / 392 MB, free: 3.297 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.08521, allocations: 0 / 392 MB, free: 3.297 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002564/0.08548, allocations: 173.4 kB / 392.2 MB, free: 3.121 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.0855, allocations: 10.34 kB / 392.2 MB, free: 3.113 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.08551, allocations: 0 / 392.2 MB, free: 3.113 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.08553, allocations: 7.938 kB / 392.2 MB, free: 3.105 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001748/0.08571, allocations: 55.91 kB / 392.2 MB, free: 3.051 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.08573, allocations: 7.938 kB / 392.2 MB, free: 3.043 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.678e-05/0.0858, allocations: 4.156 kB / 392.2 MB, free: 3.039 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.08582, allocations: 12 kB / 392.3 MB, free: 3.027 MB / 286.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 9.836e-05/0.08592, allocations: 133.8 kB / 392.4 MB, free: 2.887 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.333e-05/0.08596, allocations: 7.906 kB / 392.4 MB, free: 2.879 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.471e-05/0.08601, allocations: 20.81 kB / 392.4 MB, free: 2.859 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.08602, allocations: 4 kB / 392.4 MB, free: 2.855 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.08603, allocations: 3.938 kB / 392.4 MB, free: 2.852 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.08604, allocations: 0 / 392.4 MB, free: 2.852 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006028/0.08665, allocations: 498.2 kB / 392.9 MB, free: 2.309 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.839e-06/0.08667, allocations: 3.938 kB / 392.9 MB, free: 2.305 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001823/0.08686, allocations: 39.92 kB / 392.9 MB, free: 2.266 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.08687, allocations: 0 / 392.9 MB, free: 2.266 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.08689, allocations: 4 kB / 393 MB, free: 2.262 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.795e-06/0.0869, allocations: 4 kB / 393 MB, free: 2.258 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.08691, allocations: 3.984 kB / 393 MB, free: 2.254 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002931/0.08721, allocations: 275.2 kB / 393.2 MB, free: 1.973 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.862e-05/0.08726, allocations: 92.86 kB / 393.3 MB, free: 1.863 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.274e-05/0.08729, allocations: 4 kB / 393.3 MB, free: 1.859 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.412e-05/0.08737, allocations: 7.938 kB / 393.3 MB, free: 1.852 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.355e-05/0.0874, allocations: 8.031 kB / 393.3 MB, free: 1.844 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.08741, allocations: 4 kB / 393.3 MB, free: 1.84 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.813e-05/0.08746, allocations: 91.27 kB / 393.4 MB, free: 1.75 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08747, allocations: 0 / 393.4 MB, free: 1.75 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000272/0.08775, allocations: 40 kB / 393.5 MB, free: 1.711 MB / 286.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.0005073/0.08826, allocations: 0.8054 MB / 394.3 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002248/0.0885, allocations: 123.9 kB / 394.4 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.08851, allocations: 4.312 kB / 394.4 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.872e-05/0.08858, allocations: 59.86 kB / 394.5 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002288/0.08882, allocations: 11.94 kB / 394.5 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002027/0.09085, allocations: 1.988 MB / 396.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000247/0.09112, allocations: 0.72 MB / 397.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.538e-05/0.09117, allocations: 13.08 kB / 397.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.889e-05/0.09124, allocations: 43.42 kB / 397.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.09125, allocations: 0 / 397.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01957/0.1108, allocations: 2.498 MB / 399.7 MB, free: 11.32 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.32/7.431, allocations: 7.344 kB / 399.7 MB, free: 11.32 MB / 302.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)