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.0009936/0.0009937, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.0009713/0.0009713, allocations: 193.6 kB / 16.25 MB, free: 6.621 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.2/1.2, allocations: 205.1 MB / 222.1 MB, free: 4.723 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03914/0.03914, allocations: 8.106 MB / 277.6 MB, free: 13.33 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.001409/0.001409, allocations: 63.91 kB / 336.8 MB, free: 26.76 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06586/0.06728, allocations: 48.31 MB / 385.1 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.002881/0.07019, allocations: 1.953 MB / 387 MB, free: 8.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003284/0.07055, allocations: 143.5 kB / 387.2 MB, free: 8.293 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.978e-05/0.07063, allocations: 4 kB / 387.2 MB, free: 8.289 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.477e-05/0.07071, allocations: 15.86 kB / 387.2 MB, free: 8.273 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.403e-05/0.07082, allocations: 39.67 kB / 387.2 MB, free: 8.234 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001349/0.07096, allocations: 31.98 kB / 387.3 MB, free: 8.203 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001705/0.07113, allocations: 171.3 kB / 387.4 MB, free: 8.035 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001739/0.07131, allocations: 89.5 kB / 387.5 MB, free: 7.941 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.393e-05/0.07139, allocations: 63.8 kB / 387.6 MB, free: 7.879 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.071e-05/0.07148, allocations: 71.7 kB / 387.7 MB, free: 7.809 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.61e-05/0.07151, allocations: 16 kB / 387.7 MB, free: 7.793 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.501e-05/0.07154, allocations: 16 kB / 387.7 MB, free: 7.777 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.461e-05/0.07158, allocations: 47.77 kB / 387.7 MB, free: 7.73 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.526e-05/0.07166, allocations: 79.67 kB / 387.8 MB, free: 7.652 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001706/0.07184, allocations: 191.6 kB / 388 MB, free: 7.465 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.07185, allocations: 3.938 kB / 388 MB, free: 7.461 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.07185, allocations: 0 / 388 MB, free: 7.461 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.511e-06/0.07187, allocations: 0 / 388 MB, free: 7.461 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.0004985/0.07237, allocations: 447 kB / 388.4 MB, free: 6.973 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.07241, allocations: 15.97 kB / 388.5 MB, free: 6.957 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.576e-05/0.07246, allocations: 46.73 kB / 388.5 MB, free: 6.902 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.588e-05/0.0725, allocations: 16.75 kB / 388.5 MB, free: 6.887 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.07261, allocations: 184.2 kB / 388.7 MB, free: 6.668 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.07264, allocations: 12.38 kB / 388.7 MB, free: 6.656 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.495e-05/0.07267, allocations: 28.27 kB / 388.7 MB, free: 6.629 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000248/0.07293, allocations: 154.1 kB / 388.9 MB, free: 6.473 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.304e-05/0.07295, allocations: 3.938 kB / 388.9 MB, free: 6.469 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.07297, allocations: 4 kB / 388.9 MB, free: 6.465 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.07298, allocations: 4 kB / 388.9 MB, free: 6.461 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000162/0.07314, allocations: 111.8 kB / 389 MB, free: 6.352 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00086/0.07401, allocations: 0.6716 MB / 389.7 MB, free: 5.613 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003567/0.07438, allocations: 231.6 kB / 389.9 MB, free: 5.359 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001664/0.07456, allocations: 88.83 kB / 390 MB, free: 5.27 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.495e-05/0.07458, allocations: 4 kB / 390 MB, free: 5.266 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.661e-05/0.0746, allocations: 30.56 kB / 390 MB, free: 5.227 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.483e-06/0.07461, allocations: 0 / 390 MB, free: 5.227 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0006825/0.0753, allocations: 493.4 kB / 390.5 MB, free: 4.695 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.916e-05/0.07533, allocations: 51.41 kB / 390.6 MB, free: 4.633 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.272e-05/0.07541, allocations: 121.8 kB / 390.7 MB, free: 4.504 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.386e-05/0.07543, allocations: 25.7 kB / 390.7 MB, free: 4.473 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.167e-05/0.0755, allocations: 132.1 kB / 390.8 MB, free: 4.34 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.84e-05/0.07554, allocations: 59.09 kB / 390.9 MB, free: 4.281 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.857e-05/0.07561, allocations: 41.7 kB / 390.9 MB, free: 4.234 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.465e-05/0.07571, allocations: 334.8 kB / 391.3 MB, free: 3.898 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.431e-05/0.07578, allocations: 35.98 kB / 391.3 MB, free: 3.863 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.483e-05/0.07588, allocations: 86.22 kB / 391.4 MB, free: 3.762 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.07604, allocations: 137.1 kB / 391.5 MB, free: 3.609 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.07605, allocations: 0 / 391.5 MB, free: 3.609 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.000236/0.07629, allocations: 181.4 kB / 391.7 MB, free: 3.426 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.07631, allocations: 10.12 kB / 391.7 MB, free: 3.418 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.07632, allocations: 0 / 391.7 MB, free: 3.418 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.07634, allocations: 4.156 kB / 391.7 MB, free: 3.414 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.0765, allocations: 51.92 kB / 391.8 MB, free: 3.363 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.07652, allocations: 11.92 kB / 391.8 MB, free: 3.352 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.338e-05/0.07658, allocations: 7.938 kB / 391.8 MB, free: 3.344 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.134e-05/0.07659, allocations: 8 kB / 391.8 MB, free: 3.336 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.775e-05/0.07668, allocations: 129.8 kB / 391.9 MB, free: 3.199 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.892e-05/0.07672, allocations: 7.906 kB / 391.9 MB, free: 3.191 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.464e-05/0.07676, allocations: 12.84 kB / 391.9 MB, free: 3.18 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.07677, allocations: 4 kB / 391.9 MB, free: 3.176 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.07678, allocations: 7.938 kB / 391.9 MB, free: 3.168 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.07678, allocations: 0 / 391.9 MB, free: 3.168 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005363/0.07732, allocations: 490.2 kB / 392.4 MB, free: 2.633 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.07734, allocations: 7.938 kB / 392.4 MB, free: 2.625 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001844/0.07753, allocations: 43.91 kB / 392.5 MB, free: 2.582 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.07754, allocations: 0 / 392.5 MB, free: 2.582 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.07756, allocations: 8 kB / 392.5 MB, free: 2.574 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.07756, allocations: 4 kB / 392.5 MB, free: 2.57 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.07757, allocations: 0 / 392.5 MB, free: 2.57 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002759/0.07785, allocations: 271.4 kB / 392.8 MB, free: 2.289 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.619e-05/0.07789, allocations: 88.86 kB / 392.8 MB, free: 2.184 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.015e-05/0.07792, allocations: 8.031 kB / 392.8 MB, free: 2.176 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.088e-05/0.078, allocations: 4 kB / 392.9 MB, free: 2.172 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.77e-05/0.07802, allocations: 4 kB / 392.9 MB, free: 2.168 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.255e-06/0.07803, allocations: 11.98 kB / 392.9 MB, free: 2.156 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.093e-05/0.07809, allocations: 91.66 kB / 393 MB, free: 2.066 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.583e-06/0.0781, allocations: 0 / 393 MB, free: 2.066 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002576/0.07836, allocations: 43.94 kB / 393 MB, free: 2.023 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.0004801/0.07884, allocations: 0.8053 MB / 393.8 MB, free: 1.191 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002097/0.07906, allocations: 127.7 kB / 393.9 MB, free: 1.07 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.07907, allocations: 3.938 kB / 393.9 MB, free: 1.066 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.552e-05/0.07914, allocations: 63.84 kB / 394 MB, free: 1.004 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002058/0.07935, allocations: 8.188 kB / 394 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001836/0.0812, allocations: 2.047 MB / 396.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.08144, allocations: 0.7239 MB / 396.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.097e-05/0.08149, allocations: 13.08 kB / 396.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.256e-05/0.08156, allocations: 47.36 kB / 396.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.08157, allocations: 0 / 396.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01179/0.09336, allocations: 2.413 MB / 399.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002175/0.0936, allocations: 219.9 kB / 399.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.595/1.689, allocations: 3.438 kB / 399.5 MB, free: 11.44 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)