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.0006791/0.0006791, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009922/0.001671, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0006951/0.0006951, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009161/0.001611, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.83/0.83, allocations: 158.6 MB / 171 MB, free: 2.59 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1626/0.9926, allocations: 49.5 MB / 220.5 MB, free: 1.449 MB / 218.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.02574/0.02574, allocations: 6.402 MB / 227.7 MB, free: 10.33 MB / 234.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.003386/0.02912, allocations: 2.169 MB / 229.8 MB, free: 8.152 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.483e-06/1.483e-06, allocations: 0 / 231 MB, free: 6.953 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.889e-06/1.137e-05, allocations: 6.312 kB / 231 MB, free: 6.945 MB / 234.7 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.001936/0.001947, allocations: 2.023 MB / 233.1 MB, free: 4.91 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.000293/0.00224, allocations: 243.1 kB / 233.3 MB, free: 4.672 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.101e-05/0.002291, allocations: 4 kB / 233.3 MB, free: 4.668 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 4.708e-05/0.002338, allocations: 27.72 kB / 233.3 MB, free: 4.641 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 5.482e-05/0.002393, allocations: 43.56 kB / 233.4 MB, free: 4.598 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001047/0.002498, allocations: 55.86 kB / 233.4 MB, free: 4.543 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001671/0.002665, allocations: 191.1 kB / 233.6 MB, free: 4.355 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.002792, allocations: 75.03 kB / 233.7 MB, free: 4.285 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001022/0.002894, allocations: 119.7 kB / 233.8 MB, free: 4.168 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.854e-05/0.002973, allocations: 59.86 kB / 233.9 MB, free: 4.109 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.684e-05/0.003, allocations: 16 kB / 233.9 MB, free: 4.094 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.177e-05/0.003021, allocations: 20 kB / 233.9 MB, free: 4.074 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 3.074e-05/0.003052, allocations: 31.88 kB / 233.9 MB, free: 4.043 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.035e-05/0.003112, allocations: 55.92 kB / 234 MB, free: 3.988 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001482/0.003261, allocations: 119.5 kB / 234.1 MB, free: 3.871 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.222e-05/0.003273, allocations: 0 / 234.1 MB, free: 3.871 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.003274, allocations: 0 / 234.1 MB, free: 3.871 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.003286, allocations: 4 kB / 234.1 MB, free: 3.867 MB / 234.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.0004881/0.003774, allocations: 404.3 kB / 234.5 MB, free: 3.445 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.1e-05/0.003805, allocations: 11.89 kB / 234.5 MB, free: 3.434 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.672e-05/0.003842, allocations: 24.92 kB / 234.5 MB, free: 3.41 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.012e-05/0.003912, allocations: 125.6 kB / 234.7 MB, free: 3.262 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.436e-05/0.003926, allocations: 20.73 kB / 234.7 MB, free: 3.242 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.695e-05/0.003953, allocations: 20.36 kB / 234.7 MB, free: 3.223 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001193/0.004072, allocations: 127.3 kB / 234.8 MB, free: 3.094 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.004081, allocations: 192 / 234.8 MB, free: 3.094 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.076e-05/0.004092, allocations: 12.38 kB / 234.8 MB, free: 3.082 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.004097, allocations: 4.375 kB / 234.8 MB, free: 3.078 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.394e-05/0.004161, allocations: 51.66 kB / 234.9 MB, free: 3.027 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005282/0.004689, allocations: 495.3 kB / 235.4 MB, free: 2.508 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001494/0.004839, allocations: 102.5 kB / 235.5 MB, free: 2.398 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.724e-05/0.004916, allocations: 64.81 kB / 235.5 MB, free: 2.332 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.555e-06/0.004924, allocations: 4 kB / 235.5 MB, free: 2.328 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.295e-05/0.005017, allocations: 83.28 kB / 235.6 MB, free: 2.234 MB / 234.7 MB Notification: Performance of pre-optimization done (n=16): time 1.232e-06/0.005018, allocations: 0 / 235.6 MB, free: 2.234 MB / 234.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004449/0.005463, allocations: 341.7 kB / 236 MB, free: 1.867 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.655e-05/0.005489, allocations: 51.41 kB / 236 MB, free: 1.805 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.005653, allocations: 134.6 kB / 236.1 MB, free: 1.66 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.113e-05/0.005664, allocations: 33.7 kB / 236.2 MB, free: 1.621 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.596e-05/0.00571, allocations: 140.3 kB / 236.3 MB, free: 1.48 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.563e-05/0.005746, allocations: 67.41 kB / 236.4 MB, free: 1.414 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.955e-05/0.005786, allocations: 45.69 kB / 236.4 MB, free: 1.363 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.206e-05/0.005848, allocations: 322.8 kB / 236.7 MB, free: 1.039 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.951e-05/0.005867, allocations: 16 kB / 236.7 MB, free: 1.023 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.956e-05/0.005917, allocations: 94.75 kB / 236.8 MB, free: 0.9062 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.003e-05/0.005997, allocations: 114.7 kB / 237 MB, free: 0.7695 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.005998, allocations: 0 / 237 MB, free: 0.7695 MB / 234.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0001094/0.006107, allocations: 137.4 kB / 237.1 MB, free: 0.6289 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/0.006118, allocations: 4 kB / 237.1 MB, free: 0.625 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.006124, allocations: 8 kB / 237.1 MB, free: 0.6172 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.366e-06/0.006132, allocations: 4 kB / 237.1 MB, free: 0.6133 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000142/0.006274, allocations: 64.41 kB / 237.2 MB, free: 0.5508 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.00628, allocations: 7.938 kB / 237.2 MB, free: 0.543 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.227e-05/0.006312, allocations: 8 kB / 237.2 MB, free: 0.5352 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.145e-06/0.00632, allocations: 11.94 kB / 237.2 MB, free: 0.5234 MB / 234.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 6.085e-05/0.006381, allocations: 117.8 kB / 237.3 MB, free: 408 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.133e-05/0.006393, allocations: 15.94 kB / 237.3 MB, free: 392 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.991e-05/0.006422, allocations: 20.77 kB / 237.3 MB, free: 368 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.006424, allocations: 0 / 237.3 MB, free: 368 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-06/0.006425, allocations: 0 / 237.3 MB, free: 368 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.006428, allocations: 4 kB / 237.3 MB, free: 364 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002534/0.006682, allocations: 314.7 kB / 237.7 MB, free: 20 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.006683, allocations: 0 / 237.7 MB, free: 20 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000129/0.006812, allocations: 51.91 kB / 237.7 MB, free: 15.96 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.624e-06/0.00682, allocations: 7.953 kB / 237.7 MB, free: 15.96 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.006823, allocations: 7.938 kB / 237.7 MB, free: 15.95 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.00683, allocations: 3.938 kB / 237.7 MB, free: 15.95 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.983e-06/0.006832, allocations: 3.984 kB / 237.7 MB, free: 15.95 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.006833, allocations: 0 / 237.7 MB, free: 15.95 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000144/0.006977, allocations: 223.8 kB / 237.9 MB, free: 15.71 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.537e-05/0.006992, allocations: 11.94 kB / 238 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.639e-05/0.007029, allocations: 4 kB / 238 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.911e-05/0.007048, allocations: 11.97 kB / 238 MB, free: 15.68 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.007053, allocations: 0 / 238 MB, free: 15.68 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.442e-05/0.007067, allocations: 24.83 kB / 238 MB, free: 15.66 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007067, allocations: 0 / 238 MB, free: 15.66 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001388/0.007206, allocations: 40 kB / 238 MB, free: 15.62 MB / 250.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 5.891e-05/0.007265, allocations: 88.39 kB / 238.1 MB, free: 15.52 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 9.483e-05/0.00736, allocations: 88.8 kB / 238.2 MB, free: 15.43 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.007366, allocations: 4 kB / 238.2 MB, free: 15.43 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.857e-05/0.007405, allocations: 57.12 kB / 238.3 MB, free: 15.37 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001106/0.007516, allocations: 20 kB / 238.3 MB, free: 15.35 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.009741, allocations: 405 kB / 238.7 MB, free: 14.93 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.67e-05/0.009778, allocations: 75.83 kB / 238.8 MB, free: 14.83 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.484e-05/0.009813, allocations: 21.47 kB / 238.8 MB, free: 14.81 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.753e-05/0.00986, allocations: 67.38 kB / 238.8 MB, free: 14.75 MB / 250.7 MB Notification: Performance of SimCode: time 5.91e-07/0.009861, allocations: 4 kB / 238.9 MB, free: 14.74 MB / 250.7 MB Notification: Performance of Templates: time 0.002819/0.01268, allocations: 1.219 MB / 240.1 MB, free: 13.52 MB / 250.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.3787733921781182]