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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001379/0.001379, allocations: 106 kB / 16.45 MB, free: 6.445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 187.7 kB / 19.4 MB, free: 3.66 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.628/1.628, allocations: 207.6 MB / 229.8 MB, free: 4.238 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.05133/0.05133, allocations: 8.202 MB / 289.8 MB, free: 8.27 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.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.00221/0.00221, allocations: 76.41 kB / 405.2 MB, free: 1.453 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2836/0.2858, allocations: 50.89 MB / 456.1 MB, free: 3.789 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithPulseCounter): time 0.002775/0.2886, allocations: 1.996 MB / 458.1 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008402/0.2895, allocations: 0.6149 MB / 458.7 MB, free: 1.727 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.525e-05/0.2895, allocations: 2.719 kB / 458.7 MB, free: 1.727 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.333e-05/0.2896, allocations: 27.75 kB / 458.7 MB, free: 1.703 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001401/0.2898, allocations: 48.77 kB / 458.8 MB, free: 1.66 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002251/0.29, allocations: 59.38 kB / 458.8 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002525/0.2902, allocations: 227.8 kB / 459.1 MB, free: 1.473 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000173/0.2904, allocations: 75.98 kB / 459.1 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.2906, allocations: 84.66 kB / 459.2 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001249/0.2907, allocations: 96.88 kB / 459.3 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.267e-05/0.2907, allocations: 21.5 kB / 459.3 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.569e-05/0.2908, allocations: 21.62 kB / 459.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.974e-05/0.2908, allocations: 37.17 kB / 459.4 MB, free: 1.273 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.658e-05/0.2909, allocations: 101.5 kB / 459.5 MB, free: 1.207 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002265/0.2911, allocations: 234.5 kB / 459.7 MB, free: 1.031 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.2911, allocations: 1.344 kB / 459.7 MB, free: 1.031 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2911, allocations: 4 kB / 459.7 MB, free: 1.027 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.2911, allocations: 0 / 459.7 MB, free: 1.027 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.0006319/0.2918, allocations: 0.4982 MB / 460.2 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.2918, allocations: 17.14 kB / 460.2 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.051e-05/0.2918, allocations: 57.34 kB / 460.3 MB, free: 484 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.681e-05/0.2919, allocations: 23.08 kB / 460.3 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001035/0.292, allocations: 186.6 kB / 460.5 MB, free: 252 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.798e-05/0.292, allocations: 17.25 kB / 460.5 MB, free: 244 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.326e-05/0.2921, allocations: 27.39 kB / 460.6 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002738/0.2923, allocations: 187.8 kB / 460.7 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.2923, allocations: 0 / 460.7 MB, free: 112 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.856e-05/0.2924, allocations: 6.75 kB / 460.7 MB, free: 108 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/0.2924, allocations: 4.125 kB / 460.7 MB, free: 108 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001908/0.2926, allocations: 118.8 kB / 460.9 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.2938, allocations: 0.7198 MB / 461.6 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000392/0.2942, allocations: 226 kB / 461.8 MB, free: 15.24 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002264/0.2944, allocations: 98.98 kB / 461.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.244e-05/0.2944, allocations: 2.75 kB / 461.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003187/0.2947, allocations: 185.3 kB / 462.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.493e-06/0.2947, allocations: 1.375 kB / 462.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=25): time 0.001347/0.2961, allocations: 0.7979 MB / 462.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/0.2962, allocations: 142 kB / 463 MB, free: 14.24 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.2963, allocations: 138.1 kB / 463.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.2963, allocations: 32.45 kB / 463.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.2964, allocations: 139.6 kB / 463.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001063/0.2966, allocations: 90.09 kB / 463.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.784e-05/0.2966, allocations: 55.14 kB / 463.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.2968, allocations: 322.3 kB / 463.8 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001192/0.2969, allocations: 65.86 kB / 463.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.2971, allocations: 135.9 kB / 464 MB, free: 13.36 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003485/0.2975, allocations: 259.2 kB / 464.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.2975, allocations: 5.344 kB / 464.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004519/0.2979, allocations: 292.4 kB / 464.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.048e-05/0.2979, allocations: 37.23 kB / 464.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.544e-06/0.298, allocations: 2.781 kB / 464.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.298, allocations: 6.938 kB / 464.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002285/0.2982, allocations: 67 kB / 464.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.2982, allocations: 3.75 kB / 464.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.2983, allocations: 17.39 kB / 464.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.073e-05/0.2983, allocations: 13.56 kB / 464.7 MB, free: 12.91 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.0002339/0.2986, allocations: 173.2 kB / 464.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.344e-05/0.2986, allocations: 16.27 kB / 464.9 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.602e-05/0.2987, allocations: 22.61 kB / 464.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.2987, allocations: 2.25 kB / 464.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.2987, allocations: 1.188 kB / 464.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2987, allocations: 0 / 464.9 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.2997, allocations: 0.6996 MB / 465.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.2997, allocations: 1.219 kB / 465.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002014/0.2999, allocations: 49.14 kB / 465.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.2999, allocations: 1.562 kB / 465.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.617e-05/0.2999, allocations: 16.59 kB / 465.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.2999, allocations: 1.844 kB / 465.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3, allocations: 0 / 465.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006303/0.3006, allocations: 462.9 kB / 466.1 MB, free: 11.79 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.474e-05/0.3007, allocations: 93.27 kB / 466.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.056e-05/0.3007, allocations: 9.812 kB / 466.2 MB, free: 11.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001227/0.3008, allocations: 18.16 kB / 466.2 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.859e-05/0.3009, allocations: 13.52 kB / 466.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-05/0.3009, allocations: 14.56 kB / 466.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.455e-05/0.301, allocations: 95.39 kB / 466.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.301, allocations: 0 / 466.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003337/0.3013, allocations: 54.88 kB / 466.4 MB, free: 11.57 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.001016/0.3023, allocations: 1.01 MB / 467.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003969/0.3027, allocations: 234.4 kB / 467.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3027, allocations: 4.062 kB / 467.6 MB, free: 10.56 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001945/0.3029, allocations: 149.1 kB / 467.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.3032, allocations: 23.38 kB / 467.8 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00313/0.3063, allocations: 2.406 MB / 470.2 MB, free: 8.414 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.3067, allocations: 0.731 MB / 470.9 MB, free: 7.695 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.346e-05/0.3068, allocations: 13.89 kB / 471 MB, free: 7.691 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.3069, allocations: 57.17 kB / 471 MB, free: 7.645 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3069, allocations: 3.938 kB / 471 MB, free: 7.641 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02833/0.3352, allocations: 3.541 MB / 474.6 MB, free: 5.465 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.144/8.479, allocations: 3.438 kB / 474.6 MB, free: 5.465 MB / 334.1 MB " [Timeout remaining time 651] (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: 11.104435272980481] Failed to read output from testmodel.py, exit status != 0: 8.549341234844178 8.56558458 8.271420822 Calling exit ...