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.001191/0.001191, allocations: 104 kB / 16.41 MB, free: 6.504 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.001075/0.001075, allocations: 192.2 kB / 17.34 MB, free: 5.742 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.321/1.321, 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.04035/0.04035, allocations: 8.103 MB / 278.7 MB, free: 3.941 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.001429/0.001429, allocations: 71.67 kB / 387.4 MB, free: 47.22 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08977/0.09121, allocations: 48.3 MB / 435.7 MB, free: 8.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.002445/0.09369, allocations: 1.953 MB / 437.6 MB, free: 6.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003919/0.0941, allocations: 235.3 kB / 437.8 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.753e-05/0.09419, allocations: 4 kB / 437.8 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.919e-05/0.09426, allocations: 31.72 kB / 437.9 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.761e-05/0.09436, allocations: 47.55 kB / 437.9 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002064/0.09458, allocations: 43.95 kB / 438 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000157/0.09474, allocations: 199.2 kB / 438.2 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000188/0.09494, allocations: 101.8 kB / 438.3 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.594e-05/0.095, allocations: 67.78 kB / 438.3 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.056e-05/0.0951, allocations: 83.69 kB / 438.4 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.665e-05/0.09513, allocations: 20 kB / 438.4 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.644e-05/0.09516, allocations: 16 kB / 438.4 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.544e-05/0.0952, allocations: 47.83 kB / 438.5 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.166e-05/0.09528, allocations: 83.61 kB / 438.6 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000163/0.09544, allocations: 207.3 kB / 438.8 MB, free: 5.422 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.09546, allocations: 4 kB / 438.8 MB, free: 5.418 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.09546, allocations: 0 / 438.8 MB, free: 5.418 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.09548, allocations: 0 / 438.8 MB, free: 5.418 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.0005097/0.09599, allocations: 459.4 kB / 439.2 MB, free: 4.914 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.09604, allocations: 8.031 kB / 439.2 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.757e-05/0.09609, allocations: 16.75 kB / 439.3 MB, free: 4.891 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.023e-05/0.09617, allocations: 184.2 kB / 439.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.89e-05/0.0962, allocations: 24.73 kB / 439.5 MB, free: 4.648 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.523e-05/0.09624, allocations: 24.28 kB / 439.5 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002346/0.09648, allocations: 160.9 kB / 439.6 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.0965, allocations: 4.188 kB / 439.6 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.88e-05/0.09652, allocations: 11.94 kB / 439.7 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.09653, allocations: 7.938 kB / 439.7 MB, free: 4.441 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001491/0.09669, allocations: 111.7 kB / 439.8 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000798/0.09749, allocations: 0.7025 MB / 440.5 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002611/0.09776, allocations: 227.6 kB / 440.7 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000159/0.09793, allocations: 96.8 kB / 440.8 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.472e-05/0.09795, allocations: 0 / 440.8 MB, free: 3.211 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001488/0.09811, allocations: 103.5 kB / 440.9 MB, free: 3.098 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.263e-06/0.09812, allocations: 0 / 440.9 MB, free: 3.098 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.000703/0.09883, allocations: 0.5069 MB / 441.4 MB, free: 2.543 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.109e-05/0.09887, allocations: 55.31 kB / 441.5 MB, free: 2.477 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.304e-05/0.09894, allocations: 126 kB / 441.6 MB, free: 2.34 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.281e-05/0.09895, allocations: 33.7 kB / 441.6 MB, free: 2.301 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.186e-05/0.099, allocations: 132.1 kB / 441.7 MB, free: 2.168 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.136e-05/0.09904, allocations: 67.02 kB / 441.8 MB, free: 2.102 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.202e-05/0.0991, allocations: 41.7 kB / 441.8 MB, free: 2.055 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.389e-05/0.09915, allocations: 322.8 kB / 442.2 MB, free: 1.73 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.345e-05/0.09922, allocations: 43.98 kB / 442.2 MB, free: 1.688 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.984e-05/0.0993, allocations: 106.8 kB / 442.3 MB, free: 1.559 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001481/0.09946, allocations: 164.4 kB / 442.5 MB, free: 1.375 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.09946, allocations: 4 kB / 442.5 MB, free: 1.371 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002137/0.09968, allocations: 213.2 kB / 442.7 MB, free: 1.156 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.09971, allocations: 4 kB / 442.7 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.09972, allocations: 4 kB / 442.7 MB, free: 1.148 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.09973, allocations: 4 kB / 442.7 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.0999, allocations: 51.91 kB / 442.7 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.09992, allocations: 4 kB / 442.7 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.05e-05/0.09998, allocations: 12.12 kB / 442.8 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.938e-06/0.1, allocations: 12 kB / 442.8 MB, free: 1.066 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.574e-05/0.1001, allocations: 133.7 kB / 442.9 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.699e-05/0.1001, allocations: 15.84 kB / 442.9 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.746e-05/0.1001, allocations: 12.84 kB / 442.9 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.1002, allocations: 4 kB / 442.9 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.1002, allocations: 3.984 kB / 442.9 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.1002, allocations: 0 / 442.9 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000434/0.1006, allocations: 0.5063 MB / 443.4 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.1006, allocations: 0 / 443.4 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001661/0.1008, allocations: 39.86 kB / 443.5 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.1008, allocations: 4 kB / 443.5 MB, free: 292 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.1008, allocations: 7.984 kB / 443.5 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1008, allocations: 0 / 443.5 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1008, allocations: 4 kB / 443.5 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002886/0.1011, allocations: 300.7 kB / 443.8 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.411e-05/0.1012, allocations: 89.05 kB / 443.9 MB, free: 15.86 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.077e-05/0.1012, allocations: 4 kB / 443.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.542e-05/0.1013, allocations: 11.94 kB / 443.9 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.929e-05/0.1013, allocations: 7.984 kB / 443.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.1013, allocations: 7.938 kB / 443.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.822e-05/0.1014, allocations: 95.27 kB / 444 MB, free: 15.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1014, allocations: 4 kB / 444 MB, free: 15.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002631/0.1017, allocations: 36 kB / 444 MB, free: 15.69 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 9.426e-05/0.1018, allocations: 111.2 kB / 444.1 MB, free: 15.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002265/0.102, allocations: 134.6 kB / 444.3 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.102, allocations: 0 / 444.3 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 8.707e-05/0.1021, allocations: 59.92 kB / 444.3 MB, free: 15.39 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002427/0.1024, allocations: 7.938 kB / 444.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008745/0.1032, allocations: 0.59 MB / 444.9 MB, free: 14.76 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002753/0.1035, allocations: 0.72 MB / 445.7 MB, free: 14.01 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.063e-05/0.1036, allocations: 19.44 kB / 445.7 MB, free: 14 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1036, allocations: 4 kB / 445.7 MB, free: 13.99 MB / 334.1 MB Notification: Performance of Templates: time 0.003154/0.1067, allocations: 1.726 MB / 447.4 MB, free: 12.27 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)