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.001279/0.001279, allocations: 105 kB / 16.35 MB, free: 6.289 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.001227/0.001227, allocations: 193.5 kB / 17.29 MB, free: 5.859 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.31/1.31, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04184/0.04184, allocations: 8.12 MB / 278.6 MB, free: 3.949 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.001462/0.001462, allocations: 67.89 kB / 338.6 MB, free: 7.824 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2589, allocations: 48.27 MB / 386.9 MB, free: 51.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003207/0.2622, allocations: 1.942 MB / 388.9 MB, free: 50.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004437/0.2627, allocations: 236.3 kB / 389.1 MB, free: 50.01 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.321e-05/0.2628, allocations: 4.156 kB / 389.1 MB, free: 50.01 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.447e-05/0.2629, allocations: 26 kB / 389.1 MB, free: 50 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.45e-05/0.263, allocations: 43.25 kB / 389.2 MB, free: 49.96 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000243/0.2632, allocations: 55.92 kB / 389.2 MB, free: 49.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002054/0.2634, allocations: 192.9 kB / 389.4 MB, free: 49.84 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002362/0.2637, allocations: 102.9 kB / 389.5 MB, free: 49.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.004e-05/0.2637, allocations: 73.44 kB / 389.6 MB, free: 49.76 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.2639, allocations: 76.72 kB / 389.7 MB, free: 49.72 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.567e-05/0.2639, allocations: 19.12 kB / 389.7 MB, free: 49.72 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.522e-05/0.264, allocations: 18.03 kB / 389.7 MB, free: 49.72 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.608e-05/0.264, allocations: 45.42 kB / 389.7 MB, free: 49.69 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.947e-05/0.2641, allocations: 92.34 kB / 389.8 MB, free: 49.64 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002367/0.2644, allocations: 203.5 kB / 390 MB, free: 49.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2644, allocations: 0 / 390 MB, free: 49.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2644, allocations: 1.938 kB / 390 MB, free: 49.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.742e-06/0.2644, allocations: 0 / 390 MB, free: 49.57 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.0006035/0.265, allocations: 461.7 kB / 390.5 MB, free: 49.14 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.2651, allocations: 11.41 kB / 390.5 MB, free: 49.14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.405e-05/0.2651, allocations: 19.12 kB / 390.5 MB, free: 49.13 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.307e-05/0.2652, allocations: 186.9 kB / 390.7 MB, free: 48.92 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.463e-05/0.2652, allocations: 17.72 kB / 390.7 MB, free: 48.91 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.708e-05/0.2653, allocations: 19.67 kB / 390.7 MB, free: 48.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002968/0.2656, allocations: 166.3 kB / 390.9 MB, free: 48.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.2656, allocations: 1.125 kB / 390.9 MB, free: 48.82 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.2656, allocations: 15.88 kB / 390.9 MB, free: 48.81 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.2657, allocations: 5.75 kB / 390.9 MB, free: 48.81 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001887/0.2659, allocations: 110.9 kB / 391 MB, free: 48.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001004/0.2669, allocations: 0.7011 MB / 391.7 MB, free: 48.24 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003149/0.2672, allocations: 224.7 kB / 391.9 MB, free: 48.08 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00019/0.2674, allocations: 97.48 kB / 392 MB, free: 48.04 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.2674, allocations: 6.047 kB / 392 MB, free: 48.04 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002183/0.2676, allocations: 91.83 kB / 392.1 MB, free: 47.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.373e-06/0.2677, allocations: 0 / 392.1 MB, free: 47.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008338/0.2685, allocations: 0.5075 MB / 392.6 MB, free: 47.6 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.898e-05/0.2685, allocations: 55.64 kB / 392.7 MB, free: 47.54 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.566e-05/0.2686, allocations: 126.9 kB / 392.8 MB, free: 47.42 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.2687, allocations: 28.8 kB / 392.8 MB, free: 47.39 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.761e-05/0.2687, allocations: 142.3 kB / 393 MB, free: 47.26 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.288e-05/0.2688, allocations: 65.38 kB / 393 MB, free: 47.21 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.962e-05/0.2688, allocations: 41.34 kB / 393.1 MB, free: 47.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.221e-05/0.2689, allocations: 330.1 kB / 393.4 MB, free: 46.86 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.874e-05/0.269, allocations: 46.95 kB / 393.5 MB, free: 46.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001076/0.2691, allocations: 106.5 kB / 393.6 MB, free: 46.76 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001859/0.2693, allocations: 173.5 kB / 393.7 MB, free: 46.64 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/0.2693, allocations: 0 / 393.7 MB, free: 46.64 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000261/0.2696, allocations: 204.4 kB / 393.9 MB, free: 46.54 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.664e-05/0.2696, allocations: 6.719 kB / 393.9 MB, free: 46.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.2696, allocations: 5.078 kB / 393.9 MB, free: 46.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.2696, allocations: 7.625 kB / 393.9 MB, free: 46.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001895/0.2698, allocations: 53.91 kB / 394 MB, free: 46.53 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/0.2698, allocations: 7.984 kB / 394 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.472e-05/0.2699, allocations: 3.062 kB / 394 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.711e-05/0.2699, allocations: 11.34 kB / 394 MB, free: 46.52 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 8.27e-05/0.27, allocations: 137.4 kB / 394.2 MB, free: 46.39 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.012e-05/0.27, allocations: 13.27 kB / 394.2 MB, free: 46.38 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.215e-05/0.2701, allocations: 16.19 kB / 394.2 MB, free: 46.37 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.2701, allocations: 1.906 kB / 394.2 MB, free: 46.37 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.2701, allocations: 0.7031 kB / 394.2 MB, free: 46.37 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.2701, allocations: 5.469 kB / 394.2 MB, free: 46.37 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005423/0.2707, allocations: 0.5124 MB / 394.7 MB, free: 45.97 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.2707, allocations: 1.844 kB / 394.7 MB, free: 45.97 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002079/0.2709, allocations: 38.77 kB / 394.7 MB, free: 45.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.946e-06/0.2709, allocations: 1.375 kB / 394.7 MB, free: 45.96 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.2709, allocations: 2.094 kB / 394.7 MB, free: 45.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.2709, allocations: 1.375 kB / 394.7 MB, free: 45.96 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2709, allocations: 0.7031 kB / 394.7 MB, free: 45.96 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003319/0.2713, allocations: 310.3 kB / 395 MB, free: 45.75 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.159e-05/0.2713, allocations: 85.28 kB / 395.1 MB, free: 45.66 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.317e-05/0.2713, allocations: 3.125 kB / 395.1 MB, free: 45.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.568e-05/0.2714, allocations: 4 kB / 395.1 MB, free: 45.65 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.385e-05/0.2715, allocations: 10.03 kB / 395.1 MB, free: 45.65 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.213e-05/0.2715, allocations: 11.66 kB / 395.2 MB, free: 45.64 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.974e-05/0.2715, allocations: 93.61 kB / 395.3 MB, free: 45.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2715, allocations: 0 / 395.3 MB, free: 45.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002816/0.2718, allocations: 41.03 kB / 395.3 MB, free: 45.56 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.0001054/0.2719, allocations: 111.2 kB / 395.4 MB, free: 45.46 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000248/0.2722, allocations: 132.9 kB / 395.5 MB, free: 45.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.207e-06/0.2722, allocations: 1.281 kB / 395.5 MB, free: 45.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.703e-05/0.2723, allocations: 61.5 kB / 395.6 MB, free: 45.39 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002324/0.2725, allocations: 11.52 kB / 395.6 MB, free: 45.39 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007926/0.2733, allocations: 0.5466 MB / 396.1 MB, free: 45.01 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001431/0.2735, allocations: 0.7314 MB / 396.9 MB, free: 44.3 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.829e-05/0.2735, allocations: 14.56 kB / 396.9 MB, free: 44.3 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.81e-05/0.2736, allocations: 15.69 kB / 396.9 MB, free: 44.29 MB / 318.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2736, allocations: 1.375 kB / 396.9 MB, free: 44.29 MB / 318.1 MB Notification: Performance of Templates: time 0.003371/0.277, allocations: 1.09 MB / 398 MB, free: 44.22 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 gbode -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1)