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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 108 kB / 15.61 MB, free: 148 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.001218/0.001218, allocations: 195.1 kB / 16.53 MB, free: 6.691 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.403/1.403, allocations: 205.1 MB / 222.4 MB, free: 4.617 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04159/0.04159, allocations: 8.106 MB / 277.9 MB, free: 13.18 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.001547/0.001547, allocations: 76.45 kB / 337.3 MB, free: 26.42 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07981/0.08137, allocations: 48.3 MB / 385.6 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003229/0.08463, allocations: 1.947 MB / 387.5 MB, free: 8.105 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00045/0.08511, allocations: 235.3 kB / 387.8 MB, free: 7.875 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.562e-05/0.08519, allocations: 4 kB / 387.8 MB, free: 7.871 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.558e-05/0.08527, allocations: 27.72 kB / 387.8 MB, free: 7.844 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.706e-05/0.08537, allocations: 39.62 kB / 387.8 MB, free: 7.805 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002389/0.08561, allocations: 59.86 kB / 387.9 MB, free: 7.746 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001999/0.08582, allocations: 191.2 kB / 388.1 MB, free: 7.559 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001985/0.08603, allocations: 94.05 kB / 388.2 MB, free: 7.465 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.58e-05/0.0861, allocations: 71.78 kB / 388.3 MB, free: 7.395 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001027/0.08621, allocations: 79.67 kB / 388.3 MB, free: 7.316 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.167e-05/0.08625, allocations: 20 kB / 388.3 MB, free: 7.297 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.193e-05/0.08628, allocations: 20 kB / 388.4 MB, free: 7.277 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.544e-05/0.08633, allocations: 39.86 kB / 388.4 MB, free: 7.238 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.649e-05/0.08642, allocations: 91.59 kB / 388.5 MB, free: 7.148 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001989/0.08663, allocations: 199.6 kB / 388.7 MB, free: 6.953 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.08664, allocations: 0 / 388.7 MB, free: 6.953 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.08665, allocations: 0 / 388.7 MB, free: 6.953 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.08666, allocations: 4 kB / 388.7 MB, free: 6.949 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0006413/0.08731, allocations: 463.3 kB / 389.1 MB, free: 6.441 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.08735, allocations: 11.89 kB / 389.2 MB, free: 6.43 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.184e-05/0.08742, allocations: 58.67 kB / 389.2 MB, free: 6.363 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.167e-05/0.08747, allocations: 16.75 kB / 389.2 MB, free: 6.348 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001374/0.08761, allocations: 180.1 kB / 389.4 MB, free: 6.133 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.656e-05/0.08763, allocations: 16.75 kB / 389.4 MB, free: 6.117 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.228e-05/0.08769, allocations: 20.38 kB / 389.4 MB, free: 6.098 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002665/0.08796, allocations: 172.9 kB / 389.6 MB, free: 5.926 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.08799, allocations: 7.922 kB / 389.6 MB, free: 5.918 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.82e-05/0.08801, allocations: 8 kB / 389.6 MB, free: 5.91 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.08803, allocations: 12 kB / 389.6 MB, free: 5.898 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001871/0.08822, allocations: 103.7 kB / 389.7 MB, free: 5.797 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.0893, allocations: 0.7065 MB / 390.4 MB, free: 5.023 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003547/0.08967, allocations: 227.6 kB / 390.7 MB, free: 4.773 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002107/0.08989, allocations: 92.83 kB / 390.8 MB, free: 4.68 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.269e-05/0.08991, allocations: 7.984 kB / 390.8 MB, free: 4.672 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002134/0.09013, allocations: 91.59 kB / 390.9 MB, free: 4.57 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.442e-06/0.09014, allocations: 0 / 390.9 MB, free: 4.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009237/0.09107, allocations: 0.5117 MB / 391.4 MB, free: 4.008 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/0.09112, allocations: 55.41 kB / 391.4 MB, free: 3.941 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001018/0.09123, allocations: 137.7 kB / 391.6 MB, free: 3.797 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.788e-05/0.09127, allocations: 29.64 kB / 391.6 MB, free: 3.762 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.112e-05/0.09134, allocations: 132 kB / 391.7 MB, free: 3.629 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.692e-05/0.0914, allocations: 63.09 kB / 391.8 MB, free: 3.566 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.055e-05/0.09147, allocations: 45.7 kB / 391.8 MB, free: 3.516 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.09159, allocations: 326.8 kB / 392.1 MB, free: 3.188 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.434e-05/0.09167, allocations: 47.98 kB / 392.2 MB, free: 3.141 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.09179, allocations: 102.8 kB / 392.3 MB, free: 3.016 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002029/0.092, allocations: 174.6 kB / 392.5 MB, free: 2.82 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.09201, allocations: 3.938 kB / 392.5 MB, free: 2.816 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002746/0.09229, allocations: 197.5 kB / 392.7 MB, free: 2.617 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.09231, allocations: 8 kB / 392.7 MB, free: 2.609 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.09232, allocations: 0 / 392.7 MB, free: 2.609 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.09234, allocations: 7.938 kB / 392.7 MB, free: 2.602 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.09252, allocations: 47.97 kB / 392.7 MB, free: 2.555 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.729e-06/0.09254, allocations: 7.938 kB / 392.7 MB, free: 2.547 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.476e-05/0.09262, allocations: 8 kB / 392.7 MB, free: 2.539 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.45e-05/0.09264, allocations: 12 kB / 392.7 MB, free: 2.527 MB / 286.1 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,sampleHold.w,$PRE.sampleHold.w) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001053/0.09275, allocations: 137.9 kB / 392.9 MB, free: 2.383 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.047e-05/0.09278, allocations: 11.84 kB / 392.9 MB, free: 2.371 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.093e-05/0.09282, allocations: 16.78 kB / 392.9 MB, free: 2.355 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.09283, allocations: 4 kB / 392.9 MB, free: 2.352 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.09284, allocations: 0 / 392.9 MB, free: 2.352 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.09285, allocations: 3.984 kB / 392.9 MB, free: 2.348 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005753/0.09343, allocations: 0.506 MB / 393.4 MB, free: 1.785 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.09345, allocations: 8 kB / 393.4 MB, free: 1.777 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001769/0.09363, allocations: 31.98 kB / 393.5 MB, free: 1.746 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.09364, allocations: 0 / 393.5 MB, free: 1.746 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.628e-05/0.09366, allocations: 11.98 kB / 393.5 MB, free: 1.734 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.09367, allocations: 0 / 393.5 MB, free: 1.734 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.09368, allocations: 7.984 kB / 393.5 MB, free: 1.727 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003393/0.09402, allocations: 301.9 kB / 393.8 MB, free: 1.418 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.502e-05/0.09408, allocations: 89.05 kB / 393.9 MB, free: 1.312 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.232e-05/0.09411, allocations: 4 kB / 393.9 MB, free: 1.309 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.344e-05/0.09418, allocations: 4 kB / 393.9 MB, free: 1.305 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.026e-05/0.09423, allocations: 19.83 kB / 393.9 MB, free: 1.285 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.093e-05/0.09425, allocations: 8 kB / 393.9 MB, free: 1.277 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.582e-05/0.09431, allocations: 91.27 kB / 394 MB, free: 1.188 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09431, allocations: 0 / 394 MB, free: 1.188 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000268/0.09459, allocations: 36 kB / 394 MB, free: 1.152 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.w,sampleHold.flange.phi) * Number of discrete variables: 2 ($whenCondition1,sampleHold.w) * Number of discrete states: 0 () * Number of clocked 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 (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.0006296/0.09522, allocations: 0.8412 MB / 394.9 MB, free: 288 kB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002872/0.09552, allocations: 141.8 kB / 395 MB, free: 148 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.09553, allocations: 0 / 395 MB, free: 148 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.715e-05/0.09562, allocations: 59.83 kB / 395.1 MB, free: 88 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002296/0.09586, allocations: 8 kB / 395.1 MB, free: 80 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002189/0.09806, allocations: 2.09 MB / 397.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003012/0.09838, allocations: 0.7316 MB / 397.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.203e-05/0.09844, allocations: 13.42 kB / 397.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.783e-05/0.09852, allocations: 47.42 kB / 397.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.09853, allocations: 0 / 397.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01984/0.1184, allocations: 2.706 MB / 400.7 MB, free: 10.4 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.465/7.583, allocations: 8.266 kB / 400.7 MB, free: 10.39 MB / 302.1 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 & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1)