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.007608/0.007608, allocations: 97.62 kB / 15.73 MB, free: 6.059 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.001698/0.001699, allocations: 196.8 kB / 16.68 MB, free: 5.977 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.449/1.449, allocations: 205.1 MB / 222.5 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04278/0.04278, allocations: 8.11 MB / 278 MB, free: 13.08 MB / 238.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.00138/0.00138, allocations: 71.89 kB / 386.7 MB, free: 9.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3404/0.3418, allocations: 48.29 MB / 435 MB, free: 7.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003043/0.3449, allocations: 1.944 MB / 436.9 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004546/0.3454, allocations: 232.2 kB / 437.2 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.619e-05/0.3454, allocations: 7.344 kB / 437.2 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.362e-05/0.3455, allocations: 25.94 kB / 437.2 MB, free: 6.266 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001032/0.3456, allocations: 50.28 kB / 437.2 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002504/0.3459, allocations: 57.64 kB / 437.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002235/0.3461, allocations: 188.5 kB / 437.5 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002195/0.3464, allocations: 97.86 kB / 437.6 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.642e-05/0.3464, allocations: 69.34 kB / 437.6 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001253/0.3466, allocations: 81.16 kB / 437.7 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.311e-05/0.3466, allocations: 17.72 kB / 437.7 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.811e-05/0.3467, allocations: 18.78 kB / 437.8 MB, free: 5.973 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.83e-05/0.3467, allocations: 48.19 kB / 437.8 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.855e-05/0.3468, allocations: 87.97 kB / 437.9 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002877/0.3471, allocations: 207.1 kB / 438.1 MB, free: 5.809 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.3471, allocations: 0 / 438.1 MB, free: 5.809 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3471, allocations: 0 / 438.1 MB, free: 5.809 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.3472, allocations: 1.094 kB / 438.1 MB, free: 5.809 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.0006292/0.3478, allocations: 460.6 kB / 438.5 MB, free: 5.383 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.3478, allocations: 13.31 kB / 438.6 MB, free: 5.379 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.491e-05/0.3479, allocations: 21.36 kB / 438.6 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.633e-05/0.348, allocations: 178.7 kB / 438.8 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.348, allocations: 16.41 kB / 438.8 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.17e-05/0.3481, allocations: 23 kB / 438.8 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003148/0.3484, allocations: 175.2 kB / 439 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.644e-05/0.3484, allocations: 192 / 439 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.443e-05/0.3485, allocations: 15.38 kB / 439 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.3485, allocations: 12.41 kB / 439 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.3487, allocations: 107.2 kB / 439.1 MB, free: 5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.3497, allocations: 0.6989 MB / 439.8 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003593/0.3501, allocations: 225.8 kB / 440 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002074/0.3503, allocations: 92.75 kB / 440.1 MB, free: 4.266 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.96e-05/0.3504, allocations: 8.984 kB / 440.1 MB, free: 4.258 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002138/0.3506, allocations: 97.7 kB / 440.2 MB, free: 4.188 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.443e-06/0.3506, allocations: 0 / 440.2 MB, free: 4.188 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0009403/0.3515, allocations: 0.5022 MB / 440.7 MB, free: 3.809 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.898e-05/0.3516, allocations: 54.22 kB / 440.8 MB, free: 3.746 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.3517, allocations: 129.1 kB / 440.9 MB, free: 3.629 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.538e-05/0.3517, allocations: 35.11 kB / 440.9 MB, free: 3.59 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.927e-05/0.3518, allocations: 135.8 kB / 441.1 MB, free: 3.469 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.929e-05/0.3519, allocations: 68.84 kB / 441.1 MB, free: 3.414 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.519e-05/0.352, allocations: 45.72 kB / 441.2 MB, free: 3.383 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.503e-05/0.352, allocations: 322 kB / 441.5 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.835e-05/0.3521, allocations: 45.05 kB / 441.5 MB, free: 3.051 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.3522, allocations: 112.3 kB / 441.6 MB, free: 2.957 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000251/0.3525, allocations: 164.6 kB / 441.8 MB, free: 2.836 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.3525, allocations: 0 / 441.8 MB, free: 2.836 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000344/0.3528, allocations: 209.4 kB / 442 MB, free: 2.73 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.989e-05/0.3529, allocations: 6.438 kB / 442 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.895e-06/0.3529, allocations: 2 kB / 442 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.3529, allocations: 2.719 kB / 442 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002256/0.3531, allocations: 58.28 kB / 442.1 MB, free: 2.719 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.406e-05/0.3532, allocations: 7.094 kB / 442.1 MB, free: 2.715 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.94e-05/0.3532, allocations: 7.031 kB / 442.1 MB, free: 2.711 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.3533, allocations: 7.25 kB / 442.1 MB, free: 2.711 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 9.688e-05/0.3534, allocations: 137 kB / 442.2 MB, free: 2.578 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.681e-05/0.3534, allocations: 12.73 kB / 442.2 MB, free: 2.57 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.586e-05/0.3535, allocations: 19.03 kB / 442.3 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/0.3535, allocations: 2.094 kB / 442.3 MB, free: 2.555 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.465e-06/0.3535, allocations: 4 kB / 442.3 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.3535, allocations: 7.219 kB / 442.3 MB, free: 2.547 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006249/0.3541, allocations: 0.5126 MB / 442.8 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3541, allocations: 0 / 442.8 MB, free: 2.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.3543, allocations: 37.89 kB / 442.8 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.3543, allocations: 1.375 kB / 442.8 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.3544, allocations: 8.844 kB / 442.8 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.3544, allocations: 1.375 kB / 442.8 MB, free: 2.137 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.3544, allocations: 8 kB / 442.8 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003573/0.3547, allocations: 299.5 kB / 443.1 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.087e-05/0.3548, allocations: 84.72 kB / 443.2 MB, free: 1.832 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.619e-05/0.3548, allocations: 6.938 kB / 443.2 MB, free: 1.828 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.445e-05/0.3549, allocations: 1.344 kB / 443.2 MB, free: 1.828 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.536e-05/0.3549, allocations: 12.59 kB / 443.2 MB, free: 1.824 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.254e-05/0.355, allocations: 12.34 kB / 443.2 MB, free: 1.816 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.883e-05/0.355, allocations: 97.5 kB / 443.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.355, allocations: 0 / 443.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003011/0.3553, allocations: 41.75 kB / 443.4 MB, free: 1.727 MB / 318.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.0001001/0.3554, allocations: 105.6 kB / 443.5 MB, free: 1.633 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002821/0.3557, allocations: 137.2 kB / 443.6 MB, free: 1.586 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3557, allocations: 0 / 443.6 MB, free: 1.586 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.3559, allocations: 60.8 kB / 443.7 MB, free: 1.566 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002402/0.3561, allocations: 15.75 kB / 443.7 MB, free: 1.555 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009218/0.357, allocations: 0.5423 MB / 444.2 MB, free: 1.152 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002157/0.3573, allocations: 0.7274 MB / 445 MB, free: 460 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.856e-05/0.3573, allocations: 13.02 kB / 445 MB, free: 460 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.434e-05/0.3574, allocations: 21.64 kB / 445 MB, free: 448 kB / 318.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3574, allocations: 0 / 445 MB, free: 448 kB / 318.1 MB Notification: Performance of Templates: time 0.00418/0.3616, allocations: 1.124 MB / 446.1 MB, free: 308 kB / 318.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)