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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) 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: translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 106.7 kB / 16.41 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 180.2 kB / 17.34 MB, free: 5.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.353/1.353, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04102/0.04102, allocations: 8.111 MB / 278.7 MB, free: 3.945 MB / 222.1 MB 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.001449/0.001449, allocations: 66.39 kB / 387.4 MB, free: 47.19 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09107/0.09253, allocations: 48.32 MB / 435.7 MB, free: 8.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.0025/0.09507, allocations: 1.938 MB / 437.6 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003835/0.09548, allocations: 243.3 kB / 437.8 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.153e-05/0.09556, allocations: 4 kB / 437.8 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.876e-05/0.09565, allocations: 27.72 kB / 437.9 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.204e-05/0.09574, allocations: 43.56 kB / 437.9 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002105/0.09595, allocations: 47.94 kB / 438 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001455/0.09611, allocations: 191.2 kB / 438.2 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001914/0.0963, allocations: 113.8 kB / 438.3 MB, free: 5.953 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.959e-05/0.09637, allocations: 67.8 kB / 438.3 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.462e-05/0.09647, allocations: 79.69 kB / 438.4 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.539e-05/0.0965, allocations: 20 kB / 438.4 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.439e-05/0.09653, allocations: 20 kB / 438.4 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.287e-05/0.09657, allocations: 39.84 kB / 438.5 MB, free: 5.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.039e-05/0.09664, allocations: 91.66 kB / 438.6 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.09681, allocations: 203.3 kB / 438.8 MB, free: 5.441 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.09682, allocations: 0 / 438.8 MB, free: 5.441 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.09683, allocations: 0 / 438.8 MB, free: 5.441 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.09684, allocations: 0 / 438.8 MB, free: 5.441 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0005551/0.0974, allocations: 467.3 kB / 439.2 MB, free: 4.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.09744, allocations: 12.03 kB / 439.2 MB, free: 4.918 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.381e-05/0.09749, allocations: 16.75 kB / 439.3 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.856e-05/0.09757, allocations: 180.2 kB / 439.4 MB, free: 4.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.09759, allocations: 12.75 kB / 439.4 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.862e-05/0.09764, allocations: 24.28 kB / 439.5 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002514/0.09789, allocations: 172.9 kB / 439.6 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.09792, allocations: 192 / 439.6 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.714e-05/0.09794, allocations: 15.81 kB / 439.7 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.321e-06/0.09795, allocations: 8 kB / 439.7 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001533/0.09811, allocations: 111.7 kB / 439.8 MB, free: 4.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008098/0.09892, allocations: 0.6987 MB / 440.5 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002768/0.09921, allocations: 219.6 kB / 440.7 MB, free: 3.336 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001633/0.09938, allocations: 96.75 kB / 440.8 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.646e-05/0.09941, allocations: 4 kB / 440.8 MB, free: 3.234 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001385/0.09955, allocations: 99.52 kB / 440.9 MB, free: 3.125 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.412e-06/0.09956, allocations: 0 / 440.9 MB, free: 3.125 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.000729/0.1003, allocations: 0.5068 MB / 441.4 MB, free: 2.57 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.93e-05/0.1003, allocations: 63.31 kB / 441.4 MB, free: 2.496 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.402e-05/0.1004, allocations: 129.8 kB / 441.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.147e-05/0.1004, allocations: 29.69 kB / 441.6 MB, free: 2.324 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.242e-05/0.1005, allocations: 128.1 kB / 441.7 MB, free: 2.195 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.203e-05/0.1005, allocations: 71 kB / 441.8 MB, free: 2.125 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.934e-05/0.1006, allocations: 45.7 kB / 441.8 MB, free: 2.074 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.664e-05/0.1006, allocations: 322.8 kB / 442.2 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.585e-05/0.1007, allocations: 43.98 kB / 442.2 MB, free: 1.707 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.6e-05/0.1008, allocations: 106.8 kB / 442.3 MB, free: 1.578 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001558/0.1009, allocations: 168.4 kB / 442.5 MB, free: 1.391 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1009, allocations: 4 kB / 442.5 MB, free: 1.387 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002187/0.1012, allocations: 205.2 kB / 442.7 MB, free: 1.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.26e-05/0.1012, allocations: 8.219 kB / 442.7 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.1012, allocations: 4 kB / 442.7 MB, free: 1.168 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.1012, allocations: 4 kB / 442.7 MB, free: 1.164 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001726/0.1014, allocations: 51.92 kB / 442.7 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.1014, allocations: 7.984 kB / 442.7 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.161e-05/0.1015, allocations: 11.91 kB / 442.8 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.065e-05/0.1015, allocations: 8 kB / 442.8 MB, free: 1.086 MB / 318.1 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.384e-05/0.1016, allocations: 133.7 kB / 442.9 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.552e-05/0.1016, allocations: 11.84 kB / 442.9 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.849e-05/0.1016, allocations: 20.84 kB / 442.9 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.1017, allocations: 4 kB / 442.9 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1017, allocations: 0 / 442.9 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1017, allocations: 3.984 kB / 442.9 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004452/0.1021, allocations: 0.4985 MB / 443.4 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.1021, allocations: 0 / 443.4 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001743/0.1023, allocations: 43.92 kB / 443.5 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1023, allocations: 0 / 443.5 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.1024, allocations: 8 kB / 443.5 MB, free: 308 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.1024, allocations: 3.938 kB / 443.5 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1024, allocations: 0 / 443.5 MB, free: 304 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002967/0.1027, allocations: 311.4 kB / 443.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.587e-05/0.1027, allocations: 81.02 kB / 443.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.53e-05/0.1028, allocations: 11.98 kB / 443.9 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.4e-05/0.1028, allocations: 0 / 443.9 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.855e-05/0.1029, allocations: 7.984 kB / 443.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.558e-05/0.1029, allocations: 15.94 kB / 443.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.449e-05/0.103, allocations: 95.27 kB / 444 MB, free: 15.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.743e-06/0.103, allocations: 0 / 444 MB, free: 15.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002701/0.1033, allocations: 43.94 kB / 444 MB, free: 15.71 MB / 334.1 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 0.0001039/0.1034, allocations: 107.3 kB / 444.1 MB, free: 15.6 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002424/0.1036, allocations: 131.8 kB / 444.3 MB, free: 15.47 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1036, allocations: 448 / 444.3 MB, free: 15.47 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.911e-05/0.1037, allocations: 59.92 kB / 444.3 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002262/0.1039, allocations: 15.94 kB / 444.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009501/0.1049, allocations: 0.5739 MB / 444.9 MB, free: 14.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002975/0.1052, allocations: 0.7279 MB / 445.7 MB, free: 14.03 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.25e-05/0.1053, allocations: 15.44 kB / 445.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1053, allocations: 0 / 445.7 MB, free: 14.02 MB / 334.1 MB Notification: Performance of Templates: time 0.003188/0.1085, allocations: 1.729 MB / 447.4 MB, free: 12.29 MB / 334.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.makefile (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=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1)