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.001137/0.001137, allocations: 98.33 kB / 19.73 MB, free: 2.23 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.001335/0.001335, allocations: 214.4 kB / 23.04 MB, free: 5.074 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.386/1.386, allocations: 207.6 MB / 233.8 MB, free: 9.98 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.05028/0.05028, allocations: 8.192 MB / 294.3 MB, free: 13.65 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithPulseCounter",fmuType="cs",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.002145/0.002145, allocations: 80.69 kB / 411.2 MB, free: 46.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08867/0.09081, allocations: 50.93 MB / 462.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.003837/0.09465, allocations: 1.993 MB / 464.2 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001293/0.09594, allocations: 0.6243 MB / 464.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.645e-05/0.09604, allocations: 4 kB / 464.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.926e-05/0.09612, allocations: 27.72 kB / 464.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001563/0.09628, allocations: 51.55 kB / 464.9 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002846/0.09656, allocations: 63.86 kB / 464.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000335/0.0969, allocations: 219.1 kB / 465.1 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002189/0.09711, allocations: 82.58 kB / 465.2 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001776/0.09729, allocations: 91.75 kB / 465.3 MB, free: 10.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001644/0.09746, allocations: 87.62 kB / 465.4 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.664e-05/0.09749, allocations: 20 kB / 465.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.765e-05/0.09753, allocations: 27.94 kB / 465.4 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.031e-05/0.09758, allocations: 43.84 kB / 465.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001329/0.09771, allocations: 107.6 kB / 465.6 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003122/0.09803, allocations: 231.1 kB / 465.8 MB, free: 9.805 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.922e-06/0.09803, allocations: 0 / 465.8 MB, free: 9.805 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.09803, allocations: 0 / 465.8 MB, free: 9.805 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.703e-06/0.09804, allocations: 0 / 465.8 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.0007937/0.09883, allocations: 427.7 kB / 466.2 MB, free: 9.348 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.09888, allocations: 27.86 kB / 466.3 MB, free: 9.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.285e-05/0.0989, allocations: 8.562 kB / 466.3 MB, free: 9.312 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.753e-05/0.09896, allocations: 58.73 kB / 466.3 MB, free: 9.246 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.94e-05/0.09901, allocations: 20.8 kB / 466.3 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001594/0.09917, allocations: 130.3 kB / 466.5 MB, free: 9.074 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.09919, allocations: 12.75 kB / 466.5 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.55e-05/0.09923, allocations: 28.33 kB / 466.5 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003353/0.09957, allocations: 186 kB / 466.7 MB, free: 8.848 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.09959, allocations: 4 kB / 466.7 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.109e-05/0.09961, allocations: 12 kB / 466.7 MB, free: 8.832 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.09961, allocations: 4 kB / 466.7 MB, free: 8.828 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002091/0.09982, allocations: 117.1 kB / 466.8 MB, free: 8.715 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.101, allocations: 0.6471 MB / 467.5 MB, free: 8.016 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003504/0.1013, allocations: 153.9 kB / 467.6 MB, free: 7.859 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002182/0.1015, allocations: 96.95 kB / 467.7 MB, free: 7.762 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.785e-05/0.1016, allocations: 11.88 kB / 467.7 MB, free: 7.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003235/0.1019, allocations: 174.9 kB / 467.9 MB, free: 7.555 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.292e-06/0.1019, allocations: 0 / 467.9 MB, free: 7.555 MB / 334.1 MB Notification: Performance of matching and sorting (n=25): time 0.001319/0.1032, allocations: 0.7225 MB / 468.6 MB, free: 6.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.348e-05/0.1033, allocations: 136.5 kB / 468.8 MB, free: 6.605 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001198/0.1034, allocations: 137.7 kB / 468.9 MB, free: 6.461 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.78e-05/0.1034, allocations: 33.7 kB / 468.9 MB, free: 6.422 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.923e-05/0.1035, allocations: 136.7 kB / 469.1 MB, free: 6.281 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.907e-05/0.1036, allocations: 83.33 kB / 469.1 MB, free: 6.199 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.93e-05/0.1037, allocations: 53.7 kB / 469.2 MB, free: 6.141 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.1038, allocations: 326.8 kB / 469.5 MB, free: 5.812 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000109/0.1039, allocations: 64.3 kB / 469.6 MB, free: 5.746 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.1041, allocations: 132.5 kB / 469.7 MB, free: 5.59 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003306/0.1044, allocations: 268.2 kB / 470 MB, free: 5.289 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1044, allocations: 0 / 470 MB, free: 5.289 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004183/0.1049, allocations: 292.2 kB / 470.3 MB, free: 4.992 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.535e-05/0.1049, allocations: 37.64 kB / 470.3 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.1049, allocations: 0 / 470.3 MB, free: 4.949 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.39e-05/0.1049, allocations: 4 kB / 470.3 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002188/0.1052, allocations: 63.91 kB / 470.4 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.1052, allocations: 7.938 kB / 470.4 MB, free: 4.875 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.464e-05/0.1053, allocations: 12.2 kB / 470.4 MB, free: 4.863 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.75e-05/0.1053, allocations: 19.94 kB / 470.4 MB, free: 4.844 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.0002096/0.1055, allocations: 187.3 kB / 470.6 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.017e-05/0.1055, allocations: 19.88 kB / 470.6 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.103e-05/0.1056, allocations: 16.94 kB / 470.6 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1056, allocations: 0 / 470.6 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.289e-06/0.1056, allocations: 0 / 470.6 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.1056, allocations: 0 / 470.6 MB, free: 4.605 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009559/0.1065, allocations: 0.6723 MB / 471.3 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1065, allocations: 0 / 471.3 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002099/0.1067, allocations: 43.97 kB / 471.3 MB, free: 3.828 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.1067, allocations: 4 kB / 471.3 MB, free: 3.824 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.239e-05/0.1068, allocations: 8 kB / 471.3 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1068, allocations: 0 / 471.3 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.247e-06/0.1068, allocations: 4 kB / 471.3 MB, free: 3.812 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006214/0.1074, allocations: 482.6 kB / 471.8 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.931e-05/0.1074, allocations: 11.91 kB / 471.8 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.748e-05/0.1075, allocations: 8 kB / 471.8 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.1076, allocations: 4 kB / 471.8 MB, free: 3.289 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.205e-05/0.1076, allocations: 23.91 kB / 471.9 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.441e-05/0.1076, allocations: 16 kB / 471.9 MB, free: 3.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.699e-05/0.1077, allocations: 95.27 kB / 472 MB, free: 3.156 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1077, allocations: 0 / 472 MB, free: 3.156 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002913/0.108, allocations: 52 kB / 472 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.0009987/0.109, allocations: 1.005 MB / 473 MB, free: 2.066 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003703/0.1094, allocations: 235.5 kB / 473.3 MB, free: 1.824 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1094, allocations: 0 / 473.3 MB, free: 1.824 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001866/0.1096, allocations: 155.3 kB / 473.4 MB, free: 1.66 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002608/0.1098, allocations: 19.94 kB / 473.4 MB, free: 1.641 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002905/0.1127, allocations: 2.42 MB / 475.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004043/0.1131, allocations: 0.7359 MB / 476.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.478e-05/0.1132, allocations: 13.48 kB / 476.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.095e-05/0.1133, allocations: 63.36 kB / 476.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1133, allocations: 0 / 476.7 MB, free: 14.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02578/0.139, allocations: 3.83 MB / 480.5 MB, free: 10.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/10.99, allocations: 4.766 kB / 480.5 MB, free: 10.46 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.59690694801975] Failed to read output from testmodel.py, exit status != 0: 11.151477935025468 11.176983581 11.074503196 Calling exit ...