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.00137/0.00137, allocations: 105.5 kB / 16.27 MB, free: 6.414 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.001434/0.001434, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.523/1.523, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04524/0.04524, allocations: 8.116 MB / 278.5 MB, free: 4.02 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.001787/0.001787, allocations: 63.91 kB / 337.9 MB, free: 8.559 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2762, allocations: 48.27 MB / 386.1 MB, free: 51.16 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.003101/0.2793, allocations: 1.944 MB / 388.1 MB, free: 49.82 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004556/0.2798, allocations: 232.8 kB / 388.3 MB, free: 49.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.705e-05/0.2799, allocations: 3.781 kB / 388.3 MB, free: 49.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.144e-05/0.28, allocations: 30.34 kB / 388.3 MB, free: 49.64 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.911e-05/0.2801, allocations: 46.53 kB / 388.4 MB, free: 49.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002528/0.2803, allocations: 45.5 kB / 388.4 MB, free: 49.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000191/0.2805, allocations: 195.3 kB / 388.6 MB, free: 49.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002236/0.2808, allocations: 97.44 kB / 388.7 MB, free: 49.45 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.01e-05/0.2808, allocations: 71.73 kB / 388.8 MB, free: 49.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.281, allocations: 81.95 kB / 388.9 MB, free: 49.37 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.131e-05/0.281, allocations: 17.84 kB / 388.9 MB, free: 49.37 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.988e-05/0.2811, allocations: 19.59 kB / 388.9 MB, free: 49.37 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.542e-05/0.2811, allocations: 43.47 kB / 389 MB, free: 49.34 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.985e-05/0.2812, allocations: 94.22 kB / 389 MB, free: 49.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002509/0.2815, allocations: 202.2 kB / 389.2 MB, free: 49.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2815, allocations: 0.5156 kB / 389.2 MB, free: 49.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.2815, allocations: 0 / 389.2 MB, free: 49.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.2815, allocations: 1.406 kB / 389.2 MB, free: 49.21 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.0006236/0.2821, allocations: 461.9 kB / 389.7 MB, free: 48.79 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.2822, allocations: 9.75 kB / 389.7 MB, free: 48.79 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.779e-05/0.2822, allocations: 18.27 kB / 389.7 MB, free: 48.78 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.617e-05/0.2823, allocations: 187.7 kB / 389.9 MB, free: 48.56 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/0.2824, allocations: 20.22 kB / 389.9 MB, free: 48.55 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.195e-05/0.2824, allocations: 19.19 kB / 389.9 MB, free: 48.55 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002892/0.2827, allocations: 166.9 kB / 390.1 MB, free: 48.47 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.2827, allocations: 3 kB / 390.1 MB, free: 48.47 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.112e-05/0.2828, allocations: 15.03 kB / 390.1 MB, free: 48.46 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.185e-06/0.2828, allocations: 4.281 kB / 390.1 MB, free: 48.46 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002118/0.283, allocations: 110 kB / 390.2 MB, free: 48.42 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009883/0.284, allocations: 0.703 MB / 390.9 MB, free: 47.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000341/0.2843, allocations: 233.5 kB / 391.2 MB, free: 47.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002075/0.2846, allocations: 91.98 kB / 391.3 MB, free: 47.69 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.245e-05/0.2846, allocations: 2.438 kB / 391.3 MB, free: 47.69 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002003/0.2848, allocations: 93.5 kB / 391.4 MB, free: 47.62 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 2.174e-06/0.2848, allocations: 0 / 391.4 MB, free: 47.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.0008626/0.2857, allocations: 0.5162 MB / 391.9 MB, free: 47.24 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/0.2857, allocations: 59.17 kB / 391.9 MB, free: 47.17 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.946e-05/0.2858, allocations: 120.4 kB / 392 MB, free: 47.06 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.2858, allocations: 32.58 kB / 392.1 MB, free: 47.03 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.584e-05/0.2859, allocations: 130.5 kB / 392.2 MB, free: 46.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.185e-05/0.2859, allocations: 68.86 kB / 392.3 MB, free: 46.86 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.187e-05/0.286, allocations: 44.12 kB / 392.3 MB, free: 46.83 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.898e-05/0.2861, allocations: 326.6 kB / 392.6 MB, free: 46.51 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.199e-05/0.2862, allocations: 47.81 kB / 392.7 MB, free: 46.49 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001134/0.2863, allocations: 102.3 kB / 392.8 MB, free: 46.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001899/0.2865, allocations: 168.7 kB / 392.9 MB, free: 46.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.2865, allocations: 2.281 kB / 392.9 MB, free: 46.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002892/0.2868, allocations: 211.8 kB / 393.2 MB, free: 46.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.2868, allocations: 6.781 kB / 393.2 MB, free: 46.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.2868, allocations: 1.219 kB / 393.2 MB, free: 46.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.2868, allocations: 4.188 kB / 393.2 MB, free: 46.18 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002097/0.287, allocations: 53.88 kB / 393.2 MB, free: 46.18 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.105e-06/0.2871, allocations: 3.812 kB / 393.2 MB, free: 46.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.375e-05/0.2871, allocations: 7.703 kB / 393.2 MB, free: 46.17 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.2872, allocations: 10.53 kB / 393.2 MB, free: 46.17 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.091e-05/0.2872, allocations: 135.2 kB / 393.4 MB, free: 46.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.188e-05/0.2873, allocations: 13.75 kB / 393.4 MB, free: 46.03 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.316e-05/0.2873, allocations: 19.11 kB / 393.4 MB, free: 46.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.2873, allocations: 2.438 kB / 393.4 MB, free: 46.02 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.2873, allocations: 1.5 kB / 393.4 MB, free: 46.02 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.2873, allocations: 1.359 kB / 393.4 MB, free: 46.02 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005768/0.2879, allocations: 0.513 MB / 393.9 MB, free: 45.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.2879, allocations: 2.438 kB / 393.9 MB, free: 45.62 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001932/0.2881, allocations: 38.98 kB / 394 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.155e-06/0.2882, allocations: 5.031 kB / 394 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.2882, allocations: 6.641 kB / 394 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.2882, allocations: 1.719 kB / 394 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.2882, allocations: 0 / 394 MB, free: 45.61 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000335/0.2885, allocations: 302.9 kB / 394.3 MB, free: 45.4 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.727e-05/0.2886, allocations: 86.91 kB / 394.4 MB, free: 45.3 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.413e-05/0.2886, allocations: 6.781 kB / 394.4 MB, free: 45.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.599e-05/0.2887, allocations: 1.656 kB / 394.4 MB, free: 45.3 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.442e-05/0.2887, allocations: 8.938 kB / 394.4 MB, free: 45.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/0.2887, allocations: 11.5 kB / 394.4 MB, free: 45.29 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.626e-05/0.2888, allocations: 96.55 kB / 394.5 MB, free: 45.21 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2888, allocations: 0 / 394.5 MB, free: 45.21 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002792/0.2891, allocations: 42.34 kB / 394.5 MB, free: 45.21 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.146e-05/0.2892, allocations: 108.6 kB / 394.6 MB, free: 45.11 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002684/0.2894, allocations: 143.5 kB / 394.8 MB, free: 45.05 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.724e-06/0.2894, allocations: 0 / 394.8 MB, free: 45.05 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.961e-05/0.2895, allocations: 62.19 kB / 394.8 MB, free: 45.04 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002352/0.2898, allocations: 6.625 kB / 394.8 MB, free: 45.03 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008576/0.2906, allocations: 0.5789 MB / 395.4 MB, free: 44.61 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000176/0.2908, allocations: 0.7274 MB / 396.1 MB, free: 43.91 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.411e-05/0.2909, allocations: 17.06 kB / 396.2 MB, free: 43.91 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2909, allocations: 0 / 396.2 MB, free: 43.91 MB / 318.1 MB Notification: Performance of Templates: time 0.004228/0.2951, allocations: 1.716 MB / 397.9 MB, free: 43.78 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 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1)