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.001317/0.001321, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009055/0.0009055, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.588/1.588, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03967/0.03967, allocations: 8.099 MB / 278.5 MB, free: 13.23 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.0005281/0.0005282, allocations: 16 kB / 338.2 MB, free: 27.06 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1015, allocations: 49.27 MB / 387.5 MB, free: 9.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.001911/0.1035, allocations: 1.498 MB / 389 MB, free: 8.23 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002964/0.1038, allocations: 155.6 kB / 389.2 MB, free: 8.078 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.886e-05/0.1039, allocations: 0 / 389.2 MB, free: 8.078 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.824e-05/0.1039, allocations: 23.84 kB / 389.2 MB, free: 8.055 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.055e-05/0.104, allocations: 39.91 kB / 389.2 MB, free: 8.016 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001433/0.1042, allocations: 31.95 kB / 389.2 MB, free: 7.984 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001453/0.1043, allocations: 115.8 kB / 389.4 MB, free: 7.871 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001638/0.1045, allocations: 65.73 kB / 389.4 MB, free: 7.805 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.332e-05/0.1046, allocations: 63.83 kB / 389.5 MB, free: 7.742 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.471e-05/0.1047, allocations: 51.78 kB / 389.5 MB, free: 7.691 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.207e-05/0.1047, allocations: 8 kB / 389.5 MB, free: 7.684 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.424e-05/0.1047, allocations: 8 kB / 389.6 MB, free: 7.676 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.41e-05/0.1048, allocations: 31.84 kB / 389.6 MB, free: 7.645 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.08e-05/0.1048, allocations: 53.64 kB / 389.6 MB, free: 7.586 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001429/0.1049, allocations: 143.8 kB / 389.8 MB, free: 7.445 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.554e-06/0.105, allocations: 0 / 389.8 MB, free: 7.445 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.105, allocations: 0 / 389.8 MB, free: 7.445 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.105, allocations: 0 / 389.8 MB, free: 7.445 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.0005344/0.1055, allocations: 426.8 kB / 390.2 MB, free: 6.98 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.1056, allocations: 15.97 kB / 390.2 MB, free: 6.965 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.062e-05/0.1056, allocations: 15.81 kB / 390.2 MB, free: 6.949 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.1058, allocations: 182.9 kB / 390.4 MB, free: 6.73 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.1058, allocations: 15.95 kB / 390.4 MB, free: 6.715 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.683e-05/0.1058, allocations: 20 kB / 390.4 MB, free: 6.695 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002767/0.1061, allocations: 145.6 kB / 390.6 MB, free: 6.547 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.1062, allocations: 7.938 kB / 390.6 MB, free: 6.539 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.8e-05/0.1062, allocations: 8 kB / 390.6 MB, free: 6.531 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.715e-06/0.1062, allocations: 4 kB / 390.6 MB, free: 6.527 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001684/0.1064, allocations: 103.9 kB / 390.7 MB, free: 6.426 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009492/0.1073, allocations: 0.6831 MB / 391.4 MB, free: 5.676 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003777/0.1077, allocations: 227.6 kB / 391.6 MB, free: 5.426 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.074e-05/0.1077, allocations: 4 kB / 391.6 MB, free: 5.422 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.1078, allocations: 38.56 kB / 391.6 MB, free: 5.375 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.1078, allocations: 0 / 391.6 MB, free: 5.375 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008743/0.1087, allocations: 485.1 kB / 392.1 MB, free: 4.855 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.1087, allocations: 63.33 kB / 392.2 MB, free: 4.781 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.959e-05/0.1088, allocations: 125.6 kB / 392.3 MB, free: 4.648 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/0.1088, allocations: 25.7 kB / 392.3 MB, free: 4.617 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.749e-05/0.1089, allocations: 132.1 kB / 392.5 MB, free: 4.484 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.549e-05/0.109, allocations: 59.19 kB / 392.5 MB, free: 4.426 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.214e-06/0.109, allocations: 8 kB / 392.5 MB, free: 4.418 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.1091, allocations: 322.8 kB / 392.8 MB, free: 4.094 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.752e-05/0.1092, allocations: 39.98 kB / 392.9 MB, free: 4.055 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.553e-05/0.1093, allocations: 86.22 kB / 393 MB, free: 3.953 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.621e-05/0.1094, allocations: 56 kB / 393 MB, free: 3.898 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1094, allocations: 4 kB / 393 MB, free: 3.895 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002338/0.1096, allocations: 180.9 kB / 393.2 MB, free: 3.715 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.1096, allocations: 8 kB / 393.2 MB, free: 3.707 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.1097, allocations: 3.984 kB / 393.2 MB, free: 3.703 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.21e-05/0.1097, allocations: 7.938 kB / 393.2 MB, free: 3.695 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001715/0.1098, allocations: 48.08 kB / 393.3 MB, free: 3.648 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.1099, allocations: 7.938 kB / 393.3 MB, free: 3.641 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.039e-05/0.1099, allocations: 11.95 kB / 393.3 MB, free: 3.629 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.046e-05/0.1099, allocations: 4 kB / 393.3 MB, free: 3.625 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.511e-05/0.11, allocations: 129.8 kB / 393.4 MB, free: 3.488 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.039e-05/0.1101, allocations: 15.88 kB / 393.4 MB, free: 3.473 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.025e-05/0.1101, allocations: 16.84 kB / 393.4 MB, free: 3.457 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.013e-06/0.1101, allocations: 0 / 393.4 MB, free: 3.457 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1101, allocations: 0 / 393.4 MB, free: 3.457 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.1102, allocations: 8 kB / 393.5 MB, free: 3.449 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005305/0.1107, allocations: 486.6 kB / 393.9 MB, free: 2.918 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.1107, allocations: 0 / 393.9 MB, free: 2.918 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001917/0.1109, allocations: 43.92 kB / 394 MB, free: 2.875 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.1109, allocations: 0 / 394 MB, free: 2.875 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.235e-05/0.1109, allocations: 3.984 kB / 394 MB, free: 2.871 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.1109, allocations: 0 / 394 MB, free: 2.871 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.1109, allocations: 7.953 kB / 394 MB, free: 2.863 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003386/0.1113, allocations: 283.4 kB / 394.3 MB, free: 2.57 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.781e-05/0.1113, allocations: 92.92 kB / 394.4 MB, free: 2.461 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.1114, allocations: 0 / 394.4 MB, free: 2.461 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.118e-05/0.1115, allocations: 4 kB / 394.4 MB, free: 2.457 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.379e-05/0.1115, allocations: 11.98 kB / 394.4 MB, free: 2.445 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.175e-06/0.1115, allocations: 4 kB / 394.4 MB, free: 2.441 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.625e-05/0.1116, allocations: 91.27 kB / 394.5 MB, free: 2.352 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1116, allocations: 0 / 394.5 MB, free: 2.352 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002637/0.1118, allocations: 44 kB / 394.5 MB, free: 2.309 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 (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 9.765e-05/0.1119, allocations: 99.19 kB / 394.6 MB, free: 2.199 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002233/0.1122, allocations: 115.9 kB / 394.7 MB, free: 2.086 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.796e-06/0.1122, allocations: 0 / 394.7 MB, free: 2.086 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.03e-05/0.1123, allocations: 55.92 kB / 394.8 MB, free: 2.031 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001501/0.1124, allocations: 8 kB / 394.8 MB, free: 2.023 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009088/0.1133, allocations: 0.656 MB / 395.4 MB, free: 1.34 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.1136, allocations: 0.7282 MB / 396.2 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.088e-05/0.1137, allocations: 9.078 kB / 396.2 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.335e-05/0.1137, allocations: 15.44 kB / 396.2 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1137, allocations: 0 / 396.2 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of Templates: time 0.002923/0.1166, allocations: 0.8241 MB / 397 MB, free: 15.74 MB / 302.1 MB make -j1 -f ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: