Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 109.2 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001533/0.001533, allocations: 218.3 kB / 22.26 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.453/1.453, allocations: 207.6 MB / 233 MB, free: 9.977 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.05214/0.05214, allocations: 8.2 MB / 293.5 MB, free: 13.64 MB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.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.00233/0.00233, allocations: 74.48 kB / 410.5 MB, free: 46.95 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09802/0.1003, allocations: 50.93 MB / 461.4 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003678/0.104, allocations: 2.004 MB / 463.4 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001157/0.1052, allocations: 0.6243 MB / 464 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.668e-05/0.1053, allocations: 7.938 kB / 464 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.544e-05/0.1054, allocations: 19.78 kB / 464 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001636/0.1055, allocations: 51.55 kB / 464.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002936/0.1058, allocations: 59.88 kB / 464.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003811/0.1062, allocations: 231.1 kB / 464.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002309/0.1064, allocations: 74.59 kB / 464.4 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002022/0.1066, allocations: 87.7 kB / 464.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001817/0.1068, allocations: 99.61 kB / 464.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.069e-05/0.1068, allocations: 20 kB / 464.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.466e-05/0.1069, allocations: 24 kB / 464.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.192e-05/0.107, allocations: 43.84 kB / 464.7 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000157/0.1071, allocations: 99.59 kB / 464.8 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003135/0.1074, allocations: 235.1 kB / 465 MB, free: 9.789 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1074, allocations: 0 / 465 MB, free: 9.789 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1074, allocations: 0 / 465 MB, free: 9.789 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.1074, allocations: 3.938 kB / 465 MB, free: 9.785 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0007606/0.1082, allocations: 435.7 kB / 465.5 MB, free: 9.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.1082, allocations: 19.92 kB / 465.5 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.247e-05/0.1083, allocations: 50.73 kB / 465.5 MB, free: 9.242 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.09e-05/0.1084, allocations: 24.8 kB / 465.6 MB, free: 9.219 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001616/0.1085, allocations: 126.3 kB / 465.7 MB, free: 9.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.497e-05/0.1086, allocations: 16.69 kB / 465.7 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.521e-05/0.1086, allocations: 28.33 kB / 465.7 MB, free: 9.027 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003338/0.1089, allocations: 182.2 kB / 465.9 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.1089, allocations: 4 kB / 465.9 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.337e-05/0.109, allocations: 12 kB / 465.9 MB, free: 8.828 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.109, allocations: 4 kB / 465.9 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002097/0.1092, allocations: 117.1 kB / 466 MB, free: 8.711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.1104, allocations: 0.6436 MB / 466.7 MB, free: 8.016 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000353/0.1107, allocations: 158.5 kB / 466.8 MB, free: 7.852 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002196/0.1109, allocations: 96.95 kB / 466.9 MB, free: 7.754 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.303e-05/0.111, allocations: 3.938 kB / 466.9 MB, free: 7.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003369/0.1113, allocations: 182.8 kB / 467.1 MB, free: 7.547 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.313e-06/0.1113, allocations: 0 / 467.1 MB, free: 7.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=25): time 0.001294/0.1126, allocations: 0.7225 MB / 467.8 MB, free: 6.762 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.1127, allocations: 132.5 kB / 468 MB, free: 6.602 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.1128, allocations: 137.7 kB / 468.1 MB, free: 6.457 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.841e-05/0.1128, allocations: 33.7 kB / 468.1 MB, free: 6.418 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.113, allocations: 140.6 kB / 468.3 MB, free: 6.273 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.081e-05/0.113, allocations: 83.31 kB / 468.4 MB, free: 6.191 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.51e-05/0.1131, allocations: 57.7 kB / 468.4 MB, free: 6.129 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.1133, allocations: 330.8 kB / 468.7 MB, free: 5.797 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.1134, allocations: 60.3 kB / 468.8 MB, free: 5.734 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/0.1136, allocations: 128.6 kB / 468.9 MB, free: 5.582 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003636/0.1139, allocations: 264.2 kB / 469.2 MB, free: 5.285 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.1139, allocations: 8 kB / 469.2 MB, free: 5.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004271/0.1144, allocations: 288.2 kB / 469.5 MB, free: 4.984 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.331e-05/0.1144, allocations: 33.64 kB / 469.5 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.652e-06/0.1144, allocations: 4 kB / 469.5 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.1144, allocations: 7.984 kB / 469.5 MB, free: 4.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002296/0.1147, allocations: 59.92 kB / 469.6 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.391e-05/0.1147, allocations: 7.938 kB / 469.6 MB, free: 4.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.1148, allocations: 28.06 kB / 469.6 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.683e-05/0.1148, allocations: 8 kB / 469.6 MB, free: 4.832 MB / 334.1 MB Warning: Assuming fixed start value for the following 1 variables: pulseCounter.w:DISCRETE(flow=false fixed = true ) \"Sensed speed\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.pulseCounter.w,pulseCounter.w,pulseCounter.count,$PRE.pulseCounter.count,pulseCounter.prev_phi,$PRE.pulseCounter.prev_phi,pulseCounter.next_phi,$PRE.pulseCounter.next_phi,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 1 * 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.0002415/0.115, allocations: 183.4 kB / 469.8 MB, free: 4.637 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.002e-05/0.1151, allocations: 15.89 kB / 469.8 MB, free: 4.621 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.52e-05/0.1151, allocations: 12.94 kB / 469.8 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1151, allocations: 4 kB / 469.8 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1151, allocations: 0 / 469.8 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.095e-06/0.1151, allocations: 4 kB / 469.8 MB, free: 4.598 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009871/0.1161, allocations: 0.6762 MB / 470.5 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1161, allocations: 0 / 470.5 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001983/0.1163, allocations: 35.98 kB / 470.5 MB, free: 3.824 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.184e-06/0.1163, allocations: 3.984 kB / 470.5 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/0.1164, allocations: 15.98 kB / 470.6 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1164, allocations: 0 / 470.6 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.41e-05/0.1164, allocations: 8.078 kB / 470.6 MB, free: 3.797 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006385/0.117, allocations: 470.6 kB / 471 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.344e-05/0.117, allocations: 11.91 kB / 471 MB, free: 3.297 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.733e-05/0.1171, allocations: 12 kB / 471 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001155/0.1172, allocations: 4 kB / 471.1 MB, free: 3.281 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.325e-05/0.1172, allocations: 24.02 kB / 471.1 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.662e-05/0.1173, allocations: 11.94 kB / 471.1 MB, free: 3.246 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.244e-05/0.1173, allocations: 95.27 kB / 471.2 MB, free: 3.152 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1173, allocations: 0 / 471.2 MB, free: 3.152 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003351/0.1177, allocations: 56 kB / 471.2 MB, free: 3.098 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.flange_a.phi,inertia1.w) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,$whenCondition3,pulseCounter.w,pulseCounter.next_phi,pulseCounter.prev_phi,pulseCounter.count) * Number of discrete states: 7 (pulseCounter.w,$whenCondition3,pulseCounter.count,pulseCounter.prev_phi,pulseCounter.next_phi,$whenCondition2,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * 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.0009533/0.1186, allocations: 1.008 MB / 472.2 MB, free: 2.055 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003789/0.119, allocations: 235.6 kB / 472.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.119, allocations: 0 / 472.5 MB, free: 1.812 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001937/0.1192, allocations: 147.3 kB / 472.6 MB, free: 1.656 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002707/0.1195, allocations: 20.56 kB / 472.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003089/0.1226, allocations: 2.425 MB / 475.1 MB, free: 15.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004136/0.123, allocations: 0.7281 MB / 475.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.938e-05/0.123, allocations: 21.42 kB / 475.8 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001017/0.1231, allocations: 55.41 kB / 475.9 MB, free: 14.24 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1231, allocations: 3.938 kB / 475.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03374/0.1569, allocations: 3.79 MB / 479.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.39, allocations: 8.656 kB / 479.7 MB, free: 10.49 MB / 350.1 MB " [Timeout remaining time 648] (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.sim & python3 -m fmpy simulate --output-file ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter_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_PlantWithPulseCounter.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.18692526200175] Failed to read output from testmodel.py, exit status != 0: 11.50299166199693 11.533258879 11.419922866 Calling exit ...