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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) 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.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001971/0.001971, allocations: 180.2 kB / 16.12 MB, free: 5.566 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.388/1.388, allocations: 194.5 MB / 211.3 MB, free: 2.945 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03643/0.03643, allocations: 8.114 MB / 264.6 MB, free: 12.59 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001693/0.001694, allocations: 128 kB / 311.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00039/0.0003901, allocations: 8 kB / 368.5 MB, free: 4.496 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1989/0.1993, allocations: 46.2 MB / 414.7 MB, free: 65.9 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07663/0.276, allocations: 72.15 MB / 486.8 MB, free: 9.645 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001689/0.2762, allocations: 51.97 kB / 486.9 MB, free: 9.594 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006791/0.283, allocations: 2.65 MB / 489.5 MB, free: 6.945 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.283, allocations: 0 / 489.5 MB, free: 6.945 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.283, allocations: 4 kB / 489.5 MB, free: 6.941 MB / 330.7 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.0005963/0.2836, allocations: 435 kB / 490 MB, free: 6.465 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.2837, allocations: 8.031 kB / 490 MB, free: 6.457 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.69e-05/0.2838, allocations: 20.66 kB / 490 MB, free: 6.438 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001487/0.2839, allocations: 180.5 kB / 490.2 MB, free: 6.223 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.287e-05/0.284, allocations: 8.75 kB / 490.2 MB, free: 6.215 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.371e-05/0.284, allocations: 28.31 kB / 490.2 MB, free: 6.188 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003028/0.2843, allocations: 172.8 kB / 490.4 MB, free: 6.016 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.2843, allocations: 4.094 kB / 490.4 MB, free: 6.012 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.155e-05/0.2844, allocations: 11.94 kB / 490.4 MB, free: 6 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.746e-06/0.2844, allocations: 4 kB / 490.4 MB, free: 5.996 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002009/0.2846, allocations: 115.5 kB / 490.5 MB, free: 5.887 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001155/0.2858, allocations: 0.7065 MB / 491.2 MB, free: 5.109 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003386/0.2861, allocations: 231.5 kB / 491.4 MB, free: 4.855 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001885/0.2863, allocations: 96.62 kB / 491.5 MB, free: 4.762 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.2863, allocations: 4 kB / 491.5 MB, free: 4.758 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000198/0.2865, allocations: 95.31 kB / 491.6 MB, free: 4.652 MB / 330.7 MB Notification: Performance of pre-optimization done (n=16): time 1.713e-06/0.2866, allocations: 0 / 491.6 MB, free: 4.652 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.000916/0.2875, allocations: 0.5 MB / 492.1 MB, free: 4.102 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.095e-05/0.2876, allocations: 59.39 kB / 492.2 MB, free: 4.031 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.2877, allocations: 122 kB / 492.3 MB, free: 3.898 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.2877, allocations: 29.7 kB / 492.3 MB, free: 3.863 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.243e-05/0.2878, allocations: 132.1 kB / 492.5 MB, free: 3.73 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.232e-05/0.2878, allocations: 67.09 kB / 492.5 MB, free: 3.664 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.276e-06/0.2879, allocations: 4 kB / 492.5 MB, free: 3.66 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.288, allocations: 322.8 kB / 492.9 MB, free: 3.336 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.541e-05/0.2881, allocations: 47.98 kB / 492.9 MB, free: 3.289 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.2882, allocations: 104.3 kB / 493 MB, free: 3.164 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002422/0.2885, allocations: 166.6 kB / 493.2 MB, free: 2.977 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.2885, allocations: 4 kB / 493.2 MB, free: 2.973 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000309/0.2888, allocations: 209.2 kB / 493.4 MB, free: 2.762 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.678e-05/0.2888, allocations: 4 kB / 493.4 MB, free: 2.758 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.059e-05/0.2888, allocations: 4 kB / 493.4 MB, free: 2.754 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.2889, allocations: 0 / 493.4 MB, free: 2.754 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001862/0.289, allocations: 47.92 kB / 493.4 MB, free: 2.707 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.577e-05/0.2891, allocations: 7.984 kB / 493.4 MB, free: 2.699 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.938e-05/0.2891, allocations: 12.22 kB / 493.5 MB, free: 2.688 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.436e-05/0.2892, allocations: 12 kB / 493.5 MB, free: 2.676 MB / 330.7 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,$PRE.sampleHold.w,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001248/0.2893, allocations: 133.7 kB / 493.6 MB, free: 2.535 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.185e-05/0.2893, allocations: 11.84 kB / 493.6 MB, free: 2.523 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.095e-05/0.2894, allocations: 20.83 kB / 493.6 MB, free: 2.504 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2894, allocations: 0 / 493.6 MB, free: 2.504 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.606e-06/0.2894, allocations: 4 kB / 493.6 MB, free: 2.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.2894, allocations: 7.922 kB / 493.6 MB, free: 2.492 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006736/0.2901, allocations: 0.5177 MB / 494.2 MB, free: 1.918 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.2901, allocations: 0 / 494.2 MB, free: 1.918 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.2903, allocations: 39.92 kB / 494.2 MB, free: 1.879 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.2903, allocations: 0 / 494.2 MB, free: 1.879 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.777e-05/0.2903, allocations: 11.94 kB / 494.2 MB, free: 1.867 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.2903, allocations: 0 / 494.2 MB, free: 1.867 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.2903, allocations: 0 / 494.2 MB, free: 1.867 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003578/0.2907, allocations: 297.8 kB / 494.5 MB, free: 1.562 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.471e-05/0.2908, allocations: 92.86 kB / 494.6 MB, free: 1.453 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.403e-05/0.2908, allocations: 4 kB / 494.6 MB, free: 1.449 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.409e-05/0.2909, allocations: 8.031 kB / 494.6 MB, free: 1.441 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.49e-05/0.2909, allocations: 11.98 kB / 494.6 MB, free: 1.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.2909, allocations: 7.938 kB / 494.6 MB, free: 1.422 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.759e-05/0.291, allocations: 94.77 kB / 494.7 MB, free: 1.332 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.291, allocations: 4 kB / 494.7 MB, free: 1.328 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002792/0.2913, allocations: 44 kB / 494.8 MB, free: 1.285 MB / 330.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001476/0.2915, allocations: 103.2 kB / 494.9 MB, free: 1.172 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002364/0.2917, allocations: 131.8 kB / 495 MB, free: 1.043 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2917, allocations: 0 / 495 MB, free: 1.043 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.074e-05/0.2918, allocations: 51.92 kB / 495 MB, free: 0.9922 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000225/0.292, allocations: 12.44 kB / 495.1 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001088/0.2931, allocations: 0.6973 MB / 495.7 MB, free: 260 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.2934, allocations: 0.732 MB / 496.5 MB, free: 15.5 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.462e-05/0.2935, allocations: 13.42 kB / 496.5 MB, free: 15.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.482e-05/0.2936, allocations: 15.44 kB / 496.5 MB, free: 15.47 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2936, allocations: 0 / 496.5 MB, free: 15.47 MB / 346.7 MB Notification: Performance of Templates: time 0.003405/0.297, allocations: 1.011 MB / 497.5 MB, free: 14.46 MB / 346.7 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)