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.0017/0.0017, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002038/0.002038, allocations: 209.7 kB / 22.24 MB, free: 4.859 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.467/1.467, allocations: 207.7 MB / 233.1 MB, free: 9.957 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.05081/0.05081, allocations: 8.186 MB / 293.5 MB, free: 13.5 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.002171/0.002171, allocations: 79.05 kB / 410.4 MB, free: 46.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0864/0.08857, allocations: 50.94 MB / 461.4 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003426/0.092, allocations: 1.887 MB / 463.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001082/0.09308, allocations: 0.5893 MB / 463.9 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.937e-05/0.09316, allocations: 7.938 kB / 463.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.263e-05/0.09323, allocations: 19.78 kB / 463.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001364/0.09337, allocations: 55.48 kB / 463.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002361/0.0936, allocations: 63.88 kB / 464 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002781/0.09388, allocations: 219.2 kB / 464.2 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001888/0.09407, allocations: 74.58 kB / 464.3 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001756/0.09424, allocations: 91.64 kB / 464.4 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001446/0.09439, allocations: 75.69 kB / 464.5 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.834e-05/0.09443, allocations: 20 kB / 464.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.998e-05/0.09447, allocations: 24 kB / 464.5 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.07e-05/0.09452, allocations: 47.83 kB / 464.5 MB, free: 9.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.09462, allocations: 87.66 kB / 464.6 MB, free: 9.898 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002884/0.09491, allocations: 231.1 kB / 464.9 MB, free: 9.672 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.09492, allocations: 0 / 464.9 MB, free: 9.672 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.09492, allocations: 3.938 kB / 464.9 MB, free: 9.668 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.09493, allocations: 0 / 464.9 MB, free: 9.668 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.000769/0.09569, allocations: 439.7 kB / 465.3 MB, free: 9.199 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.09574, allocations: 11.98 kB / 465.3 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.158e-05/0.09581, allocations: 54.73 kB / 465.4 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.842e-05/0.09586, allocations: 20.8 kB / 465.4 MB, free: 9.105 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001625/0.09602, allocations: 134.3 kB / 465.5 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.09605, allocations: 12.75 kB / 465.5 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.113e-05/0.0961, allocations: 28.33 kB / 465.5 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003473/0.09644, allocations: 211.9 kB / 465.7 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.09646, allocations: 0 / 465.7 MB, free: 8.691 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.489e-05/0.09648, allocations: 15.98 kB / 465.8 MB, free: 8.676 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.09649, allocations: 8 kB / 465.8 MB, free: 8.668 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002336/0.09673, allocations: 146.8 kB / 465.9 MB, free: 8.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001188/0.09791, allocations: 0.6085 MB / 466.5 MB, free: 7.859 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003714/0.09828, allocations: 179.5 kB / 466.7 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002565/0.09854, allocations: 126.6 kB / 466.8 MB, free: 7.539 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.09855, allocations: 7.938 kB / 466.8 MB, free: 7.531 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003425/0.0989, allocations: 224.5 kB / 467.1 MB, free: 7.281 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.483e-06/0.0989, allocations: 0 / 467.1 MB, free: 7.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=25): time 0.001493/0.1004, allocations: 0.7883 MB / 467.8 MB, free: 6.418 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/0.1005, allocations: 136.5 kB / 468 MB, free: 6.254 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.1006, allocations: 141.7 kB / 468.1 MB, free: 6.105 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.771e-05/0.1007, allocations: 29.7 kB / 468.1 MB, free: 6.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.1008, allocations: 140.7 kB / 468.3 MB, free: 5.926 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.233e-05/0.1009, allocations: 83.31 kB / 468.4 MB, free: 5.844 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.558e-05/0.1009, allocations: 61.66 kB / 468.4 MB, free: 5.777 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/0.1011, allocations: 330.8 kB / 468.7 MB, free: 5.445 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.1013, allocations: 90 kB / 468.8 MB, free: 5.348 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002051/0.1015, allocations: 158.3 kB / 469 MB, free: 5.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003443/0.1018, allocations: 268.5 kB / 469.2 MB, free: 4.859 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.1018, allocations: 0 / 469.2 MB, free: 4.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004413/0.1023, allocations: 321.9 kB / 469.6 MB, free: 4.527 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.213e-05/0.1023, allocations: 37.64 kB / 469.6 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.1023, allocations: 80 / 469.6 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.1023, allocations: 4 kB / 469.6 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002171/0.1025, allocations: 63.91 kB / 469.7 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.211e-05/0.1025, allocations: 20.11 kB / 469.7 MB, free: 4.398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.535e-05/0.1026, allocations: 8 kB / 469.7 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.124e-05/0.1027, allocations: 16 kB / 469.7 MB, free: 4.375 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.0002123/0.1029, allocations: 175.4 kB / 469.9 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.195e-05/0.1029, allocations: 19.84 kB / 469.9 MB, free: 4.168 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.68e-05/0.103, allocations: 20.92 kB / 469.9 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.103, allocations: 0 / 469.9 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.103, allocations: 0 / 469.9 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.941e-06/0.103, allocations: 4 kB / 469.9 MB, free: 4.141 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009992/0.104, allocations: 0.6897 MB / 470.6 MB, free: 3.383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.104, allocations: 4 kB / 470.6 MB, free: 3.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001867/0.1042, allocations: 35.98 kB / 470.7 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.1042, allocations: 0 / 470.7 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-05/0.1042, allocations: 8 kB / 470.7 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.1042, allocations: 4 kB / 470.7 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.1042, allocations: 3.938 kB / 470.7 MB, free: 3.328 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006784/0.1049, allocations: 0.541 MB / 471.2 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.911e-05/0.1049, allocations: 15.95 kB / 471.2 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.597e-05/0.1049, allocations: 8 kB / 471.2 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001098/0.105, allocations: 12 kB / 471.2 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.615e-05/0.1051, allocations: 12.02 kB / 471.3 MB, free: 2.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.642e-05/0.1051, allocations: 15.94 kB / 471.3 MB, free: 2.684 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.058e-05/0.1052, allocations: 99.27 kB / 471.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1052, allocations: 0 / 471.4 MB, free: 2.586 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002899/0.1055, allocations: 55.94 kB / 471.4 MB, free: 2.531 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.00101/0.1065, allocations: 1.079 MB / 472.5 MB, free: 1.406 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003952/0.1069, allocations: 295 kB / 472.8 MB, free: 1.094 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.1069, allocations: 4 kB / 472.8 MB, free: 1.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002053/0.1071, allocations: 185 kB / 473 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002572/0.1073, allocations: 23.84 kB / 473 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002952/0.1103, allocations: 2.571 MB / 475.6 MB, free: 14.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001267/0.1104, allocations: 124.2 kB / 475.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.777e-05/0.1105, allocations: 17.47 kB / 475.7 MB, free: 13.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.446e-05/0.1106, allocations: 51.42 kB / 475.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1106, allocations: 0 / 475.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03034/0.1409, allocations: 4.05 MB / 479.8 MB, free: 9.922 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/10.8, allocations: 11.73 kB / 479.8 MB, free: 9.91 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 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.439454597886652] Failed to read output from testmodel.py, exit status != 0: 10.903282292652875 10.929829203 10.829649152 Calling exit ...