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.0009876/0.0009876, allocations: 76.94 kB / 19.93 MB, free: 4.543 MB / 18.57 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.001093/0.001093, allocations: 172.9 kB / 23.36 MB, free: 1.125 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.898/0.898, allocations: 158.6 MB / 185.2 MB, free: 2.754 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.02816/0.02816, allocations: 6.419 MB / 244 MB, free: 8.609 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 1.593e-06/1.593e-06, allocations: 0 / 262.2 MB, free: 6.398 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.359e-05/1.518e-05, allocations: 2.312 kB / 262.2 MB, free: 6.395 MB / 250.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.002155/0.00217, allocations: 2.019 MB / 264.2 MB, free: 4.359 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000443/0.002613, allocations: 243.1 kB / 264.4 MB, free: 4.121 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.725e-05/0.00268, allocations: 4 kB / 264.4 MB, free: 4.117 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.008e-05/0.00273, allocations: 23.78 kB / 264.5 MB, free: 4.094 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.014e-05/0.002811, allocations: 43.56 kB / 264.5 MB, free: 4.051 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001721/0.002983, allocations: 59.8 kB / 264.6 MB, free: 3.992 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001386/0.003121, allocations: 195 kB / 264.7 MB, free: 3.801 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000128/0.003249, allocations: 63.08 kB / 264.8 MB, free: 3.742 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.003353, allocations: 111.8 kB / 264.9 MB, free: 3.633 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.521e-05/0.003438, allocations: 59.8 kB / 265 MB, free: 3.574 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.356e-05/0.003462, allocations: 20 kB / 265 MB, free: 3.555 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.819e-05/0.00348, allocations: 20 kB / 265 MB, free: 3.535 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.673e-05/0.003507, allocations: 39.89 kB / 265.1 MB, free: 3.496 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.706e-05/0.003554, allocations: 67.83 kB / 265.1 MB, free: 3.43 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001351/0.003689, allocations: 131.5 kB / 265.3 MB, free: 3.301 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.003691, allocations: 0 / 265.3 MB, free: 3.301 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.003692, allocations: 0 / 265.3 MB, free: 3.301 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.106e-06/0.003695, allocations: 0 / 265.3 MB, free: 3.301 MB / 250.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.0003677/0.004062, allocations: 364.7 kB / 265.6 MB, free: 2.918 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.914e-05/0.004092, allocations: 11.98 kB / 265.6 MB, free: 2.906 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.28e-05/0.004134, allocations: 28.91 kB / 265.6 MB, free: 2.879 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.523e-05/0.00421, allocations: 129.5 kB / 265.8 MB, free: 2.727 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.004226, allocations: 12.75 kB / 265.8 MB, free: 2.715 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.301e-05/0.004259, allocations: 24.38 kB / 265.8 MB, free: 2.691 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001208/0.00438, allocations: 120.2 kB / 265.9 MB, free: 2.57 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.739e-06/0.004389, allocations: 192 / 265.9 MB, free: 2.57 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.004399, allocations: 4.375 kB / 265.9 MB, free: 2.566 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.321e-06/0.004405, allocations: 12.25 kB / 265.9 MB, free: 2.555 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.034e-05/0.004466, allocations: 55.66 kB / 266 MB, free: 2.5 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005396/0.005005, allocations: 495.5 kB / 266.5 MB, free: 1.98 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001458/0.005151, allocations: 106.5 kB / 266.6 MB, free: 1.867 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.055e-05/0.005232, allocations: 52.83 kB / 266.6 MB, free: 1.812 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.066e-06/0.00524, allocations: 4 kB / 266.6 MB, free: 1.809 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.577e-05/0.005326, allocations: 79.34 kB / 266.7 MB, free: 1.719 MB / 250.7 MB Notification: Performance of pre-optimization done (n=16): time 1.042e-06/0.005327, allocations: 0 / 266.7 MB, free: 1.719 MB / 250.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004561/0.005783, allocations: 349 kB / 267.1 MB, free: 1.344 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.624e-05/0.005809, allocations: 55.41 kB / 267.1 MB, free: 1.277 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.945e-05/0.005868, allocations: 134.6 kB / 267.2 MB, free: 1.133 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.195e-05/0.00588, allocations: 29.7 kB / 267.3 MB, free: 1.098 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.856e-05/0.005929, allocations: 136.3 kB / 267.4 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.285e-05/0.005962, allocations: 67.42 kB / 267.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.255e-05/0.006004, allocations: 45.69 kB / 267.5 MB, free: 0.8438 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.953e-05/0.006074, allocations: 334.7 kB / 267.8 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.395e-05/0.006098, allocations: 19.98 kB / 267.9 MB, free: 500 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.386e-05/0.006152, allocations: 74.84 kB / 267.9 MB, free: 400 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.833e-05/0.00625, allocations: 122.6 kB / 268.1 MB, free: 252 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.006251, allocations: 0 / 268.1 MB, free: 252 kB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001192/0.00637, allocations: 133.4 kB / 268.2 MB, free: 112 kB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/0.006381, allocations: 8 kB / 268.2 MB, free: 104 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.006387, allocations: 3.984 kB / 268.2 MB, free: 100 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.006398, allocations: 4 kB / 268.2 MB, free: 96 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.006535, allocations: 59.91 kB / 268.3 MB, free: 36 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.277e-06/0.006538, allocations: 0 / 268.3 MB, free: 36 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.48e-05/0.006573, allocations: 16.16 kB / 268.3 MB, free: 20 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.006584, allocations: 19.94 kB / 268.3 MB, free: 0 / 250.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 7.35e-05/0.006657, allocations: 133.7 kB / 268.4 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.352e-05/0.006671, allocations: 8 kB / 268.4 MB, free: 15.85 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.606e-05/0.006697, allocations: 16.77 kB / 268.5 MB, free: 15.83 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.006699, allocations: 4 kB / 268.5 MB, free: 15.82 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.006701, allocations: 3.938 kB / 268.5 MB, free: 15.82 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.006704, allocations: 0 / 268.5 MB, free: 15.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002696/0.006974, allocations: 310.8 kB / 268.8 MB, free: 15.49 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.006975, allocations: 0 / 268.8 MB, free: 15.49 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001171/0.007092, allocations: 47.91 kB / 268.8 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.007093, allocations: 4 kB / 268.8 MB, free: 15.44 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.007108, allocations: 4 kB / 268.8 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.007112, allocations: 7.922 kB / 268.8 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.007113, allocations: 0 / 268.8 MB, free: 15.43 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001471/0.00726, allocations: 223.8 kB / 269 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.275e-06/0.007268, allocations: 7.953 kB / 269.1 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.007283, allocations: 7.938 kB / 269.1 MB, free: 15.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.952e-05/0.007322, allocations: 4 kB / 269.1 MB, free: 15.17 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.063e-05/0.007343, allocations: 15.97 kB / 269.1 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.27e-06/0.007348, allocations: 4 kB / 269.1 MB, free: 15.15 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.665e-05/0.007365, allocations: 24.83 kB / 269.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007365, allocations: 0 / 269.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001536/0.007518, allocations: 36 kB / 269.1 MB, free: 15.09 MB / 266.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.587e-05/0.007584, allocations: 84.36 kB / 269.2 MB, free: 15 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001067/0.007691, allocations: 96.72 kB / 269.3 MB, free: 14.9 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.007695, allocations: 4.438 kB / 269.3 MB, free: 14.9 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.929e-05/0.007734, allocations: 49.16 kB / 269.4 MB, free: 14.85 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001164/0.00785, allocations: 19.98 kB / 269.4 MB, free: 14.83 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006007/0.008451, allocations: 400.8 kB / 269.8 MB, free: 14.41 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.178e-05/0.008493, allocations: 71.83 kB / 269.9 MB, free: 14.32 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.596e-05/0.008529, allocations: 13.48 kB / 269.9 MB, free: 14.3 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.465e-05/0.008584, allocations: 67.38 kB / 269.9 MB, free: 14.24 MB / 266.7 MB Notification: Performance of SimCode: time 6.32e-07/0.008584, allocations: 0 / 269.9 MB, free: 14.24 MB / 266.7 MB Notification: Performance of Templates: time 0.002811/0.0114, allocations: 1.207 MB / 271.1 MB, free: 13.04 MB / 266.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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.626518721226603]