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.0009774/0.0009774, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001161/0.001161, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.905/0.905, allocations: 158.6 MB / 184.2 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] 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.02438/0.02438, allocations: 6.407 MB / 242.9 MB, free: 8.969 MB / 234.7 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: Performance of FrontEnd - loaded program: time 3.086e-06/3.086e-06, allocations: 0 / 359.8 MB, free: 4.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.437e-05/3.745e-05, allocations: 2.281 kB / 359.8 MB, free: 4.512 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.002974/0.003012, allocations: 1.903 MB / 361.7 MB, free: 2.59 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.000931/0.003943, allocations: 0.5891 MB / 362.3 MB, free: 1.992 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001036/0.004046, allocations: 7.938 kB / 362.3 MB, free: 1.984 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 7.485e-05/0.004121, allocations: 27.78 kB / 362.4 MB, free: 1.957 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000174/0.004295, allocations: 55.42 kB / 362.4 MB, free: 1.902 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003295/0.004625, allocations: 59.84 kB / 362.5 MB, free: 1.844 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002369/0.004862, allocations: 231 kB / 362.7 MB, free: 1.617 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002028/0.005064, allocations: 74.36 kB / 362.8 MB, free: 1.547 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002297/0.005294, allocations: 139.7 kB / 362.9 MB, free: 1.41 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001094/0.005404, allocations: 67.77 kB / 363 MB, free: 1.344 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.284e-05/0.005436, allocations: 20 kB / 363 MB, free: 1.324 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.275e-05/0.005459, allocations: 24 kB / 363 MB, free: 1.301 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.629e-05/0.005495, allocations: 35.91 kB / 363 MB, free: 1.266 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.05e-05/0.005566, allocations: 75.83 kB / 363.1 MB, free: 1.191 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002049/0.005771, allocations: 243.2 kB / 363.4 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.005774, allocations: 0 / 363.4 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.005776, allocations: 0 / 363.4 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.353e-06/0.005783, allocations: 0 / 363.4 MB, free: 0.9531 MB / 282.7 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.0005423/0.006326, allocations: 439.1 kB / 363.8 MB, free: 500 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.006371, allocations: 11.98 kB / 363.8 MB, free: 488 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.949e-05/0.00641, allocations: 58.73 kB / 363.9 MB, free: 420 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.023e-05/0.00645, allocations: 20.8 kB / 363.9 MB, free: 400 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.136e-05/0.006542, allocations: 129.5 kB / 364 MB, free: 244 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.936e-05/0.006561, allocations: 16.75 kB / 364 MB, free: 228 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.474e-05/0.006596, allocations: 28.33 kB / 364 MB, free: 200 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002734/0.006869, allocations: 212.7 kB / 364.3 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.006883, allocations: 4.188 kB / 364.3 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.068e-05/0.006904, allocations: 16.12 kB / 364.3 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.006912, allocations: 4 kB / 364.3 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001771/0.007089, allocations: 138.9 kB / 364.4 MB, free: 15.81 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008993/0.007989, allocations: 0.6088 MB / 365 MB, free: 15.15 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003033/0.008292, allocations: 180.2 kB / 365.2 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/0.00846, allocations: 134.5 kB / 365.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.318e-05/0.008473, allocations: 0 / 365.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002906/0.008763, allocations: 216.6 kB / 365.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.192e-06/0.008765, allocations: 0 / 365.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of matching and sorting (n=25): time 0.001102/0.009867, allocations: 0.791 MB / 366.3 MB, free: 13.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.969e-05/0.009946, allocations: 140.5 kB / 366.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.01006, allocations: 143.5 kB / 366.6 MB, free: 13.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.01008, allocations: 37.64 kB / 366.6 MB, free: 13.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.888e-05/0.01016, allocations: 136.7 kB / 366.8 MB, free: 13.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.431e-05/0.01021, allocations: 83.31 kB / 366.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.79e-05/0.01028, allocations: 69.59 kB / 366.9 MB, free: 13.06 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.01039, allocations: 326.8 kB / 367.2 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.278e-05/0.01048, allocations: 86 kB / 367.3 MB, free: 12.64 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001357/0.01062, allocations: 158.3 kB / 367.5 MB, free: 12.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002685/0.01089, allocations: 268.2 kB / 367.7 MB, free: 12.15 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.01089, allocations: 0 / 367.7 MB, free: 12.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003669/0.01126, allocations: 325.9 kB / 368.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.936e-05/0.0113, allocations: 37.69 kB / 368.1 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.0113, allocations: 0 / 368.1 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.975e-05/0.01132, allocations: 4 kB / 368.1 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.01147, allocations: 68.09 kB / 368.2 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.01148, allocations: 7.938 kB / 368.2 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.69e-05/0.01155, allocations: 12 kB / 368.2 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.01157, allocations: 12 kB / 368.2 MB, free: 11.67 MB / 298.7 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.000183/0.01175, allocations: 180.6 kB / 368.4 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.976e-05/0.01177, allocations: 15.91 kB / 368.4 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.909e-05/0.01181, allocations: 24.92 kB / 368.4 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.594e-06/0.01181, allocations: 0 / 368.4 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.01182, allocations: 3.938 kB / 368.4 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.01182, allocations: 8 kB / 368.4 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006789/0.0125, allocations: 0.6788 MB / 369.1 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.0125, allocations: 7.938 kB / 369.1 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.01262, allocations: 39.98 kB / 369.2 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.01262, allocations: 0 / 369.2 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.58e-05/0.01264, allocations: 8 kB / 369.2 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.01264, allocations: 4 kB / 369.2 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.01264, allocations: 4 kB / 369.2 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004953/0.01314, allocations: 0.5395 MB / 369.7 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.458e-05/0.01315, allocations: 7.953 kB / 369.7 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.452e-05/0.01318, allocations: 8 kB / 369.7 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.236e-05/0.01324, allocations: 12 kB / 369.7 MB, free: 10.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.353e-05/0.01328, allocations: 16.02 kB / 369.8 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.928e-05/0.0133, allocations: 8 kB / 369.8 MB, free: 9.992 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.685e-05/0.01335, allocations: 102.5 kB / 369.9 MB, free: 9.895 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01335, allocations: 0 / 369.9 MB, free: 9.895 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002231/0.01357, allocations: 52 kB / 369.9 MB, free: 9.844 MB / 298.7 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.0007063/0.01428, allocations: 1.101 MB / 371 MB, free: 8.688 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002953/0.01457, allocations: 291 kB / 371.3 MB, free: 8.379 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.01458, allocations: 0 / 371.3 MB, free: 8.379 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001296/0.0147, allocations: 189 kB / 371.5 MB, free: 8.176 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001992/0.0149, allocations: 14.66 kB / 371.5 MB, free: 8.164 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002137/0.01704, allocations: 2.469 MB / 374 MB, free: 5.52 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.129e-05/0.01712, allocations: 116.2 kB / 374.1 MB, free: 5.387 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 4.284e-05/0.01716, allocations: 17.47 kB / 374.1 MB, free: 5.371 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.02e-05/0.01724, allocations: 60.48 kB / 374.2 MB, free: 5.312 MB / 298.7 MB Notification: Performance of SimCode: time 8.12e-07/0.01724, allocations: 0 / 374.2 MB, free: 5.312 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01857/0.03581, allocations: 4.197 MB / 378.4 MB, free: 1.199 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.347/7.383, allocations: 11.44 kB / 378.4 MB, free: 1.191 MB / 298.7 MB " [Timeout remaining time 653] (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: 9.22864103037864] Failed to read output from testmodel.py, exit status != 0: 7.467886133119464 7.479851951 7.472298029 Calling exit ...