Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.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: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001029/0.001029, allocations: 181.9 kB / 12.74 MB, free: 2.582 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.254/1.254, allocations: 194.3 MB / 207.5 MB, free: 3.461 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03498/0.03498, allocations: 7.905 MB / 260.4 MB, free: 13.78 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.001449/0.001449, allocations: 120.4 kB / 307.2 MB, free: 14.89 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.21e-05/3.211e-05, allocations: 0 / 361.3 MB, free: 8.605 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.231/0.231, allocations: 46.2 MB / 407.5 MB, free: 67.01 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07655/0.3076, allocations: 72.03 MB / 479.6 MB, free: 10.88 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001722/0.3078, allocations: 51.97 kB / 479.6 MB, free: 10.83 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006586/0.3144, allocations: 2.65 MB / 482.3 MB, free: 8.176 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3145, allocations: 0 / 482.3 MB, free: 8.176 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.236e-06/0.3145, allocations: 4 kB / 482.3 MB, free: 8.172 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0005054/0.315, allocations: 426.9 kB / 482.7 MB, free: 7.707 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.754e-05/0.315, allocations: 8.031 kB / 482.7 MB, free: 7.699 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.674e-05/0.3151, allocations: 58.53 kB / 482.8 MB, free: 7.633 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.508e-05/0.3152, allocations: 19.77 kB / 482.8 MB, free: 7.613 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001333/0.3153, allocations: 187 kB / 483 MB, free: 7.391 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.3153, allocations: 16.31 kB / 483 MB, free: 7.375 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.12e-05/0.3154, allocations: 20 kB / 483 MB, free: 7.355 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002947/0.3157, allocations: 164.4 kB / 483.2 MB, free: 7.191 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.277e-05/0.3157, allocations: 4 kB / 483.2 MB, free: 7.188 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.3157, allocations: 4 kB / 483.2 MB, free: 7.184 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.3157, allocations: 8 kB / 483.2 MB, free: 7.176 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001765/0.3159, allocations: 107.6 kB / 483.3 MB, free: 7.07 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.317, allocations: 0.7066 MB / 484 MB, free: 6.297 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003425/0.3174, allocations: 235.5 kB / 484.2 MB, free: 6.039 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001864/0.3176, allocations: 96.78 kB / 484.3 MB, free: 5.941 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.001e-05/0.3176, allocations: 0 / 484.3 MB, free: 5.941 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001866/0.3178, allocations: 103.4 kB / 484.4 MB, free: 5.832 MB / 330.7 MB Notification: Performance of pre-optimization done (n=16): time 1.283e-06/0.3178, allocations: 0 / 484.4 MB, free: 5.832 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.0007925/0.3186, allocations: 465.9 kB / 484.9 MB, free: 5.32 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.3187, allocations: 59.41 kB / 484.9 MB, free: 5.25 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.654e-05/0.3188, allocations: 117.1 kB / 485 MB, free: 5.129 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.3188, allocations: 29.7 kB / 485.1 MB, free: 5.094 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.266e-05/0.3189, allocations: 135.9 kB / 485.2 MB, free: 4.957 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.976e-05/0.3189, allocations: 67.03 kB / 485.3 MB, free: 4.891 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.776e-06/0.319, allocations: 4 kB / 485.3 MB, free: 4.887 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001213/0.3191, allocations: 322.8 kB / 485.6 MB, free: 4.562 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.359e-05/0.3192, allocations: 44 kB / 485.6 MB, free: 4.52 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/0.3193, allocations: 112.2 kB / 485.7 MB, free: 4.387 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001017/0.3194, allocations: 61.48 kB / 485.8 MB, free: 4.328 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.3194, allocations: 0 / 485.8 MB, free: 4.328 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002917/0.3197, allocations: 203.6 kB / 486 MB, free: 4.125 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.3197, allocations: 4 kB / 486 MB, free: 4.121 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3197, allocations: 4 kB / 486 MB, free: 4.117 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.3198, allocations: 4 kB / 486 MB, free: 4.113 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001794/0.32, allocations: 64.12 kB / 486.1 MB, free: 4.051 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.32, allocations: 4 kB / 486.1 MB, free: 4.047 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.992e-05/0.32, allocations: 4 kB / 486.1 MB, free: 4.043 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.3201, allocations: 8 kB / 486.1 MB, free: 4.035 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.sampleHold.w,sampleHold.w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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 9.733e-05/0.3202, allocations: 116.9 kB / 486.2 MB, free: 3.914 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.076e-05/0.3202, allocations: 15.77 kB / 486.2 MB, free: 3.898 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.471e-05/0.3202, allocations: 16.75 kB / 486.2 MB, free: 3.879 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-06/0.3202, allocations: 0 / 486.2 MB, free: 3.879 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.3203, allocations: 3.984 kB / 486.2 MB, free: 3.875 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3203, allocations: 4 kB / 486.2 MB, free: 3.871 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006794/0.321, allocations: 0.5061 MB / 486.7 MB, free: 3.309 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.321, allocations: 0 / 486.7 MB, free: 3.309 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.3211, allocations: 39.92 kB / 486.8 MB, free: 3.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.3212, allocations: 0 / 486.8 MB, free: 3.27 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.61e-05/0.3212, allocations: 4 kB / 486.8 MB, free: 3.266 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.3212, allocations: 11.98 kB / 486.8 MB, free: 3.254 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.3212, allocations: 0 / 486.8 MB, free: 3.254 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003344/0.3215, allocations: 290.6 kB / 487.1 MB, free: 2.957 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.495e-05/0.3216, allocations: 89.05 kB / 487.2 MB, free: 2.852 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.196e-05/0.3216, allocations: 7.938 kB / 487.2 MB, free: 2.844 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.24e-05/0.3217, allocations: 4 kB / 487.2 MB, free: 2.84 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.197e-05/0.3217, allocations: 12.06 kB / 487.2 MB, free: 2.828 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.181e-05/0.3218, allocations: 12 kB / 487.2 MB, free: 2.816 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.432e-05/0.3218, allocations: 91.28 kB / 487.3 MB, free: 2.727 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.745e-06/0.3218, allocations: 0 / 487.3 MB, free: 2.727 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000244/0.3221, allocations: 43.88 kB / 487.3 MB, free: 2.684 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,sampleHold.flange.phi) * Number of discrete variables: 2 ($whenCondition1,sampleHold.w) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 0.0006232/0.3227, allocations: 0.8294 MB / 488.2 MB, free: 1.828 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002198/0.3229, allocations: 127.8 kB / 488.3 MB, free: 1.703 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.323, allocations: 4 kB / 488.3 MB, free: 1.699 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.362e-05/0.3231, allocations: 55.92 kB / 488.4 MB, free: 1.645 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001384/0.3232, allocations: 15.92 kB / 488.4 MB, free: 1.629 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.3242, allocations: 0.5281 MB / 488.9 MB, free: 1.066 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003889/0.3246, allocations: 0.7282 MB / 489.6 MB, free: 320 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.629e-05/0.3247, allocations: 13.2 kB / 489.6 MB, free: 300 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.175e-05/0.3248, allocations: 47.42 kB / 489.7 MB, free: 256 kB / 330.7 MB Notification: Performance of SimCode: time 3.91e-07/0.3248, allocations: 8 kB / 489.7 MB, free: 248 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01356/0.3384, allocations: 2.488 MB / 492.2 MB, free: 13.89 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001979/0.3386, allocations: 181.7 kB / 492.4 MB, free: 13.67 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.574/1.913, allocations: 4.062 kB / 492.4 MB, free: 13.66 MB / 346.7 MB (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1)