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: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.001248/0.001248, allocations: 168.7 kB / 15.95 MB, free: 204 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.679/1.679, allocations: 205.4 MB / 222.1 MB, free: 5.875 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.03912/0.03912, allocations: 8.11 MB / 278.5 MB, free: 13.44 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.0005208/0.0005208, allocations: 12 kB / 338.4 MB, free: 26.95 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0984/0.09893, allocations: 49.29 MB / 387.7 MB, free: 9.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.Plant): time 0.002006/0.101, allocations: 1.557 MB / 389.2 MB, free: 8.039 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000286/0.1013, allocations: 147.5 kB / 389.4 MB, free: 7.895 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.314e-05/0.1014, allocations: 4 kB / 389.4 MB, free: 7.891 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.73e-05/0.1014, allocations: 11.86 kB / 389.4 MB, free: 7.879 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.33e-05/0.1015, allocations: 31.75 kB / 389.4 MB, free: 7.848 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001423/0.1017, allocations: 31.92 kB / 389.4 MB, free: 7.816 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001585/0.1018, allocations: 167.2 kB / 389.6 MB, free: 7.652 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.102, allocations: 57.86 kB / 389.7 MB, free: 7.594 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.542e-05/0.102, allocations: 63.78 kB / 389.7 MB, free: 7.531 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.675e-05/0.1021, allocations: 59.77 kB / 389.8 MB, free: 7.473 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.102e-05/0.1022, allocations: 8 kB / 389.8 MB, free: 7.465 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.357e-05/0.1022, allocations: 12 kB / 389.8 MB, free: 7.453 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.673e-05/0.1022, allocations: 27.91 kB / 389.8 MB, free: 7.426 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.486e-05/0.1023, allocations: 53.64 kB / 389.9 MB, free: 7.367 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001482/0.1025, allocations: 143.8 kB / 390 MB, free: 7.227 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1025, allocations: 3.938 kB / 390 MB, free: 7.223 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1025, allocations: 0 / 390 MB, free: 7.223 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.1025, allocations: 0 / 390 MB, free: 7.223 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.0004891/0.103, allocations: 426.8 kB / 390.4 MB, free: 6.758 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.232e-05/0.103, allocations: 8.031 kB / 390.4 MB, free: 6.75 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.238e-05/0.1031, allocations: 54.55 kB / 390.5 MB, free: 6.688 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.562e-05/0.1031, allocations: 15.81 kB / 390.5 MB, free: 6.672 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000116/0.1032, allocations: 174.9 kB / 390.7 MB, free: 6.461 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/0.1033, allocations: 15.95 kB / 390.7 MB, free: 6.445 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.455e-05/0.1033, allocations: 20 kB / 390.7 MB, free: 6.426 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002565/0.1036, allocations: 153.6 kB / 390.9 MB, free: 6.27 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/0.1036, allocations: 0 / 390.9 MB, free: 6.27 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.507e-05/0.1036, allocations: 4 kB / 390.9 MB, free: 6.266 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.1036, allocations: 4 kB / 390.9 MB, free: 6.262 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001673/0.1038, allocations: 111.8 kB / 391 MB, free: 6.152 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009157/0.1047, allocations: 0.6871 MB / 391.7 MB, free: 5.398 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003679/0.1051, allocations: 227.6 kB / 391.9 MB, free: 5.148 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.1053, allocations: 92.58 kB / 392 MB, free: 5.059 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.08e-05/0.1053, allocations: 4 kB / 392 MB, free: 5.055 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/0.1053, allocations: 34.56 kB / 392 MB, free: 5.012 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.332e-06/0.1053, allocations: 3.938 kB / 392 MB, free: 5.008 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007423/0.1061, allocations: 485.7 kB / 392.5 MB, free: 4.484 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.554e-05/0.1061, allocations: 59.36 kB / 392.6 MB, free: 4.414 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.865e-05/0.1062, allocations: 117.8 kB / 392.7 MB, free: 4.289 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.726e-05/0.1062, allocations: 29.7 kB / 392.7 MB, free: 4.254 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.924e-05/0.1063, allocations: 128.1 kB / 392.8 MB, free: 4.125 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.775e-05/0.1064, allocations: 59.09 kB / 392.9 MB, free: 4.066 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.506e-06/0.1064, allocations: 11.94 kB / 392.9 MB, free: 4.055 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.1065, allocations: 318.8 kB / 393.2 MB, free: 3.734 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.879e-05/0.1066, allocations: 43.98 kB / 393.3 MB, free: 3.691 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.516e-05/0.1067, allocations: 90.22 kB / 393.3 MB, free: 3.586 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.044e-05/0.1068, allocations: 52 kB / 393.4 MB, free: 3.535 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.51e-07/0.1068, allocations: 0 / 393.4 MB, free: 3.535 MB / 286.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0002317/0.107, allocations: 181.4 kB / 393.6 MB, free: 3.352 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.1071, allocations: 6.656 kB / 393.6 MB, free: 3.348 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.1071, allocations: 4 kB / 393.6 MB, free: 3.344 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.1071, allocations: 4 kB / 393.6 MB, free: 3.34 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000166/0.1073, allocations: 43.92 kB / 393.6 MB, free: 3.297 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.1073, allocations: 3.953 kB / 393.6 MB, free: 3.293 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.319e-05/0.1073, allocations: 8 kB / 393.6 MB, free: 3.285 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.1073, allocations: 8 kB / 393.6 MB, free: 3.277 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 8.534e-05/0.1074, allocations: 133.9 kB / 393.8 MB, free: 3.137 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.806e-05/0.1075, allocations: 11.84 kB / 393.8 MB, free: 3.125 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.159e-05/0.1075, allocations: 20.84 kB / 393.8 MB, free: 3.105 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1075, allocations: 0 / 393.8 MB, free: 3.105 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.1075, allocations: 4 kB / 393.8 MB, free: 3.102 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.455e-06/0.1076, allocations: 7.953 kB / 393.8 MB, free: 3.094 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005559/0.1081, allocations: 494.2 kB / 394.3 MB, free: 2.555 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.1081, allocations: 3.984 kB / 394.3 MB, free: 2.551 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001688/0.1083, allocations: 43.91 kB / 394.4 MB, free: 2.508 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.1083, allocations: 4 kB / 394.4 MB, free: 2.504 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/0.1083, allocations: 7.891 kB / 394.4 MB, free: 2.496 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1083, allocations: 0 / 394.4 MB, free: 2.496 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.1083, allocations: 0 / 394.4 MB, free: 2.496 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002839/0.1086, allocations: 278.8 kB / 394.6 MB, free: 2.211 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.053e-05/0.1087, allocations: 81.02 kB / 394.7 MB, free: 2.113 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.062e-05/0.1087, allocations: 11.95 kB / 394.7 MB, free: 2.102 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.397e-05/0.1088, allocations: 0 / 394.7 MB, free: 2.102 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.413e-05/0.1088, allocations: 12.03 kB / 394.7 MB, free: 2.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.572e-06/0.1088, allocations: 4 kB / 394.7 MB, free: 2.086 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.331e-05/0.1089, allocations: 91.27 kB / 394.8 MB, free: 1.996 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1089, allocations: 3.938 kB / 394.8 MB, free: 1.992 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002562/0.1091, allocations: 36 kB / 394.9 MB, free: 1.957 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 0.0005445/0.1097, allocations: 0.8061 MB / 395.7 MB, free: 1.121 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001993/0.1099, allocations: 115.5 kB / 395.8 MB, free: 1.012 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1099, allocations: 0 / 395.8 MB, free: 1.012 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.333e-05/0.11, allocations: 56.23 kB / 395.8 MB, free: 0.957 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002313/0.1102, allocations: 12 kB / 395.9 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001515/0.1117, allocations: 1.124 MB / 397 MB, free: 15.74 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002671/0.112, allocations: 0.7204 MB / 397.7 MB, free: 15 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.469e-05/0.1121, allocations: 13.08 kB / 397.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.158e-05/0.1122, allocations: 43.42 kB / 397.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1122, allocations: 0 / 397.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01168/0.1239, allocations: 2.276 MB / 400 MB, free: 12.76 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001584/0.1241, allocations: 208.4 kB / 400.2 MB, free: 12.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.711/1.835, allocations: 0 / 400.2 MB, free: 12.52 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_Plant.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.Plant.pipe 2>&1) Environment - environmentSimulation: