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.001185/0.001184, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001128/0.001128, allocations: 191.4 kB / 17.34 MB, free: 5.695 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.387/1.387, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04239/0.04239, allocations: 8.111 MB / 278.7 MB, free: 3.941 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.001469/0.001469, allocations: 67.44 kB / 387.3 MB, free: 47.2 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08467/0.08615, allocations: 48.32 MB / 435.7 MB, free: 8.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.002414/0.0886, allocations: 1.883 MB / 437.5 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002742/0.0889, allocations: 151.4 kB / 437.7 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.47e-05/0.08898, allocations: 0 / 437.7 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.615e-05/0.08905, allocations: 27.72 kB / 437.7 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.271e-05/0.08914, allocations: 39.64 kB / 437.8 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001524/0.08929, allocations: 47.94 kB / 437.8 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001383/0.08944, allocations: 171.2 kB / 438 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.08965, allocations: 97.69 kB / 438.1 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.56e-05/0.08971, allocations: 59.78 kB / 438.1 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.732e-05/0.08982, allocations: 75.7 kB / 438.2 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.349e-05/0.08984, allocations: 16 kB / 438.2 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.166e-05/0.08987, allocations: 20 kB / 438.2 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.846e-05/0.0899, allocations: 39.84 kB / 438.3 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.842e-05/0.08997, allocations: 83.66 kB / 438.4 MB, free: 5.863 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001603/0.09013, allocations: 187.3 kB / 438.5 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.09014, allocations: 0 / 438.5 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.09015, allocations: 0 / 438.5 MB, free: 5.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.352e-06/0.09016, allocations: 0 / 438.5 MB, free: 5.68 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0005058/0.09067, allocations: 447 kB / 439 MB, free: 5.191 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.09071, allocations: 12.03 kB / 439 MB, free: 5.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.082e-05/0.09076, allocations: 20.75 kB / 439 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.168e-05/0.09084, allocations: 180.1 kB / 439.2 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.09087, allocations: 16.38 kB / 439.2 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.846e-05/0.09091, allocations: 16.38 kB / 439.2 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002352/0.09115, allocations: 158.1 kB / 439.4 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.09117, allocations: 192 / 439.4 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.764e-05/0.09119, allocations: 23.88 kB / 439.4 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.09121, allocations: 4 kB / 439.4 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001398/0.09135, allocations: 99.91 kB / 439.5 MB, free: 4.629 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007504/0.09211, allocations: 0.6792 MB / 440.2 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003337/0.09245, allocations: 219.6 kB / 440.4 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001616/0.09262, allocations: 96.8 kB / 440.5 MB, free: 3.539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.223e-05/0.09264, allocations: 4 kB / 440.5 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.572e-05/0.09267, allocations: 30.56 kB / 440.5 MB, free: 3.496 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.193e-06/0.09267, allocations: 3.938 kB / 440.5 MB, free: 3.492 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0006299/0.09331, allocations: 485.4 kB / 441 MB, free: 2.969 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.513e-05/0.09334, allocations: 55.41 kB / 441 MB, free: 2.902 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.601e-05/0.09342, allocations: 125.7 kB / 441.2 MB, free: 2.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.598e-06/0.09343, allocations: 29.7 kB / 441.2 MB, free: 2.734 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.525e-05/0.09347, allocations: 128.1 kB / 441.3 MB, free: 2.602 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.771e-05/0.09351, allocations: 59.19 kB / 441.4 MB, free: 2.543 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.341e-05/0.09356, allocations: 41.62 kB / 441.4 MB, free: 2.496 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.892e-05/0.09361, allocations: 322.8 kB / 441.7 MB, free: 2.172 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.744e-05/0.09367, allocations: 39.98 kB / 441.8 MB, free: 2.133 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.424e-05/0.09375, allocations: 93 kB / 441.9 MB, free: 2.023 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001335/0.09389, allocations: 145 kB / 442 MB, free: 1.863 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.0939, allocations: 4 kB / 442 MB, free: 1.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0001909/0.0941, allocations: 179.5 kB / 442.2 MB, free: 1.68 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.09412, allocations: 8 kB / 442.2 MB, free: 1.672 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.09413, allocations: 3.984 kB / 442.2 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.09415, allocations: 4 kB / 442.2 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001526/0.09431, allocations: 43.98 kB / 442.2 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.09432, allocations: 7.938 kB / 442.3 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.069e-05/0.09438, allocations: 7.938 kB / 442.3 MB, free: 1.605 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.09439, allocations: 8 kB / 442.3 MB, free: 1.598 MB / 318.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 6.788e-05/0.09446, allocations: 129.9 kB / 442.4 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.92e-05/0.0945, allocations: 15.84 kB / 442.4 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.916e-05/0.09454, allocations: 16.83 kB / 442.4 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.09455, allocations: 0 / 442.4 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.09456, allocations: 4 kB / 442.4 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.09457, allocations: 7.875 kB / 442.4 MB, free: 1.418 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000431/0.095, allocations: 486.3 kB / 442.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.09502, allocations: 0 / 442.9 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001675/0.09519, allocations: 39.92 kB / 443 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.0952, allocations: 4 kB / 443 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.151e-05/0.09522, allocations: 7.984 kB / 443 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.09522, allocations: 0 / 443 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.09523, allocations: 0 / 443 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002245/0.09546, allocations: 275.3 kB / 443.2 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.04e-05/0.09549, allocations: 88.95 kB / 443.3 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.778e-05/0.09551, allocations: 4 kB / 443.3 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.582e-05/0.09558, allocations: 8 kB / 443.3 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.326e-05/0.09561, allocations: 8.031 kB / 443.3 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.461e-06/0.09562, allocations: 4 kB / 443.3 MB, free: 432 kB / 318.1 MB Notification: Performance of sorting global known variables: time 3.918e-05/0.09566, allocations: 99.64 kB / 443.4 MB, free: 332 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09567, allocations: 0 / 443.4 MB, free: 332 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002462/0.09592, allocations: 36 kB / 443.5 MB, free: 296 kB / 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.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 7.56e-05/0.096, allocations: 99.19 kB / 443.6 MB, free: 188 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001733/0.09618, allocations: 127.8 kB / 443.7 MB, free: 60 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.269e-06/0.0962, allocations: 0 / 443.7 MB, free: 60 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.187e-05/0.09625, allocations: 55.16 kB / 443.8 MB, free: 8 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002364/0.09649, allocations: 12.08 kB / 443.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008365/0.09734, allocations: 0.5421 MB / 444.3 MB, free: 15.42 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002508/0.0976, allocations: 0.7201 MB / 445 MB, free: 14.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.903e-05/0.09765, allocations: 19.38 kB / 445 MB, free: 14.66 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.09765, allocations: 0 / 445 MB, free: 14.66 MB / 334.1 MB Notification: Performance of Templates: time 0.002817/0.1005, allocations: 1.574 MB / 446.6 MB, free: 13.09 MB / 334.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)