Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.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.001052/0.001052, 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.002057/0.002057, allocations: 173 kB / 23.02 MB, free: 1.543 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.9419/0.9419, allocations: 158.6 MB / 184.9 MB, free: 2.824 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.03163/0.03163, allocations: 6.411 MB / 243.6 MB, free: 8.723 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.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.475e-06/2.475e-06, allocations: 0 / 310.7 MB, free: 52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.231e-05/3.479e-05, allocations: 4.25 kB / 310.7 MB, free: 51.99 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.002553/0.002588, allocations: 1.989 MB / 312.7 MB, free: 50.7 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004918/0.00308, allocations: 237.8 kB / 313 MB, free: 50.54 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.911e-05/0.003149, allocations: 3.562 kB / 313 MB, free: 50.54 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.721e-05/0.003206, allocations: 20.88 kB / 313 MB, free: 50.53 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.584e-05/0.003292, allocations: 50.52 kB / 313 MB, free: 50.5 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002052/0.003497, allocations: 50.3 kB / 313.1 MB, free: 50.46 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001705/0.003668, allocations: 200.7 kB / 313.3 MB, free: 50.36 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.003828, allocations: 65.91 kB / 313.3 MB, free: 50.34 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.003952, allocations: 109.7 kB / 313.5 MB, free: 50.29 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.476e-05/0.004047, allocations: 62.8 kB / 313.5 MB, free: 50.27 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.983e-05/0.004076, allocations: 18.38 kB / 313.5 MB, free: 50.27 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.228e-05/0.004099, allocations: 21.91 kB / 313.6 MB, free: 50.27 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.895e-05/0.004128, allocations: 40.03 kB / 313.6 MB, free: 50.24 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.657e-05/0.004184, allocations: 64.58 kB / 313.7 MB, free: 50.21 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001539/0.004338, allocations: 131.3 kB / 313.8 MB, free: 50.15 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.00434, allocations: 0 / 313.8 MB, free: 50.15 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.004341, allocations: 0 / 313.8 MB, free: 50.15 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.004346, allocations: 1.531 kB / 313.8 MB, free: 50.15 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.000482/0.004828, allocations: 495.3 kB / 314.3 MB, free: 49.71 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.004863, allocations: 12.89 kB / 314.3 MB, free: 49.7 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.396e-05/0.004927, allocations: 31.45 kB / 314.3 MB, free: 49.69 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.611e-05/0.005003, allocations: 133.9 kB / 314.4 MB, free: 49.54 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.712e-05/0.00502, allocations: 13.52 kB / 314.5 MB, free: 49.54 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.487e-05/0.005055, allocations: 22.23 kB / 314.5 MB, free: 49.53 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001984/0.005254, allocations: 137.8 kB / 314.6 MB, free: 49.47 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.005268, allocations: 2.078 kB / 314.6 MB, free: 49.47 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.005282, allocations: 5.531 kB / 314.6 MB, free: 49.46 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.005293, allocations: 6.312 kB / 314.6 MB, free: 49.46 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001118/0.005405, allocations: 81.05 kB / 314.7 MB, free: 49.44 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006844/0.00609, allocations: 0.5998 MB / 315.3 MB, free: 48.97 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002077/0.006297, allocations: 122.4 kB / 315.4 MB, free: 48.91 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.006421, allocations: 76.84 kB / 315.5 MB, free: 48.89 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.967e-06/0.00643, allocations: 2.75 kB / 315.5 MB, free: 48.89 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00011/0.00654, allocations: 83.41 kB / 315.6 MB, free: 48.82 MB / 282.7 MB Notification: Performance of pre-optimization done (n=16): time 1.954e-06/0.006542, allocations: 3.938 kB / 315.6 MB, free: 48.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=18): time 0.000577/0.007119, allocations: 401.7 kB / 316 MB, free: 48.46 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.494e-05/0.007144, allocations: 52.81 kB / 316 MB, free: 48.4 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.684e-05/0.0072, allocations: 183.9 kB / 316.2 MB, free: 48.21 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.306e-06/0.007209, allocations: 30.27 kB / 316.2 MB, free: 48.18 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.173e-05/0.007251, allocations: 185.8 kB / 316.4 MB, free: 48 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.676e-05/0.007277, allocations: 68.94 kB / 316.5 MB, free: 47.93 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-05/0.007322, allocations: 54.52 kB / 316.5 MB, free: 47.88 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.21e-05/0.007364, allocations: 0.4971 MB / 317 MB, free: 47.37 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.86e-05/0.007403, allocations: 28.08 kB / 317.1 MB, free: 47.35 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.048e-05/0.007463, allocations: 109.5 kB / 317.2 MB, free: 47.21 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001058/0.007569, allocations: 151.2 kB / 317.3 MB, free: 47.03 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.007571, allocations: 0 / 317.3 MB, free: 47.03 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001589/0.00773, allocations: 180.7 kB / 317.5 MB, free: 46.85 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.007741, allocations: 4 kB / 317.5 MB, free: 46.85 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.007747, allocations: 4 kB / 317.5 MB, free: 46.84 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.007759, allocations: 4 kB / 317.5 MB, free: 46.84 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.007874, allocations: 56.06 kB / 317.6 MB, free: 46.79 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.007879, allocations: 8 kB / 317.6 MB, free: 46.78 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.502e-05/0.007914, allocations: 4 kB / 317.6 MB, free: 46.77 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.288e-06/0.007924, allocations: 12 kB / 317.6 MB, free: 46.76 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,sampleHold.w,$PRE.sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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 5.345e-05/0.007977, allocations: 164.5 kB / 317.7 MB, free: 46.59 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.525e-05/0.007992, allocations: 23.84 kB / 317.8 MB, free: 46.57 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.858e-05/0.008021, allocations: 16.78 kB / 317.8 MB, free: 46.55 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.008023, allocations: 2.016 kB / 317.8 MB, free: 46.55 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-06/0.008027, allocations: 7.938 kB / 317.8 MB, free: 46.54 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.00803, allocations: 3.984 kB / 317.8 MB, free: 46.54 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003074/0.008338, allocations: 458.1 kB / 318.2 MB, free: 46.05 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.008339, allocations: 0 / 318.2 MB, free: 46.05 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001001/0.008439, allocations: 39.86 kB / 318.3 MB, free: 46.01 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.008442, allocations: 0 / 318.3 MB, free: 46.01 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.008453, allocations: 8 kB / 318.3 MB, free: 46 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.008455, allocations: 3.984 kB / 318.3 MB, free: 46 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.008456, allocations: 0 / 318.3 MB, free: 46 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001905/0.008646, allocations: 317.8 kB / 318.6 MB, free: 45.67 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.538e-06/0.008656, allocations: 11.94 kB / 318.6 MB, free: 45.66 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.00867, allocations: 4 kB / 318.6 MB, free: 45.65 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.804e-05/0.008708, allocations: 4 kB / 318.6 MB, free: 45.65 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.532e-05/0.008733, allocations: 7.984 kB / 318.6 MB, free: 45.64 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.315e-06/0.008742, allocations: 8 kB / 318.6 MB, free: 45.63 MB / 282.7 MB Notification: Performance of sorting global known variables: time 2.535e-05/0.008767, allocations: 137.7 kB / 318.8 MB, free: 45.5 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008767, allocations: 0 / 318.8 MB, free: 45.5 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001739/0.008941, allocations: 40 kB / 318.8 MB, free: 45.46 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertia2.flange_a.phi,inertia2.w,inertia1.w,sampleHold.flange.phi) * Number of discrete variables: 2 ($whenCondition1,sampleHold.w) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 6.498e-05/0.009006, allocations: 111.2 kB / 318.9 MB, free: 45.34 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000142/0.009148, allocations: 107.8 kB / 319 MB, free: 45.23 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.203e-06/0.009149, allocations: 0 / 319 MB, free: 45.23 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.525e-05/0.009195, allocations: 55.03 kB / 319.1 MB, free: 45.18 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001543/0.009349, allocations: 15.94 kB / 319.1 MB, free: 45.16 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006863/0.01004, allocations: 466.4 kB / 319.6 MB, free: 44.69 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.993e-05/0.01007, allocations: 67.84 kB / 319.6 MB, free: 44.6 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 3.249e-05/0.0101, allocations: 17.48 kB / 319.6 MB, free: 44.59 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.135e-05/0.01013, allocations: 20.48 kB / 319.7 MB, free: 44.57 MB / 282.7 MB Notification: Performance of SimCode: time 7.12e-07/0.01013, allocations: 0 / 319.7 MB, free: 44.57 MB / 282.7 MB Notification: Performance of Templates: time 0.00275/0.01288, allocations: 1.05 MB / 320.7 MB, free: 43.56 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.makefile [Timeout 660] (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold -abortSlowSimulation -alarm=240 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.9697584537789226]