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.001792/0.001792, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002324/0.002324, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.421/1.421, allocations: 207.7 MB / 233.1 MB, free: 9.77 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.04992/0.04992, allocations: 8.191 MB / 293.5 MB, free: 13.56 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.002151/0.002151, allocations: 72.11 kB / 410.4 MB, free: 46.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08032/0.08247, allocations: 50.93 MB / 461.4 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003397/0.08587, allocations: 1.891 MB / 463.3 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.08692, allocations: 0.597 MB / 463.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.027e-05/0.08699, allocations: 4 kB / 463.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.409e-05/0.08706, allocations: 27.73 kB / 463.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001336/0.0872, allocations: 47.55 kB / 463.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002282/0.08743, allocations: 59.88 kB / 464 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002973/0.08772, allocations: 231.1 kB / 464.2 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.08791, allocations: 74.58 kB / 464.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000164/0.08807, allocations: 83.78 kB / 464.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001387/0.08821, allocations: 87.53 kB / 464.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.708e-05/0.08825, allocations: 20 kB / 464.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.748e-05/0.08828, allocations: 24 kB / 464.5 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.247e-05/0.08833, allocations: 35.86 kB / 464.5 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.08844, allocations: 91.64 kB / 464.6 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002816/0.08872, allocations: 231.1 kB / 464.9 MB, free: 9.781 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.08872, allocations: 0 / 464.9 MB, free: 9.781 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.08872, allocations: 8 kB / 464.9 MB, free: 9.773 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.08873, allocations: 0 / 464.9 MB, free: 9.773 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.0007356/0.08946, allocations: 431.7 kB / 465.3 MB, free: 9.312 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.08951, allocations: 11.98 kB / 465.3 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.028e-05/0.08957, allocations: 58.72 kB / 465.4 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.987e-05/0.08962, allocations: 24.8 kB / 465.4 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001295/0.08974, allocations: 118.4 kB / 465.5 MB, free: 9.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.566e-05/0.08977, allocations: 16.75 kB / 465.5 MB, free: 9.055 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.447e-05/0.08982, allocations: 32.27 kB / 465.5 MB, free: 9.023 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003403/0.09016, allocations: 219.9 kB / 465.8 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.09017, allocations: 0 / 465.8 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.025e-05/0.09019, allocations: 8 kB / 465.8 MB, free: 8.789 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.0902, allocations: 4 kB / 465.8 MB, free: 8.785 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002198/0.09042, allocations: 146.8 kB / 465.9 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001133/0.09156, allocations: 0.6046 MB / 466.5 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003664/0.09192, allocations: 176.2 kB / 466.7 MB, free: 7.793 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002387/0.09216, allocations: 134.7 kB / 466.8 MB, free: 7.652 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.752e-05/0.09218, allocations: 7.875 kB / 466.8 MB, free: 7.645 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003249/0.0925, allocations: 216.5 kB / 467 MB, free: 7.402 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.453e-06/0.09251, allocations: 0 / 467 MB, free: 7.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=25): time 0.001315/0.09382, allocations: 0.7883 MB / 467.8 MB, free: 6.539 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.704e-05/0.09392, allocations: 140.5 kB / 468 MB, free: 6.371 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.09405, allocations: 141.1 kB / 468.1 MB, free: 6.227 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.778e-05/0.09409, allocations: 33.7 kB / 468.1 MB, free: 6.188 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.722e-05/0.09419, allocations: 136.7 kB / 468.3 MB, free: 6.047 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.447e-05/0.09426, allocations: 83.31 kB / 468.4 MB, free: 5.965 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.711e-05/0.09435, allocations: 61.66 kB / 468.4 MB, free: 5.898 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.0945, allocations: 326.8 kB / 468.7 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.09463, allocations: 90 kB / 468.8 MB, free: 5.473 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.09481, allocations: 158.2 kB / 469 MB, free: 5.285 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003416/0.09515, allocations: 272.2 kB / 469.2 MB, free: 4.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.09515, allocations: 4 kB / 469.2 MB, free: 4.977 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004565/0.09561, allocations: 321.9 kB / 469.6 MB, free: 4.645 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.26e-05/0.09565, allocations: 41.64 kB / 469.6 MB, free: 4.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.09566, allocations: 8.25 kB / 469.6 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/0.09568, allocations: 4 kB / 469.6 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/0.09589, allocations: 55.91 kB / 469.7 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.0959, allocations: 4 kB / 469.7 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.096, allocations: 15.98 kB / 469.7 MB, free: 4.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.826e-05/0.09602, allocations: 12 kB / 469.7 MB, free: 4.5 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.0002208/0.09624, allocations: 179.3 kB / 469.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.578e-05/0.09628, allocations: 27.83 kB / 469.9 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.562e-05/0.09633, allocations: 20.88 kB / 469.9 MB, free: 4.258 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.09633, allocations: 8 kB / 469.9 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.09633, allocations: 0 / 469.9 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.09634, allocations: 0 / 469.9 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009815/0.09732, allocations: 0.6858 MB / 470.6 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.09732, allocations: 0 / 470.6 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001854/0.09751, allocations: 35.98 kB / 470.7 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.09751, allocations: 4 kB / 470.7 MB, free: 3.457 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.324e-05/0.09754, allocations: 11.98 kB / 470.7 MB, free: 3.445 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.09754, allocations: 4.062 kB / 470.7 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.09754, allocations: 0 / 470.7 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006446/0.09819, allocations: 0.537 MB / 471.2 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.257e-05/0.09821, allocations: 7.953 kB / 471.2 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.706e-05/0.09824, allocations: 12 kB / 471.2 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.09836, allocations: 8.031 kB / 471.2 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.191e-05/0.09841, allocations: 11.98 kB / 471.2 MB, free: 2.824 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.135e-05/0.09844, allocations: 15.92 kB / 471.3 MB, free: 2.809 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.001e-05/0.09851, allocations: 99.27 kB / 471.4 MB, free: 2.711 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.09851, allocations: 0 / 471.4 MB, free: 2.711 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000308/0.09882, allocations: 60 kB / 471.4 MB, free: 2.652 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.001002/0.09982, allocations: 1.074 MB / 472.5 MB, free: 1.527 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004218/0.1002, allocations: 298.9 kB / 472.8 MB, free: 1.211 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.1002, allocations: 0 / 472.8 MB, free: 1.211 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002033/0.1004, allocations: 187.3 kB / 473 MB, free: 1.012 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002568/0.1007, allocations: 20.47 kB / 473 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00304/0.1037, allocations: 2.57 MB / 475.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000126/0.1039, allocations: 120.2 kB / 475.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.317e-05/0.1039, allocations: 13.48 kB / 475.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.413e-05/0.104, allocations: 59.42 kB / 475.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.104, allocations: 0 / 475.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03121/0.1352, allocations: 4.056 MB / 479.8 MB, free: 10.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/10.98, allocations: 11.73 kB / 479.8 MB, free: 10.03 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.730165939312428] Failed to read output from testmodel.py, exit status != 0: 11.090952046215534 11.117687473 11.024273228 Calling exit ...