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: "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold,fileNamePrefix="ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold",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.001089/0.001089, allocations: 99.7 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.001288/0.001288, allocations: 177.3 kB / 15.94 MB, free: 220 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.593/1.593, allocations: 205.4 MB / 222.1 MB, free: 5.668 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.0408/0.0408, allocations: 8.089 MB / 278.5 MB, free: 13.25 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.0005271/0.0005271, allocations: 12 kB / 338.3 MB, free: 26.97 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1044, allocations: 49.27 MB / 387.6 MB, free: 9.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.00215/0.1066, allocations: 1.541 MB / 389.1 MB, free: 8.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004884/0.1072, allocations: 239.3 kB / 389.4 MB, free: 7.855 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.524e-05/0.1072, allocations: 4 kB / 389.4 MB, free: 7.852 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.851e-05/0.1073, allocations: 23.84 kB / 389.4 MB, free: 7.828 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.724e-05/0.1074, allocations: 35.91 kB / 389.4 MB, free: 7.793 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002538/0.1077, allocations: 43.89 kB / 389.5 MB, free: 7.75 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001723/0.1079, allocations: 131.7 kB / 389.6 MB, free: 7.621 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/0.1081, allocations: 66.06 kB / 389.7 MB, free: 7.555 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.742e-05/0.1082, allocations: 59.84 kB / 389.7 MB, free: 7.496 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.1083, allocations: 67.69 kB / 389.8 MB, free: 7.43 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.146e-05/0.1083, allocations: 12 kB / 389.8 MB, free: 7.418 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.832e-05/0.1084, allocations: 8 kB / 389.8 MB, free: 7.41 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.668e-05/0.1084, allocations: 23.92 kB / 389.8 MB, free: 7.387 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.022e-05/0.1085, allocations: 61.58 kB / 389.9 MB, free: 7.32 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001709/0.1087, allocations: 147.8 kB / 390.1 MB, free: 7.176 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.1087, allocations: 0 / 390.1 MB, free: 7.176 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1087, allocations: 0 / 390.1 MB, free: 7.176 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.832e-06/0.1087, allocations: 4 kB / 390.1 MB, free: 7.172 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0007019/0.1094, allocations: 435.2 kB / 390.5 MB, free: 6.695 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.572e-05/0.1095, allocations: 12.03 kB / 390.5 MB, free: 6.684 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.619e-05/0.1096, allocations: 50.55 kB / 390.5 MB, free: 6.625 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.175e-05/0.1096, allocations: 15.81 kB / 390.6 MB, free: 6.609 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/0.1098, allocations: 186.9 kB / 390.7 MB, free: 6.387 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.96e-05/0.1098, allocations: 12.33 kB / 390.8 MB, free: 6.375 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.892e-05/0.1099, allocations: 31.91 kB / 390.8 MB, free: 6.344 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003165/0.1102, allocations: 160.6 kB / 390.9 MB, free: 6.184 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.1102, allocations: 0 / 390.9 MB, free: 6.184 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.189e-05/0.1103, allocations: 4 kB / 390.9 MB, free: 6.18 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.1103, allocations: 7.938 kB / 391 MB, free: 6.172 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002019/0.1105, allocations: 115.6 kB / 391.1 MB, free: 6.059 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00108/0.1116, allocations: 0.7104 MB / 391.8 MB, free: 5.281 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003654/0.1119, allocations: 219.6 kB / 392 MB, free: 5.039 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.402e-05/0.112, allocations: 7.938 kB / 392 MB, free: 5.031 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002151/0.1122, allocations: 94.89 kB / 392.1 MB, free: 4.93 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.513e-06/0.1122, allocations: 0 / 392.1 MB, free: 4.93 MB / 286.1 MB Notification: Performance of matching and sorting (n=18): time 0.001046/0.1133, allocations: 0.5239 MB / 392.6 MB, free: 4.352 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.577e-05/0.1133, allocations: 55.31 kB / 392.7 MB, free: 4.285 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/0.1135, allocations: 126.6 kB / 392.8 MB, free: 4.152 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.1135, allocations: 33.7 kB / 392.8 MB, free: 4.113 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.441e-05/0.1136, allocations: 136 kB / 393 MB, free: 3.977 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.267e-05/0.1137, allocations: 67 kB / 393 MB, free: 3.91 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.977e-06/0.1137, allocations: 4 kB / 393 MB, free: 3.906 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.1138, allocations: 322.8 kB / 393.3 MB, free: 3.582 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.852e-05/0.1139, allocations: 43.98 kB / 393.4 MB, free: 3.539 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001185/0.114, allocations: 108 kB / 393.5 MB, free: 3.41 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001102/0.1141, allocations: 64.88 kB / 393.6 MB, free: 3.348 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.1142, allocations: 0 / 393.6 MB, free: 3.348 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002818/0.1144, allocations: 207.8 kB / 393.8 MB, free: 3.141 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.1145, allocations: 4 kB / 393.8 MB, free: 3.137 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.1145, allocations: 4 kB / 393.8 MB, free: 3.133 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.174e-05/0.1145, allocations: 8 kB / 393.8 MB, free: 3.125 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001979/0.1147, allocations: 51.91 kB / 393.8 MB, free: 3.074 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.1147, allocations: 7.891 kB / 393.8 MB, free: 3.066 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.757e-05/0.1148, allocations: 8 kB / 393.8 MB, free: 3.059 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.577e-05/0.1148, allocations: 12.22 kB / 393.8 MB, free: 3.047 MB / 286.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,$PRE.sampleHold.w,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001202/0.115, allocations: 137.9 kB / 394 MB, free: 2.902 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.654e-05/0.115, allocations: 7.906 kB / 394 MB, free: 2.895 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.718e-05/0.115, allocations: 20.78 kB / 394 MB, free: 2.875 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1151, allocations: 0 / 394 MB, free: 2.875 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.1151, allocations: 0 / 394 MB, free: 2.875 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.1151, allocations: 7.953 kB / 394 MB, free: 2.867 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005943/0.1157, allocations: 0.5022 MB / 394.5 MB, free: 2.309 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.1157, allocations: 0 / 394.5 MB, free: 2.309 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002095/0.1159, allocations: 47.86 kB / 394.6 MB, free: 2.262 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.464e-06/0.1159, allocations: 0 / 394.6 MB, free: 2.262 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.1159, allocations: 3.953 kB / 394.6 MB, free: 2.258 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1159, allocations: 4 kB / 394.6 MB, free: 2.254 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.116, allocations: 0 / 394.6 MB, free: 2.254 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003576/0.1163, allocations: 305.6 kB / 394.9 MB, free: 1.941 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.72e-05/0.1164, allocations: 89.02 kB / 395 MB, free: 1.836 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.489e-05/0.1164, allocations: 4 kB / 395 MB, free: 1.832 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.759e-05/0.1165, allocations: 7.984 kB / 395 MB, free: 1.824 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.104e-05/0.1165, allocations: 11.98 kB / 395 MB, free: 1.812 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.1166, allocations: 8.094 kB / 395 MB, free: 1.805 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.486e-05/0.1166, allocations: 99.2 kB / 395.1 MB, free: 1.707 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1166, allocations: 0 / 395.1 MB, free: 1.707 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002709/0.1169, allocations: 36 kB / 395.1 MB, free: 1.672 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.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 (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.0005921/0.1175, allocations: 0.8449 MB / 396 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002256/0.1177, allocations: 138.4 kB / 396.1 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1178, allocations: 0 / 396.1 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.504e-05/0.1178, allocations: 59.92 kB / 396.2 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001587/0.118, allocations: 8.766 kB / 396.2 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002009/0.12, allocations: 2.257 MB / 398.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/0.1203, allocations: 0.7243 MB / 399.2 MB, free: 13.51 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.501e-05/0.1204, allocations: 17.42 kB / 399.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.229e-05/0.1205, allocations: 47.36 kB / 399.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1205, allocations: 3.938 kB / 399.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01293/0.1334, allocations: 2.386 MB / 401.6 MB, free: 11.17 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002133/0.1337, allocations: 210.2 kB / 401.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.716/1.849, allocations: 0 / 401.8 MB, free: 10.93 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaByExample_ModelicaByExample_Components_SpeedMeasurement_Examples_PlantWithSampleHold.fmu > ModelicaByExample_ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold.pipe 2>&1) Environment - environmentSimulation: