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.001628/0.001628, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.00216/0.00216, allocations: 217.5 kB / 22.26 MB, free: 5.082 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.822/1.822, allocations: 207.6 MB / 233 MB, free: 10 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.05159/0.05159, allocations: 8.201 MB / 293.5 MB, free: 13.66 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.002263/0.002263, allocations: 80.75 kB / 410.4 MB, free: 46.95 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09069/0.09295, allocations: 50.94 MB / 461.4 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.004116/0.09707, allocations: 1.989 MB / 463.4 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.09832, allocations: 0.6281 MB / 464 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.874e-05/0.09841, allocations: 4 kB / 464 MB, free: 10.83 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.974e-05/0.0985, allocations: 31.72 kB / 464 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001788/0.09868, allocations: 47.55 kB / 464.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002782/0.09896, allocations: 63.86 kB / 464.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003256/0.09928, allocations: 223.1 kB / 464.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000209/0.09949, allocations: 78.58 kB / 464.4 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001739/0.09966, allocations: 87.77 kB / 464.5 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001708/0.09984, allocations: 99.62 kB / 464.6 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.135e-05/0.09988, allocations: 20 kB / 464.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.634e-05/0.09992, allocations: 20 kB / 464.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.026e-05/0.09997, allocations: 43.84 kB / 464.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.1001, allocations: 103.6 kB / 464.8 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002965/0.1004, allocations: 227.1 kB / 465 MB, free: 9.809 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.1004, allocations: 0 / 465 MB, free: 9.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1004, allocations: 0 / 465 MB, free: 9.809 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.1004, allocations: 4 kB / 465 MB, free: 9.805 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.0008084/0.1012, allocations: 439.6 kB / 465.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/0.1013, allocations: 11.98 kB / 465.5 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.417e-05/0.1013, allocations: 58.67 kB / 465.5 MB, free: 9.258 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.325e-05/0.1014, allocations: 24.8 kB / 465.5 MB, free: 9.234 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001622/0.1016, allocations: 126.3 kB / 465.7 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.539e-05/0.1016, allocations: 20.75 kB / 465.7 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.724e-05/0.1016, allocations: 28.33 kB / 465.7 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003831/0.102, allocations: 186.2 kB / 465.9 MB, free: 8.852 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.102, allocations: 7.938 kB / 465.9 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.085e-05/0.1021, allocations: 4 kB / 465.9 MB, free: 8.84 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.1021, allocations: 8 kB / 465.9 MB, free: 8.832 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002342/0.1023, allocations: 117.1 kB / 466 MB, free: 8.719 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.1035, allocations: 0.6475 MB / 466.7 MB, free: 8.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003949/0.1039, allocations: 157.9 kB / 466.8 MB, free: 7.859 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002388/0.1042, allocations: 96.95 kB / 466.9 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.645e-05/0.1042, allocations: 3.938 kB / 466.9 MB, free: 7.758 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003822/0.1046, allocations: 182.8 kB / 467.1 MB, free: 7.555 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.553e-06/0.1046, allocations: 0 / 467.1 MB, free: 7.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=25): time 0.001544/0.1061, allocations: 0.7243 MB / 467.8 MB, free: 6.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/0.1062, allocations: 140.5 kB / 468 MB, free: 6.602 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.1064, allocations: 137.7 kB / 468.1 MB, free: 6.457 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.509e-05/0.1064, allocations: 29.7 kB / 468.1 MB, free: 6.422 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.1066, allocations: 136.7 kB / 468.3 MB, free: 6.281 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.234e-05/0.1066, allocations: 83.33 kB / 468.4 MB, free: 6.199 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.67e-05/0.1067, allocations: 53.7 kB / 468.4 MB, free: 6.141 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.1069, allocations: 326.8 kB / 468.7 MB, free: 5.812 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001186/0.107, allocations: 64.3 kB / 468.8 MB, free: 5.746 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00018/0.1072, allocations: 132.5 kB / 468.9 MB, free: 5.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003712/0.1076, allocations: 264.2 kB / 469.2 MB, free: 5.293 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1076, allocations: 0 / 469.2 MB, free: 5.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004538/0.108, allocations: 296.2 kB / 469.5 MB, free: 4.992 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.803e-05/0.1081, allocations: 41.64 kB / 469.5 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.1081, allocations: 4 kB / 469.5 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.387e-05/0.1081, allocations: 4 kB / 469.5 MB, free: 4.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002232/0.1083, allocations: 55.91 kB / 469.6 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.1084, allocations: 4 kB / 469.6 MB, free: 4.879 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001042/0.1085, allocations: 20.19 kB / 469.6 MB, free: 4.859 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.22e-05/0.1085, allocations: 19.94 kB / 469.6 MB, free: 4.84 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.0002463/0.1087, allocations: 175.4 kB / 469.8 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.31e-05/0.1088, allocations: 19.88 kB / 469.8 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.225e-05/0.1088, allocations: 20.94 kB / 469.8 MB, free: 4.609 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.1088, allocations: 0 / 469.8 MB, free: 4.609 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.944e-06/0.1088, allocations: 4 kB / 469.8 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.1088, allocations: 0 / 469.8 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009934/0.1098, allocations: 0.6723 MB / 470.5 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1098, allocations: 0 / 470.5 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001936/0.11, allocations: 47.86 kB / 470.5 MB, free: 3.824 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.11, allocations: 0 / 470.5 MB, free: 3.824 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/0.11, allocations: 12 kB / 470.6 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.1101, allocations: 4 kB / 470.6 MB, free: 3.809 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1101, allocations: 4.062 kB / 470.6 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006063/0.1107, allocations: 470.5 kB / 471 MB, free: 3.316 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.229e-05/0.1107, allocations: 11.91 kB / 471 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.561e-05/0.1107, allocations: 8 kB / 471 MB, free: 3.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.1108, allocations: 12 kB / 471.1 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.957e-05/0.1109, allocations: 16.02 kB / 471.1 MB, free: 3.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.62e-05/0.1109, allocations: 15.94 kB / 471.1 MB, free: 3.254 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.124e-05/0.111, allocations: 99.27 kB / 471.2 MB, free: 3.156 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.111, allocations: 0 / 471.2 MB, free: 3.156 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003235/0.1113, allocations: 52 kB / 471.2 MB, free: 3.105 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.001045/0.1123, allocations: 1.011 MB / 472.2 MB, free: 2.059 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003907/0.1127, allocations: 227.6 kB / 472.5 MB, free: 1.824 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.1127, allocations: 0 / 472.5 MB, free: 1.824 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001944/0.1129, allocations: 159.2 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.0002856/0.1132, allocations: 16.56 kB / 472.6 MB, free: 1.641 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003002/0.1162, allocations: 2.42 MB / 475.1 MB, free: 15.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00038/0.1166, allocations: 0.732 MB / 475.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.954e-05/0.1167, allocations: 13.48 kB / 475.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.81e-05/0.1168, allocations: 55.42 kB / 475.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of SimCode: time 1.212e-06/0.1168, allocations: 0 / 475.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03554/0.1523, allocations: 3.8 MB / 479.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.42, allocations: 12.58 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 & /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: 14.455326228868216] Failed to read output from testmodel.py, exit status != 0: 11.52788425097242 11.547103373 11.443412115 Calling exit ...