Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.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.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") translateModel(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000973/0.000973, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001153/0.001153, allocations: 192.2 kB / 16.14 MB, free: 6.703 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.257/1.257, allocations: 205.1 MB / 222 MB, free: 4.734 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03748/0.03748, allocations: 8.11 MB / 277.4 MB, free: 13.38 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.001316/0.001316, allocations: 55.92 kB / 336.5 MB, free: 26.97 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08583/0.08715, allocations: 48.3 MB / 384.8 MB, free: 10.62 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.002926/0.09012, allocations: 1.953 MB / 386.8 MB, free: 8.656 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002668/0.09041, allocations: 147.5 kB / 386.9 MB, free: 8.512 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.596e-05/0.09047, allocations: 4 kB / 386.9 MB, free: 8.508 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.386e-05/0.09057, allocations: 19.91 kB / 386.9 MB, free: 8.488 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.104e-05/0.09066, allocations: 35.69 kB / 387 MB, free: 8.453 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001432/0.0908, allocations: 35.97 kB / 387 MB, free: 8.418 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000143/0.09095, allocations: 167.2 kB / 387.2 MB, free: 8.254 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001792/0.09114, allocations: 78.06 kB / 387.2 MB, free: 8.172 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.714e-05/0.0912, allocations: 55.86 kB / 387.3 MB, free: 8.117 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/0.09131, allocations: 79.61 kB / 387.4 MB, free: 8.039 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.425e-05/0.09134, allocations: 12 kB / 387.4 MB, free: 8.027 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.065e-05/0.09138, allocations: 19.94 kB / 387.4 MB, free: 8.008 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.363e-05/0.09142, allocations: 27.92 kB / 387.4 MB, free: 7.98 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.818e-05/0.0915, allocations: 75.66 kB / 387.5 MB, free: 7.906 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000178/0.09169, allocations: 183.6 kB / 387.7 MB, free: 7.727 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.0917, allocations: 0 / 387.7 MB, free: 7.727 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.09171, allocations: 0 / 387.7 MB, free: 7.727 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.668e-06/0.09172, allocations: 0 / 387.7 MB, free: 7.727 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0006145/0.09233, allocations: 451 kB / 388.1 MB, free: 7.234 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.09239, allocations: 12.03 kB / 388.1 MB, free: 7.223 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.431e-05/0.09245, allocations: 16.75 kB / 388.1 MB, free: 7.207 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001298/0.09259, allocations: 184.2 kB / 388.3 MB, free: 6.988 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.045e-05/0.09261, allocations: 12.38 kB / 388.3 MB, free: 6.977 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.664e-05/0.09265, allocations: 16.38 kB / 388.4 MB, free: 6.961 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002578/0.09292, allocations: 154.1 kB / 388.5 MB, free: 6.805 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.09294, allocations: 8.094 kB / 388.5 MB, free: 6.797 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.09296, allocations: 7.938 kB / 388.5 MB, free: 6.789 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.09298, allocations: 4 kB / 388.5 MB, free: 6.785 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001659/0.09315, allocations: 111.8 kB / 388.6 MB, free: 6.676 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008641/0.09402, allocations: 0.6715 MB / 389.3 MB, free: 5.938 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00036/0.09439, allocations: 227.6 kB / 389.5 MB, free: 5.688 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001784/0.09458, allocations: 88.83 kB / 389.6 MB, free: 5.598 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.988e-06/0.0946, allocations: 0 / 389.6 MB, free: 5.598 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.09463, allocations: 38.56 kB / 389.6 MB, free: 5.551 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 9.41e-07/0.09464, allocations: 0 / 389.6 MB, free: 5.551 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007242/0.09537, allocations: 493.7 kB / 390.1 MB, free: 5.02 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.59e-05/0.09542, allocations: 55.34 kB / 390.2 MB, free: 4.953 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.556e-05/0.09552, allocations: 121.8 kB / 390.3 MB, free: 4.824 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.09554, allocations: 25.7 kB / 390.3 MB, free: 4.793 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.564e-05/0.09562, allocations: 136.1 kB / 390.5 MB, free: 4.656 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.285e-05/0.09567, allocations: 55.11 kB / 390.5 MB, free: 4.602 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.328e-05/0.09573, allocations: 45.7 kB / 390.6 MB, free: 4.551 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.09585, allocations: 322.8 kB / 390.9 MB, free: 4.227 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.927e-05/0.09592, allocations: 43.98 kB / 390.9 MB, free: 4.184 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.783e-05/0.09603, allocations: 90.22 kB / 391 MB, free: 4.078 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001645/0.0962, allocations: 141.1 kB / 391.1 MB, free: 3.922 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-06/0.09621, allocations: 0 / 391.1 MB, free: 3.922 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002303/0.09644, allocations: 176.7 kB / 391.3 MB, free: 3.746 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.09647, allocations: 10.5 kB / 391.3 MB, free: 3.738 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.09648, allocations: 4 kB / 391.3 MB, free: 3.734 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.0965, allocations: 4 kB / 391.3 MB, free: 3.73 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001645/0.09667, allocations: 51.91 kB / 391.4 MB, free: 3.68 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.337e-06/0.09668, allocations: 8.062 kB / 391.4 MB, free: 3.672 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.28e-05/0.09674, allocations: 7.875 kB / 391.4 MB, free: 3.664 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.09676, allocations: 12 kB / 391.4 MB, free: 3.652 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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.756e-05/0.09685, allocations: 129.8 kB / 391.5 MB, free: 3.516 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.961e-05/0.09689, allocations: 7.906 kB / 391.5 MB, free: 3.508 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.173e-05/0.09693, allocations: 16.84 kB / 391.6 MB, free: 3.492 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.09694, allocations: 4 kB / 391.6 MB, free: 3.488 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.09694, allocations: 0 / 391.6 MB, free: 3.488 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.09695, allocations: 7.922 kB / 391.6 MB, free: 3.48 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005162/0.09747, allocations: 490.2 kB / 392.1 MB, free: 2.945 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.09749, allocations: 0 / 392.1 MB, free: 2.945 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000172/0.09767, allocations: 47.86 kB / 392.1 MB, free: 2.898 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.09768, allocations: 0 / 392.1 MB, free: 2.898 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.09769, allocations: 4 kB / 392.1 MB, free: 2.895 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.0977, allocations: 4 kB / 392.1 MB, free: 2.891 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.0977, allocations: 0 / 392.1 MB, free: 2.891 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002659/0.09797, allocations: 271.4 kB / 392.4 MB, free: 2.609 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.491e-05/0.09804, allocations: 88.98 kB / 392.5 MB, free: 2.504 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.263e-05/0.09807, allocations: 4 kB / 392.5 MB, free: 2.5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.085e-05/0.09814, allocations: 8 kB / 392.5 MB, free: 2.492 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.9e-05/0.09817, allocations: 11.92 kB / 392.5 MB, free: 2.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-06/0.09818, allocations: 4 kB / 392.5 MB, free: 2.477 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.157e-05/0.09824, allocations: 99.58 kB / 392.6 MB, free: 2.379 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09824, allocations: 0 / 392.6 MB, free: 2.379 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002533/0.0985, allocations: 40 kB / 392.6 MB, free: 2.34 MB / 286.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.flange_a.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 16 * 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 Backend phase and start with SimCode phase: time 8.104e-05/0.09859, allocations: 91.25 kB / 392.7 MB, free: 2.238 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001955/0.09879, allocations: 131.6 kB / 392.8 MB, free: 2.113 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.0988, allocations: 0 / 392.8 MB, free: 2.113 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.142e-05/0.09886, allocations: 51.92 kB / 392.9 MB, free: 2.062 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002167/0.09909, allocations: 7.938 kB / 392.9 MB, free: 2.055 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008062/0.0999, allocations: 0.5851 MB / 393.5 MB, free: 1.438 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002356/0.1001, allocations: 0.7204 MB / 394.2 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.133e-05/0.1002, allocations: 13.08 kB / 394.2 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.326e-05/0.1002, allocations: 15.44 kB / 394.2 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1002, allocations: 0 / 394.2 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of Templates: time 0.002755/0.103, allocations: 0.9373 MB / 395.2 MB, free: 15.73 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.makefile (rm -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; mkfifo ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe ; head -c 1048576 < ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe >> ../files/ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.sim & ./ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1)