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.001226/0.001226, 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.001719/0.001719, allocations: 165.9 kB / 22.45 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.9117/0.9117, allocations: 158.6 MB / 184.2 MB, free: 3.043 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.02415/0.02415, allocations: 6.408 MB / 242.9 MB, free: 8.965 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 1.472e-06/1.472e-06, allocations: 0 / 359.8 MB, free: 4.371 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.374e-05/2.522e-05, allocations: 2.281 kB / 359.8 MB, free: 4.367 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.001922/0.001947, allocations: 1.903 MB / 361.7 MB, free: 2.445 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007424/0.002689, allocations: 0.5931 MB / 362.3 MB, free: 1.844 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.205e-05/0.002771, allocations: 4 kB / 362.3 MB, free: 1.84 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.773e-05/0.002829, allocations: 23.72 kB / 362.3 MB, free: 1.816 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001187/0.002948, allocations: 51.5 kB / 362.4 MB, free: 1.766 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002139/0.003162, allocations: 63.84 kB / 362.5 MB, free: 1.703 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000173/0.003335, allocations: 231 kB / 362.7 MB, free: 1.477 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.003478, allocations: 70.36 kB / 362.8 MB, free: 1.41 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001474/0.003625, allocations: 139.6 kB / 362.9 MB, free: 1.273 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.287e-05/0.003708, allocations: 71.77 kB / 363 MB, free: 1.203 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.45e-05/0.003733, allocations: 20 kB / 363 MB, free: 1.184 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.761e-05/0.00375, allocations: 20 kB / 363 MB, free: 1.164 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.918e-05/0.00378, allocations: 43.89 kB / 363 MB, free: 1.121 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.501e-05/0.003835, allocations: 75.83 kB / 363.1 MB, free: 1.047 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000162/0.003997, allocations: 235.2 kB / 363.3 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.545e-06/0.003999, allocations: 4 kB / 363.4 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.004002, allocations: 3.984 kB / 363.4 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.391e-06/0.004007, allocations: 4 kB / 363.4 MB, free: 0.8047 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.0005358/0.004543, allocations: 431.3 kB / 363.8 MB, free: 356 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.004587, allocations: 15.98 kB / 363.8 MB, free: 340 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.75e-05/0.004624, allocations: 58.73 kB / 363.9 MB, free: 272 kB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.206e-05/0.004667, allocations: 20.8 kB / 363.9 MB, free: 252 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.405e-05/0.004761, allocations: 125.6 kB / 364 MB, free: 100 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.39e-05/0.004784, allocations: 12.75 kB / 364 MB, free: 88 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.322e-05/0.004818, allocations: 28.33 kB / 364 MB, free: 60 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002686/0.005086, allocations: 220.6 kB / 364.3 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.0051, allocations: 8.188 kB / 364.3 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.817e-05/0.005118, allocations: 16.11 kB / 364.3 MB, free: 15.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.005124, allocations: 4 kB / 364.3 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001671/0.005291, allocations: 142.9 kB / 364.4 MB, free: 15.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007633/0.006055, allocations: 0.6049 MB / 365 MB, free: 15 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002691/0.006324, allocations: 180.2 kB / 365.2 MB, free: 14.81 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.006477, allocations: 126.5 kB / 365.3 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.285e-05/0.00649, allocations: 4 kB / 365.3 MB, free: 14.68 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000243/0.006733, allocations: 216.6 kB / 365.5 MB, free: 14.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.513e-06/0.006734, allocations: 0 / 365.5 MB, free: 14.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=25): time 0.0009124/0.007647, allocations: 0.7911 MB / 366.3 MB, free: 13.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.079e-05/0.007707, allocations: 144.4 kB / 366.5 MB, free: 13.4 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.074e-05/0.007788, allocations: 143.5 kB / 366.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.623e-05/0.007804, allocations: 29.7 kB / 366.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.938e-05/0.007864, allocations: 136.7 kB / 366.8 MB, free: 13.08 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.278e-05/0.007907, allocations: 87.33 kB / 366.9 MB, free: 12.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.447e-05/0.007961, allocations: 57.66 kB / 366.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.051e-05/0.008042, allocations: 330.8 kB / 367.2 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.963e-05/0.008131, allocations: 94 kB / 367.3 MB, free: 12.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001143/0.008246, allocations: 154.2 kB / 367.5 MB, free: 12.31 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002252/0.008471, allocations: 276.1 kB / 367.8 MB, free: 12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.008472, allocations: 0 / 367.8 MB, free: 12 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002783/0.00875, allocations: 325.9 kB / 368.1 MB, free: 11.67 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.807e-05/0.008778, allocations: 33.7 kB / 368.1 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.008784, allocations: 0 / 368.1 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.008802, allocations: 4.25 kB / 368.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.008938, allocations: 71.84 kB / 368.2 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.573e-06/0.008944, allocations: 4 kB / 368.2 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.029e-05/0.009004, allocations: 11.98 kB / 368.2 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.225e-05/0.009017, allocations: 16 kB / 368.2 MB, free: 11.52 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.000159/0.009176, allocations: 180.6 kB / 368.4 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.994e-05/0.009196, allocations: 15.91 kB / 368.4 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.644e-05/0.009222, allocations: 16.94 kB / 368.4 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.009224, allocations: 0 / 368.4 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.00923, allocations: 3.938 kB / 368.4 MB, free: 11.3 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.009234, allocations: 4 kB / 368.4 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005992/0.009833, allocations: 0.6904 MB / 369.1 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.009837, allocations: 7.938 kB / 369.1 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.009946, allocations: 39.98 kB / 369.2 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.00995, allocations: 0 / 369.2 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.009964, allocations: 11.98 kB / 369.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.009967, allocations: 4 kB / 369.2 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.009968, allocations: 4.062 kB / 369.2 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004063/0.01037, allocations: 0.5355 MB / 369.7 MB, free: 9.895 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.589e-05/0.01039, allocations: 7.953 kB / 369.7 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.332e-05/0.01041, allocations: 8 kB / 369.7 MB, free: 9.879 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.051e-05/0.01047, allocations: 8.031 kB / 369.7 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.065e-05/0.01051, allocations: 19.92 kB / 369.8 MB, free: 9.852 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.01053, allocations: 15.98 kB / 369.8 MB, free: 9.836 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.209e-05/0.01058, allocations: 98.5 kB / 369.9 MB, free: 9.742 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.01058, allocations: 0 / 369.9 MB, free: 9.742 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002193/0.01079, allocations: 52 kB / 369.9 MB, free: 9.691 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.0006549/0.01145, allocations: 1.086 MB / 371 MB, free: 8.551 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002721/0.01172, allocations: 303 kB / 371.3 MB, free: 8.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.01172, allocations: 0 / 371.3 MB, free: 8.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.01184, allocations: 179.8 kB / 371.5 MB, free: 8.039 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001828/0.01202, allocations: 16 kB / 371.5 MB, free: 8.023 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001806/0.01383, allocations: 2.466 MB / 374 MB, free: 5.383 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.896e-05/0.0139, allocations: 120.2 kB / 374.1 MB, free: 5.246 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.825e-05/0.01394, allocations: 13.48 kB / 374.1 MB, free: 5.234 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.975e-05/0.01402, allocations: 64.48 kB / 374.2 MB, free: 5.172 MB / 298.7 MB Notification: Performance of SimCode: time 7.51e-07/0.01402, allocations: 0 / 374.2 MB, free: 5.172 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01795/0.03197, allocations: 4.199 MB / 378.4 MB, free: 1.051 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.121/7.153, allocations: 8 kB / 378.4 MB, free: 1.043 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 & 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: 9.08107310347259] Failed to read output from testmodel.py, exit status != 0: 7.232338079251349 7.242522698 7.236203769 Calling exit ...