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.008728/0.008728, allocations: 101.2 kB / 15.73 MB, free: 6.035 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.002419/0.002419, allocations: 190.2 kB / 16.67 MB, free: 5.973 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.727/1.727, allocations: 205.1 MB / 222.5 MB, free: 4.473 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.0451/0.0451, allocations: 8.117 MB / 278 MB, free: 13.05 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.001493/0.001493, allocations: 68.53 kB / 386.7 MB, free: 9.023 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3766/0.3781, allocations: 48.3 MB / 435 MB, free: 7.789 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003389/0.3815, allocations: 1.946 MB / 436.9 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004956/0.382, allocations: 228.9 kB / 437.2 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.75e-05/0.3821, allocations: 3.312 kB / 437.2 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.147e-05/0.3822, allocations: 24.94 kB / 437.2 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001052/0.3823, allocations: 42.83 kB / 437.2 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002507/0.3826, allocations: 53.09 kB / 437.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002507/0.3828, allocations: 189.4 kB / 437.5 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002555/0.3831, allocations: 104.2 kB / 437.6 MB, free: 6.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.536e-05/0.3832, allocations: 70.97 kB / 437.6 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001427/0.3834, allocations: 77.14 kB / 437.7 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.496e-05/0.3834, allocations: 22.58 kB / 437.7 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.39e-05/0.3835, allocations: 17.88 kB / 437.8 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.13e-05/0.3835, allocations: 40.03 kB / 437.8 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001033/0.3836, allocations: 89.73 kB / 437.9 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002693/0.3839, allocations: 207.2 kB / 438.1 MB, free: 5.809 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.3839, allocations: 1.375 kB / 438.1 MB, free: 5.809 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.507e-06/0.3839, allocations: 4 kB / 438.1 MB, free: 5.805 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.834e-06/0.3839, allocations: 4.688 kB / 438.1 MB, free: 5.801 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.000618/0.3846, allocations: 460.8 kB / 438.5 MB, free: 5.375 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.3846, allocations: 8.688 kB / 438.6 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.356e-05/0.3847, allocations: 18.08 kB / 438.6 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001018/0.3848, allocations: 182.6 kB / 438.8 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.3848, allocations: 16.56 kB / 438.8 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.065e-05/0.3849, allocations: 29.62 kB / 438.8 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003216/0.3852, allocations: 172.3 kB / 439 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.3852, allocations: 192 / 439 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.179e-05/0.3852, allocations: 10.97 kB / 439 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.3853, allocations: 8.344 kB / 439 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002069/0.3855, allocations: 107 kB / 439.1 MB, free: 5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.3866, allocations: 0.7027 MB / 439.8 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003567/0.387, allocations: 234.5 kB / 440 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002032/0.3872, allocations: 92.42 kB / 440.1 MB, free: 4.254 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.3872, allocations: 1.438 kB / 440.1 MB, free: 4.254 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002243/0.3875, allocations: 93.8 kB / 440.2 MB, free: 4.191 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.483e-06/0.3875, allocations: 4 kB / 440.2 MB, free: 4.188 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.000898/0.3884, allocations: 0.5013 MB / 440.7 MB, free: 3.809 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.249e-05/0.3884, allocations: 62.23 kB / 440.8 MB, free: 3.738 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.546e-05/0.3885, allocations: 125.4 kB / 440.9 MB, free: 3.625 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/0.3886, allocations: 27.77 kB / 440.9 MB, free: 3.594 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.236e-05/0.3886, allocations: 134.3 kB / 441.1 MB, free: 3.473 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.6e-05/0.3887, allocations: 60.55 kB / 441.1 MB, free: 3.426 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.727e-05/0.3888, allocations: 50.42 kB / 441.2 MB, free: 3.391 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.96e-05/0.3888, allocations: 324.9 kB / 441.5 MB, free: 3.07 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.561e-05/0.3889, allocations: 46.05 kB / 441.5 MB, free: 3.055 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001328/0.3891, allocations: 104.9 kB / 441.6 MB, free: 2.969 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002832/0.3894, allocations: 162.1 kB / 441.8 MB, free: 2.848 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3894, allocations: 1.375 kB / 441.8 MB, free: 2.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003493/0.3897, allocations: 211.1 kB / 442 MB, free: 2.738 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.148e-05/0.3898, allocations: 6.531 kB / 442 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.3898, allocations: 2.5 kB / 442 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.3898, allocations: 3.031 kB / 442 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002384/0.39, allocations: 46.25 kB / 442 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/0.3901, allocations: 8.25 kB / 442.1 MB, free: 2.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.784e-05/0.3901, allocations: 14.75 kB / 442.1 MB, free: 2.723 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.961e-05/0.3902, allocations: 11.88 kB / 442.1 MB, free: 2.719 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 0.0001001/0.3903, allocations: 138.6 kB / 442.2 MB, free: 2.582 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.351e-05/0.3903, allocations: 13.31 kB / 442.2 MB, free: 2.574 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.7e-05/0.3903, allocations: 16.05 kB / 442.2 MB, free: 2.562 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.3904, allocations: 2.062 kB / 442.2 MB, free: 2.562 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.3904, allocations: 0.5312 kB / 442.2 MB, free: 2.562 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.3904, allocations: 5.156 kB / 442.3 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006789/0.3911, allocations: 0.5123 MB / 442.8 MB, free: 2.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.3911, allocations: 5.375 kB / 442.8 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001851/0.3913, allocations: 35.2 kB / 442.8 MB, free: 2.156 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.3913, allocations: 5.031 kB / 442.8 MB, free: 2.152 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.3913, allocations: 5.094 kB / 442.8 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.3913, allocations: 1.094 kB / 442.8 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3913, allocations: 0 / 442.8 MB, free: 2.148 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003739/0.3917, allocations: 308.2 kB / 443.1 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.791e-05/0.3917, allocations: 87.77 kB / 443.2 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.239e-05/0.3918, allocations: 1.375 kB / 443.2 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.407e-05/0.3918, allocations: 5.375 kB / 443.2 MB, free: 1.836 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.449e-05/0.3919, allocations: 9.719 kB / 443.2 MB, free: 1.836 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.3919, allocations: 8.062 kB / 443.2 MB, free: 1.832 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.252e-05/0.3919, allocations: 100.5 kB / 443.3 MB, free: 1.746 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3919, allocations: 0 / 443.3 MB, free: 1.746 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002834/0.3922, allocations: 37 kB / 443.4 MB, free: 1.742 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 9.306e-05/0.3923, allocations: 114.4 kB / 443.5 MB, free: 1.641 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002663/0.3926, allocations: 131.4 kB / 443.6 MB, free: 1.602 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.3926, allocations: 3.938 kB / 443.6 MB, free: 1.598 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.3927, allocations: 58.83 kB / 443.7 MB, free: 1.578 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/0.393, allocations: 7.5 kB / 443.7 MB, free: 1.574 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/0.3941, allocations: 0.5583 MB / 444.2 MB, free: 1.156 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000258/0.3944, allocations: 0.724 MB / 445 MB, free: 468 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.751e-05/0.3944, allocations: 17.83 kB / 445 MB, free: 464 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.201e-05/0.3945, allocations: 16.44 kB / 445 MB, free: 456 kB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3945, allocations: 0 / 445 MB, free: 456 kB / 318.1 MB Notification: Performance of Templates: time 0.004677/0.3992, allocations: 1.125 MB / 446.1 MB, free: 316 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)