Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.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.001086/0.001086, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 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.0009997/0.0009997, allocations: 173 kB / 23.02 MB, free: 1.547 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.9505/0.9505, allocations: 158.6 MB / 184.9 MB, free: 2.918 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.02659/0.02659, allocations: 6.407 MB / 243.6 MB, free: 8.727 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: translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.404e-06/2.404e-06, allocations: 0 / 310.7 MB, free: 51.99 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.643e-05/3.883e-05, allocations: 6.469 kB / 310.7 MB, free: 51.99 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure): time 0.004317/0.004356, allocations: 2.01 MB / 312.8 MB, free: 50.69 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00146/0.005816, allocations: 0.5617 MB / 313.3 MB, free: 50.3 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001556/0.005972, allocations: 3.562 kB / 313.3 MB, free: 50.3 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.777e-05/0.00607, allocations: 31.36 kB / 313.4 MB, free: 50.29 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002389/0.006308, allocations: 46.45 kB / 313.4 MB, free: 50.25 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002984/0.006607, allocations: 56.75 kB / 313.5 MB, free: 50.22 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003364/0.006943, allocations: 223.5 kB / 313.7 MB, free: 50.11 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002793/0.007222, allocations: 66.66 kB / 313.7 MB, free: 50.08 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004263/0.007649, allocations: 132.5 kB / 313.9 MB, free: 50.02 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001612/0.00781, allocations: 62.83 kB / 313.9 MB, free: 50 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.149e-05/0.007861, allocations: 20.62 kB / 313.9 MB, free: 50 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.756e-05/0.007909, allocations: 20.62 kB / 314 MB, free: 50 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.493e-05/0.007964, allocations: 46.7 kB / 314 MB, free: 49.97 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.008072, allocations: 71.73 kB / 314.1 MB, free: 49.94 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002857/0.008358, allocations: 145.8 kB / 314.2 MB, free: 49.87 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.008364, allocations: 3 kB / 314.2 MB, free: 49.87 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.008366, allocations: 0 / 314.2 MB, free: 49.87 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.008374, allocations: 1.375 kB / 314.2 MB, free: 49.87 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.000822/0.009196, allocations: 0.5096 MB / 314.7 MB, free: 49.42 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.009239, allocations: 13.58 kB / 314.8 MB, free: 49.42 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.955e-05/0.009318, allocations: 40.53 kB / 314.8 MB, free: 49.4 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.009424, allocations: 132.1 kB / 314.9 MB, free: 49.25 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.482e-05/0.009449, allocations: 18.5 kB / 314.9 MB, free: 49.24 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.646e-05/0.009496, allocations: 22.47 kB / 315 MB, free: 49.23 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002395/0.009735, allocations: 153.1 kB / 315.1 MB, free: 49.17 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.009749, allocations: 1.281 kB / 315.1 MB, free: 49.17 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.009768, allocations: 10.05 kB / 315.1 MB, free: 49.16 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.285e-05/0.009781, allocations: 10.53 kB / 315.1 MB, free: 49.16 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001182/0.009899, allocations: 75.8 kB / 315.2 MB, free: 49.15 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008017/0.0107, allocations: 0.6172 MB / 315.8 MB, free: 48.69 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000245/0.01095, allocations: 144.9 kB / 316 MB, free: 48.55 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001241/0.01107, allocations: 79.64 kB / 316 MB, free: 48.47 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.224e-05/0.01108, allocations: 4 kB / 316 MB, free: 48.47 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001557/0.01124, allocations: 115.1 kB / 316.2 MB, free: 48.34 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 2.324e-06/0.01124, allocations: 0 / 316.2 MB, free: 48.34 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007505/0.01199, allocations: 0.5032 MB / 316.7 MB, free: 47.81 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.296e-05/0.01202, allocations: 55.41 kB / 316.7 MB, free: 47.74 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.948e-05/0.01209, allocations: 197.8 kB / 316.9 MB, free: 47.53 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/0.01211, allocations: 29.7 kB / 316.9 MB, free: 47.5 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.791e-05/0.01215, allocations: 187.1 kB / 317.1 MB, free: 47.31 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.102e-05/0.01218, allocations: 75.39 kB / 317.2 MB, free: 47.23 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.94e-05/0.01223, allocations: 67.3 kB / 317.3 MB, free: 47.16 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.297e-05/0.01228, allocations: 0.4923 MB / 317.8 MB, free: 46.66 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.696e-05/0.01232, allocations: 31.98 kB / 317.8 MB, free: 46.62 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.324e-05/0.0124, allocations: 133.3 kB / 317.9 MB, free: 46.45 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001438/0.01254, allocations: 192.7 kB / 318.1 MB, free: 46.23 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.01254, allocations: 0 / 318.1 MB, free: 46.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0001959/0.01274, allocations: 223.7 kB / 318.3 MB, free: 46.01 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.01275, allocations: 11.98 kB / 318.3 MB, free: 46 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.01276, allocations: 0 / 318.3 MB, free: 46 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.01278, allocations: 4 kB / 318.3 MB, free: 45.99 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.01291, allocations: 63.91 kB / 318.4 MB, free: 45.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.01292, allocations: 11.88 kB / 318.4 MB, free: 45.92 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.108e-05/0.01297, allocations: 8 kB / 318.4 MB, free: 45.91 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.01298, allocations: 16 kB / 318.4 MB, free: 45.89 MB / 282.7 MB Warning: Assuming fixed start value for the following 1 variables: intervalMeasure.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: 10 (intervalMeasure.last_time,$PRE.intervalMeasure.last_time,$PRE.intervalMeasure.w,intervalMeasure.w,intervalMeasure.prev_phi,$PRE.intervalMeasure.prev_phi,intervalMeasure.next_phi,$PRE.intervalMeasure.next_phi,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * 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.0001142/0.0131, allocations: 183.8 kB / 318.6 MB, free: 45.71 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.197e-05/0.01312, allocations: 27.89 kB / 318.6 MB, free: 45.68 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.261e-05/0.01315, allocations: 20.94 kB / 318.7 MB, free: 45.66 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.01315, allocations: 0 / 318.7 MB, free: 45.66 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.01316, allocations: 0 / 318.7 MB, free: 45.66 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.01316, allocations: 0 / 318.7 MB, free: 45.66 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004568/0.01362, allocations: 0.5551 MB / 319.2 MB, free: 45.05 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.01362, allocations: 8.062 kB / 319.2 MB, free: 45.04 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001106/0.01373, allocations: 35.98 kB / 319.3 MB, free: 45.01 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.01374, allocations: 0 / 319.3 MB, free: 45.01 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.01375, allocations: 11.98 kB / 319.3 MB, free: 45 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.01375, allocations: 3.938 kB / 319.3 MB, free: 44.99 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.01376, allocations: 4 kB / 319.3 MB, free: 44.99 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002648/0.01402, allocations: 391.8 kB / 319.7 MB, free: 44.58 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.266e-05/0.01403, allocations: 15.91 kB / 319.7 MB, free: 44.56 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.915e-05/0.01405, allocations: 4 kB / 319.7 MB, free: 44.56 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.186e-05/0.0141, allocations: 8 kB / 319.7 MB, free: 44.55 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.596e-05/0.01415, allocations: 27.91 kB / 319.7 MB, free: 44.52 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-05/0.01417, allocations: 11.98 kB / 319.7 MB, free: 44.51 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.981e-05/0.0142, allocations: 140.2 kB / 319.9 MB, free: 44.38 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0142, allocations: 0 / 319.9 MB, free: 44.38 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001867/0.01438, allocations: 48 kB / 319.9 MB, free: 44.33 MB / 282.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: 6 ($whenCondition2,$whenCondition1,intervalMeasure.w,intervalMeasure.next_phi,intervalMeasure.prev_phi,intervalMeasure.last_time) * Number of discrete states: 3 (intervalMeasure.prev_phi,intervalMeasure.next_phi,intervalMeasure.last_time) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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 8.342e-05/0.01447, allocations: 105 kB / 320 MB, free: 44.22 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000185/0.01465, allocations: 147.7 kB / 320.2 MB, free: 44.07 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.01465, allocations: 0 / 320.2 MB, free: 44.07 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 6.595e-05/0.01472, allocations: 76.88 kB / 320.2 MB, free: 43.99 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001893/0.01491, allocations: 17.8 kB / 320.2 MB, free: 43.98 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007607/0.01567, allocations: 0.4982 MB / 320.7 MB, free: 43.46 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.609e-05/0.01571, allocations: 83.92 kB / 320.8 MB, free: 43.36 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.705e-05/0.01574, allocations: 13.64 kB / 320.8 MB, free: 43.34 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.471e-05/0.01579, allocations: 28.5 kB / 320.9 MB, free: 43.32 MB / 282.7 MB Notification: Performance of SimCode: time 7.42e-07/0.01579, allocations: 0 / 320.9 MB, free: 43.32 MB / 282.7 MB Notification: Performance of Templates: time 0.003385/0.01917, allocations: 1.549 MB / 322.4 MB, free: 41.82 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.makefile [Timeout 660] (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure -abortSlowSimulation -alarm=240 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithIntervalMeasure.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.018064125906676]