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.001218/0.001219, allocations: 116.4 kB / 16.37 MB, free: 6 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.001544/0.001544, allocations: 193.5 kB / 17.31 MB, free: 5.613 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.735/1.735, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04439/0.04439, allocations: 8.114 MB / 278.6 MB, free: 3.973 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.001512/0.001512, allocations: 67.91 kB / 338.6 MB, free: 7.855 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3252/0.3267, allocations: 48.28 MB / 386.9 MB, free: 51.54 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003376/0.3301, allocations: 1.949 MB / 388.9 MB, free: 50.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004974/0.3306, allocations: 228.5 kB / 389.1 MB, free: 50.04 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.976e-05/0.3307, allocations: 4.406 kB / 389.1 MB, free: 50.04 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.21e-05/0.3308, allocations: 25.91 kB / 389.1 MB, free: 50.03 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.3309, allocations: 44.62 kB / 389.2 MB, free: 50 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002522/0.3312, allocations: 54.39 kB / 389.2 MB, free: 49.96 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002355/0.3314, allocations: 193.3 kB / 389.4 MB, free: 49.87 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002629/0.3317, allocations: 106.6 kB / 389.5 MB, free: 49.82 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.043e-05/0.3318, allocations: 69 kB / 389.6 MB, free: 49.79 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.332, allocations: 82.12 kB / 389.7 MB, free: 49.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.918e-05/0.332, allocations: 20.5 kB / 389.7 MB, free: 49.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.944e-05/0.332, allocations: 17.75 kB / 389.7 MB, free: 49.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.996e-05/0.3321, allocations: 41.02 kB / 389.7 MB, free: 49.72 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.3322, allocations: 91.84 kB / 389.8 MB, free: 49.67 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002812/0.3325, allocations: 209.6 kB / 390 MB, free: 49.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3325, allocations: 1.812 kB / 390 MB, free: 49.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.3325, allocations: 0 / 390 MB, free: 49.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.3325, allocations: 0 / 390 MB, free: 49.59 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.0006922/0.3332, allocations: 468 kB / 390.5 MB, free: 49.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.3333, allocations: 9.969 kB / 390.5 MB, free: 49.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.834e-05/0.3334, allocations: 18.09 kB / 390.5 MB, free: 49.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.3335, allocations: 185.8 kB / 390.7 MB, free: 48.94 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/0.3335, allocations: 11.56 kB / 390.7 MB, free: 48.94 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.215e-05/0.3336, allocations: 23.47 kB / 390.7 MB, free: 48.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003236/0.3339, allocations: 169 kB / 390.9 MB, free: 48.85 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.3339, allocations: 192 / 390.9 MB, free: 48.85 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.11e-05/0.334, allocations: 13.41 kB / 390.9 MB, free: 48.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.334, allocations: 4.5 kB / 390.9 MB, free: 48.84 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000245/0.3342, allocations: 112.1 kB / 391 MB, free: 48.8 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/0.3353, allocations: 0.7013 MB / 391.7 MB, free: 48.27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000342/0.3357, allocations: 225.5 kB / 392 MB, free: 48.11 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002179/0.3359, allocations: 97.95 kB / 392 MB, free: 48.07 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.869e-05/0.3359, allocations: 1.344 kB / 392 MB, free: 48.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002078/0.3362, allocations: 95.14 kB / 392.1 MB, free: 48.01 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.683e-06/0.3362, allocations: 0 / 392.1 MB, free: 48.01 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008626/0.337, allocations: 0.5086 MB / 392.6 MB, free: 47.62 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/0.3371, allocations: 54.09 kB / 392.7 MB, free: 47.56 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.663e-05/0.3372, allocations: 126.9 kB / 392.8 MB, free: 47.45 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.454e-05/0.3372, allocations: 27.59 kB / 392.9 MB, free: 47.42 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.723e-05/0.3373, allocations: 136.7 kB / 393 MB, free: 47.3 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.11e-05/0.3373, allocations: 63.75 kB / 393 MB, free: 47.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.367e-05/0.3374, allocations: 47.45 kB / 393.1 MB, free: 47.21 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.131e-05/0.3374, allocations: 329.2 kB / 393.4 MB, free: 46.89 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.197e-05/0.3375, allocations: 50.25 kB / 393.5 MB, free: 46.87 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001183/0.3377, allocations: 102.6 kB / 393.6 MB, free: 46.79 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001982/0.3379, allocations: 170.6 kB / 393.7 MB, free: 46.67 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.3379, allocations: 1.469 kB / 393.7 MB, free: 46.67 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000277/0.3382, allocations: 210 kB / 393.9 MB, free: 46.57 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.3382, allocations: 7.141 kB / 393.9 MB, free: 46.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.3382, allocations: 2 kB / 393.9 MB, free: 46.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.92e-05/0.3382, allocations: 3.719 kB / 394 MB, free: 46.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001966/0.3384, allocations: 54.72 kB / 394 MB, free: 46.56 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.3384, allocations: 7.812 kB / 394 MB, free: 46.56 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.669e-05/0.3385, allocations: 6.938 kB / 394 MB, free: 46.55 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.608e-05/0.3385, allocations: 14.09 kB / 394 MB, free: 46.55 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.527e-05/0.3386, allocations: 131.7 kB / 394.2 MB, free: 46.42 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.142e-05/0.3387, allocations: 13.81 kB / 394.2 MB, free: 46.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.853e-05/0.3387, allocations: 15.89 kB / 394.2 MB, free: 46.4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.3387, allocations: 1.5 kB / 394.2 MB, free: 46.4 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.3387, allocations: 7.875 kB / 394.2 MB, free: 46.39 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.3388, allocations: 3.5 kB / 394.2 MB, free: 46.39 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006312/0.3394, allocations: 0.5082 MB / 394.7 MB, free: 46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3394, allocations: 0 / 394.7 MB, free: 46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001838/0.3396, allocations: 34.64 kB / 394.7 MB, free: 46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.277e-06/0.3396, allocations: 0.6562 kB / 394.7 MB, free: 46 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.658e-05/0.3396, allocations: 7.172 kB / 394.8 MB, free: 46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.865e-06/0.3396, allocations: 1.219 kB / 394.8 MB, free: 46 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3396, allocations: 0 / 394.8 MB, free: 46 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003726/0.34, allocations: 312.6 kB / 395.1 MB, free: 45.79 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.554e-05/0.3401, allocations: 84.38 kB / 395.1 MB, free: 45.69 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.595e-05/0.3401, allocations: 2.031 kB / 395.1 MB, free: 45.69 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.606e-05/0.3402, allocations: 5.375 kB / 395.1 MB, free: 45.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.446e-05/0.3402, allocations: 11.55 kB / 395.2 MB, free: 45.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/0.3402, allocations: 8.109 kB / 395.2 MB, free: 45.68 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.756e-05/0.3403, allocations: 99.47 kB / 395.3 MB, free: 45.6 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3403, allocations: 0 / 395.3 MB, free: 45.6 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002782/0.3406, allocations: 41 kB / 395.3 MB, free: 45.59 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 8.779e-05/0.3407, allocations: 106.2 kB / 395.4 MB, free: 45.49 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002354/0.3409, allocations: 132.4 kB / 395.5 MB, free: 45.45 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.3409, allocations: 1.375 kB / 395.5 MB, free: 45.45 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.994e-05/0.341, allocations: 58.88 kB / 395.6 MB, free: 45.43 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002352/0.3413, allocations: 9.938 kB / 395.6 MB, free: 45.43 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008559/0.3421, allocations: 0.5486 MB / 396.2 MB, free: 45.04 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002054/0.3424, allocations: 0.7311 MB / 396.9 MB, free: 44.34 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.343e-05/0.3424, allocations: 13.03 kB / 396.9 MB, free: 44.34 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.669e-05/0.3425, allocations: 16.88 kB / 396.9 MB, free: 44.33 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3425, allocations: 3.938 kB / 396.9 MB, free: 44.32 MB / 318.1 MB Notification: Performance of Templates: time 0.004058/0.3465, allocations: 1.098 MB / 398 MB, free: 44.24 MB / 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 -s cvode -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1)