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.001175/0.001175, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001278/0.001278, allocations: 197.4 kB / 16.14 MB, free: 6.66 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.318/1.318, allocations: 205.1 MB / 222 MB, free: 4.719 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.0408/0.0408, allocations: 8.106 MB / 277.4 MB, free: 13.36 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.001339/0.001339, allocations: 67.91 kB / 336.6 MB, free: 26.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08589/0.08724, allocations: 48.3 MB / 384.9 MB, free: 10.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.003218/0.09051, allocations: 1.961 MB / 386.9 MB, free: 8.539 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002603/0.09079, allocations: 143.5 kB / 387 MB, free: 8.398 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.31e-05/0.09086, allocations: 4 kB / 387 MB, free: 8.395 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.924e-05/0.09093, allocations: 15.86 kB / 387 MB, free: 8.379 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.212e-05/0.09101, allocations: 35.73 kB / 387.1 MB, free: 8.344 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001434/0.09116, allocations: 31.98 kB / 387.1 MB, free: 8.312 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001456/0.09131, allocations: 167.2 kB / 387.3 MB, free: 8.148 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001729/0.09149, allocations: 70.08 kB / 387.3 MB, free: 8.074 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.491e-05/0.09156, allocations: 63.8 kB / 387.4 MB, free: 8.012 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.751e-05/0.09165, allocations: 71.69 kB / 387.5 MB, free: 7.941 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.445e-05/0.09168, allocations: 12 kB / 387.5 MB, free: 7.93 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.857e-05/0.09171, allocations: 12 kB / 387.5 MB, free: 7.918 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.899e-05/0.09176, allocations: 39.84 kB / 387.5 MB, free: 7.879 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.357e-05/0.09184, allocations: 75.67 kB / 387.6 MB, free: 7.805 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001823/0.09203, allocations: 183.6 kB / 387.8 MB, free: 7.625 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.09204, allocations: 0 / 387.8 MB, free: 7.625 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.09205, allocations: 0 / 387.8 MB, free: 7.625 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.09206, allocations: 0 / 387.8 MB, free: 7.625 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.0005206/0.09258, allocations: 455 kB / 388.2 MB, free: 7.129 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.09262, allocations: 11.97 kB / 388.2 MB, free: 7.117 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.131e-05/0.09268, allocations: 50.73 kB / 388.3 MB, free: 7.059 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.567e-05/0.09272, allocations: 16.75 kB / 388.3 MB, free: 7.043 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001272/0.09285, allocations: 180.2 kB / 388.5 MB, free: 6.828 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.518e-05/0.09288, allocations: 12.38 kB / 388.5 MB, free: 6.816 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.677e-05/0.09293, allocations: 24.27 kB / 388.5 MB, free: 6.793 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002549/0.09319, allocations: 158.1 kB / 388.7 MB, free: 6.633 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.09321, allocations: 7.938 kB / 388.7 MB, free: 6.625 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.643e-05/0.09323, allocations: 8 kB / 388.7 MB, free: 6.617 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.09324, allocations: 4 kB / 388.7 MB, free: 6.613 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001672/0.09341, allocations: 107.9 kB / 388.8 MB, free: 6.508 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008969/0.09431, allocations: 0.6715 MB / 389.5 MB, free: 5.77 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003722/0.0947, allocations: 223.6 kB / 389.7 MB, free: 5.523 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000171/0.09488, allocations: 92.83 kB / 389.8 MB, free: 5.43 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.799e-06/0.0949, allocations: 3.938 kB / 389.8 MB, free: 5.426 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.975e-05/0.09492, allocations: 34.5 kB / 389.8 MB, free: 5.383 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.172e-06/0.09493, allocations: 0 / 389.8 MB, free: 5.383 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007099/0.09565, allocations: 497.4 kB / 390.3 MB, free: 4.852 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.52e-05/0.09569, allocations: 55.41 kB / 390.3 MB, free: 4.785 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.449e-05/0.09577, allocations: 121.8 kB / 390.5 MB, free: 4.656 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.09579, allocations: 25.7 kB / 390.5 MB, free: 4.625 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.298e-05/0.09586, allocations: 132.1 kB / 390.6 MB, free: 4.492 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.826e-05/0.0959, allocations: 59.11 kB / 390.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.11e-05/0.09596, allocations: 37.7 kB / 390.7 MB, free: 4.391 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.09607, allocations: 322.8 kB / 391 MB, free: 4.066 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.702e-05/0.09614, allocations: 43.98 kB / 391.1 MB, free: 4.023 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.054e-05/0.09624, allocations: 90.22 kB / 391.2 MB, free: 3.918 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001708/0.09641, allocations: 133 kB / 391.3 MB, free: 3.77 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.09642, allocations: 4 kB / 391.3 MB, free: 3.766 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002315/0.09666, allocations: 184.7 kB / 391.5 MB, free: 3.582 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.09668, allocations: 12.56 kB / 391.5 MB, free: 3.57 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.09669, allocations: 0 / 391.5 MB, free: 3.57 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.09671, allocations: 4 kB / 391.5 MB, free: 3.566 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001753/0.09689, allocations: 47.92 kB / 391.5 MB, free: 3.52 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.0969, allocations: 7.922 kB / 391.5 MB, free: 3.512 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.242e-05/0.09696, allocations: 4 kB / 391.5 MB, free: 3.508 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.274e-05/0.09698, allocations: 16.16 kB / 391.6 MB, free: 3.492 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 8.95e-05/0.09708, allocations: 121.8 kB / 391.7 MB, free: 3.363 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.991e-05/0.09711, allocations: 15.84 kB / 391.7 MB, free: 3.348 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.461e-05/0.09715, allocations: 12.84 kB / 391.7 MB, free: 3.336 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.09716, allocations: 0 / 391.7 MB, free: 3.336 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.09717, allocations: 3.938 kB / 391.7 MB, free: 3.332 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.09718, allocations: 4 kB / 391.7 MB, free: 3.328 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005815/0.09776, allocations: 498.2 kB / 392.2 MB, free: 2.785 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.09778, allocations: 7.938 kB / 392.2 MB, free: 2.777 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001834/0.09797, allocations: 35.97 kB / 392.2 MB, free: 2.742 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.09798, allocations: 4 kB / 392.3 MB, free: 2.738 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.098, allocations: 4 kB / 392.3 MB, free: 2.734 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.098, allocations: 0 / 392.3 MB, free: 2.734 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.09801, allocations: 0 / 392.3 MB, free: 2.734 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002832/0.0983, allocations: 279.3 kB / 392.5 MB, free: 2.445 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.758e-05/0.09834, allocations: 92.86 kB / 392.6 MB, free: 2.336 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.09837, allocations: 4.031 kB / 392.6 MB, free: 2.332 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.073e-05/0.09844, allocations: 4 kB / 392.6 MB, free: 2.328 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.002e-05/0.09847, allocations: 8 kB / 392.6 MB, free: 2.32 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.762e-06/0.09848, allocations: 3.984 kB / 392.6 MB, free: 2.316 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.771e-05/0.09853, allocations: 95.66 kB / 392.7 MB, free: 2.223 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09854, allocations: 0 / 392.7 MB, free: 2.223 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002467/0.09879, allocations: 36 kB / 392.8 MB, free: 2.188 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.0005125/0.09931, allocations: 0.8136 MB / 393.6 MB, free: 1.348 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002058/0.09952, allocations: 112 kB / 393.7 MB, free: 1.238 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.09953, allocations: 3.938 kB / 393.7 MB, free: 1.234 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.36e-05/0.0996, allocations: 56.17 kB / 393.7 MB, free: 1.18 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002166/0.09982, allocations: 12.33 kB / 393.8 MB, free: 1.168 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001855/0.1017, allocations: 2.06 MB / 395.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002387/0.1019, allocations: 0.7126 MB / 396.5 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.458e-05/0.102, allocations: 17.08 kB / 396.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.586e-05/0.1021, allocations: 47.36 kB / 396.6 MB, free: 14.19 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1021, allocations: 0 / 396.6 MB, free: 14.19 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01094/0.113, allocations: 2.335 MB / 398.9 MB, free: 11.93 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002151/0.1133, allocations: 224.8 kB / 399.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.723/1.836, allocations: 4 kB / 399.2 MB, free: 11.66 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)