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.00126/0.00126, allocations: 116.8 kB / 17.16 MB, free: 5.895 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.001353/0.001353, allocations: 212 kB / 20.13 MB, free: 2.949 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.454/1.454, allocations: 207.6 MB / 230.5 MB, free: 4.023 MB / 174.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.05012/0.05012, allocations: 8.204 MB / 290.6 MB, free: 8.121 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.002139/0.002139, allocations: 75.89 kB / 406 MB, free: 1.414 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2645, allocations: 50.89 MB / 456.9 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.002604/0.2672, allocations: 1.993 MB / 458.8 MB, free: 2.195 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008001/0.268, allocations: 0.6183 MB / 459.5 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.187e-05/0.268, allocations: 2.531 kB / 459.5 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.748e-05/0.2681, allocations: 30.91 kB / 459.5 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000119/0.2682, allocations: 40.95 kB / 459.5 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001981/0.2684, allocations: 71.84 kB / 459.6 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002083/0.2686, allocations: 220.1 kB / 459.8 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001569/0.2688, allocations: 71.17 kB / 459.9 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001267/0.2689, allocations: 91.31 kB / 460 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001061/0.269, allocations: 90 kB / 460.1 MB, free: 1.281 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.879e-05/0.269, allocations: 23.56 kB / 460.1 MB, free: 1.277 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.334e-05/0.2691, allocations: 21.44 kB / 460.1 MB, free: 1.277 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.728e-05/0.2691, allocations: 49.86 kB / 460.2 MB, free: 1.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.799e-05/0.2692, allocations: 101.3 kB / 460.3 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002198/0.2694, allocations: 234.3 kB / 460.5 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.2694, allocations: 1.25 kB / 460.5 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2694, allocations: 0 / 460.5 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.2694, allocations: 0 / 460.5 MB, free: 0.9922 MB / 318.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.0006465/0.2701, allocations: 0.5056 MB / 461 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.2701, allocations: 17.11 kB / 461 MB, free: 500 kB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.298e-05/0.2701, allocations: 6.594 kB / 461 MB, free: 500 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.603e-05/0.2702, allocations: 52.33 kB / 461.1 MB, free: 444 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.627e-05/0.2702, allocations: 24.48 kB / 461.1 MB, free: 432 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.2703, allocations: 181.8 kB / 461.3 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.2703, allocations: 12.88 kB / 461.3 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.447e-05/0.2704, allocations: 26.86 kB / 461.3 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002757/0.2707, allocations: 196 kB / 461.5 MB, free: 72 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.2707, allocations: 1.5 kB / 461.5 MB, free: 72 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/0.2707, allocations: 5.25 kB / 461.5 MB, free: 68 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.2707, allocations: 12.52 kB / 461.5 MB, free: 60 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.2709, allocations: 118.1 kB / 461.6 MB, free: 4 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001171/0.2721, allocations: 0.7078 MB / 462.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003755/0.2724, allocations: 225.9 kB / 462.6 MB, free: 15.21 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002118/0.2726, allocations: 92.94 kB / 462.7 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.129e-05/0.2727, allocations: 1.375 kB / 462.7 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003229/0.273, allocations: 190.2 kB / 462.8 MB, free: 14.99 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.513e-06/0.273, allocations: 0 / 462.8 MB, free: 14.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=25): time 0.001371/0.2743, allocations: 0.7985 MB / 463.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.2744, allocations: 139.5 kB / 463.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001224/0.2746, allocations: 133.8 kB / 463.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.2746, allocations: 34.89 kB / 463.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.144e-05/0.2747, allocations: 137.5 kB / 464.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.501e-05/0.2748, allocations: 89.59 kB / 464.2 MB, free: 13.85 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.354e-05/0.2749, allocations: 55.14 kB / 464.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.275, allocations: 330.4 kB / 464.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.2751, allocations: 61.36 kB / 464.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.2753, allocations: 135.3 kB / 464.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003258/0.2756, allocations: 259.6 kB / 465 MB, free: 13.12 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2756, allocations: 5.188 kB / 465 MB, free: 13.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004115/0.276, allocations: 298 kB / 465.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.006e-05/0.2761, allocations: 40.53 kB / 465.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.2761, allocations: 1.25 kB / 465.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.2761, allocations: 4.688 kB / 465.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002108/0.2763, allocations: 54.58 kB / 465.4 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.2763, allocations: 11.55 kB / 465.4 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.54e-05/0.2764, allocations: 16.83 kB / 465.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.993e-05/0.2764, allocations: 14.22 kB / 465.4 MB, free: 12.88 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.000215/0.2767, allocations: 172.6 kB / 465.6 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.061e-05/0.2767, allocations: 17.08 kB / 465.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.933e-05/0.2768, allocations: 19.16 kB / 465.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.2768, allocations: 5.156 kB / 465.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.2768, allocations: 1 kB / 465.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.2768, allocations: 7.984 kB / 465.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009942/0.2778, allocations: 0.6929 MB / 466.3 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.978e-06/0.2778, allocations: 3.984 kB / 466.3 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001952/0.278, allocations: 45.16 kB / 466.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.278, allocations: 1.188 kB / 466.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.327e-05/0.278, allocations: 9.375 kB / 466.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.278, allocations: 5.125 kB / 466.4 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.278, allocations: 5.031 kB / 466.4 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006485/0.2786, allocations: 463.4 kB / 466.9 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.132e-05/0.2787, allocations: 93.45 kB / 466.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.543e-05/0.2787, allocations: 9.531 kB / 467 MB, free: 11.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001147/0.2789, allocations: 12.31 kB / 467 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.064e-05/0.2789, allocations: 19.42 kB / 467 MB, free: 11.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.508e-05/0.2789, allocations: 10.45 kB / 467 MB, free: 11.63 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.859e-05/0.279, allocations: 99.02 kB / 467.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.279, allocations: 0 / 467.1 MB, free: 11.54 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002972/0.2793, allocations: 54.88 kB / 467.1 MB, free: 11.54 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.0009319/0.2802, allocations: 1.019 MB / 468.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003685/0.2806, allocations: 238.4 kB / 468.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2806, allocations: 0 / 468.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001721/0.2808, allocations: 149.6 kB / 468.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002581/0.281, allocations: 23.81 kB / 468.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002843/0.2839, allocations: 2.403 MB / 471 MB, free: 8.383 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003924/0.2843, allocations: 0.7316 MB / 471.7 MB, free: 7.664 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.282e-05/0.2843, allocations: 18.22 kB / 471.7 MB, free: 7.656 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.66e-05/0.2844, allocations: 60.77 kB / 471.8 MB, free: 7.605 MB / 334.1 MB Notification: Performance of SimCode: time 8.81e-07/0.2844, allocations: 0 / 471.8 MB, free: 7.605 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02033/0.3047, allocations: 3.57 MB / 475.3 MB, free: 5.387 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8/8.305, allocations: 15.08 kB / 475.4 MB, free: 5.375 MB / 334.1 MB " [Timeout remaining time 652] (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: 10.72306623798795] Failed to read output from testmodel.py, exit status != 0: 8.42597450199537 8.440624365 8.168389785 Calling exit ...