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.0009682/0.0009683, allocations: 90.44 kB / 15.06 MB, free: 1.094 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.0009111/0.0009112, allocations: 172.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.579/1.579, 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.03945/0.03945, allocations: 8.113 MB / 278.5 MB, free: 13.21 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.0005175/0.0005176, allocations: 15.12 kB / 338.4 MB, free: 26.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09777/0.09829, allocations: 49.27 MB / 387.7 MB, free: 9.586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.002015/0.1004, allocations: 1.603 MB / 389.3 MB, free: 7.969 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003916/0.1008, allocations: 231.3 kB / 389.5 MB, free: 7.742 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.709e-05/0.1008, allocations: 4 kB / 389.5 MB, free: 7.738 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.008e-05/0.1009, allocations: 19.84 kB / 389.5 MB, free: 7.719 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.164e-05/0.101, allocations: 31.7 kB / 389.5 MB, free: 7.688 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001972/0.1012, allocations: 39.95 kB / 389.6 MB, free: 7.648 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001626/0.1014, allocations: 179.2 kB / 389.8 MB, free: 7.473 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001655/0.1015, allocations: 70.05 kB / 389.8 MB, free: 7.402 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.846e-05/0.1016, allocations: 59.78 kB / 389.9 MB, free: 7.344 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.9e-05/0.1017, allocations: 71.69 kB / 390 MB, free: 7.273 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.387e-05/0.1017, allocations: 8 kB / 390 MB, free: 7.266 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.482e-05/0.1018, allocations: 12 kB / 390 MB, free: 7.254 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.861e-05/0.1018, allocations: 23.92 kB / 390 MB, free: 7.23 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.668e-05/0.1019, allocations: 53.64 kB / 390 MB, free: 7.172 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001599/0.102, allocations: 155.8 kB / 390.2 MB, free: 7.02 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.034e-06/0.102, allocations: 4 kB / 390.2 MB, free: 7.016 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.102, allocations: 0 / 390.2 MB, free: 7.016 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.1021, allocations: 4 kB / 390.2 MB, free: 7.012 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.000563/0.1026, allocations: 435.1 kB / 390.6 MB, free: 6.535 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.515e-05/0.1027, allocations: 8.031 kB / 390.6 MB, free: 6.527 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.946e-05/0.1028, allocations: 58.48 kB / 390.7 MB, free: 6.461 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.145e-05/0.1028, allocations: 15.81 kB / 390.7 MB, free: 6.445 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001361/0.1029, allocations: 174.9 kB / 390.9 MB, free: 6.234 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.181e-05/0.103, allocations: 20.33 kB / 390.9 MB, free: 6.215 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.54e-05/0.103, allocations: 31.89 kB / 390.9 MB, free: 6.184 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002986/0.1033, allocations: 160.6 kB / 391.1 MB, free: 6.023 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.1034, allocations: 0 / 391.1 MB, free: 6.023 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/0.1034, allocations: 12 kB / 391.1 MB, free: 6.012 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.178e-06/0.1034, allocations: 4 kB / 391.1 MB, free: 6.008 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001797/0.1036, allocations: 103.7 kB / 391.2 MB, free: 5.906 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.1046, allocations: 0.7104 MB / 391.9 MB, free: 5.129 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003174/0.1049, allocations: 227.6 kB / 392.1 MB, free: 4.879 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/0.1051, allocations: 96.81 kB / 392.2 MB, free: 4.781 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.332e-05/0.1051, allocations: 0 / 392.2 MB, free: 4.781 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001942/0.1053, allocations: 91.17 kB / 392.3 MB, free: 4.684 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 3.646e-06/0.1054, allocations: 7.922 kB / 392.3 MB, free: 4.676 MB / 286.1 MB Notification: Performance of matching and sorting (n=18): time 0.000824/0.1062, allocations: 0.5085 MB / 392.8 MB, free: 4.113 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.237e-05/0.1062, allocations: 55.31 kB / 392.9 MB, free: 4.047 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.097e-05/0.1063, allocations: 130 kB / 393 MB, free: 3.906 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.1064, allocations: 29.7 kB / 393 MB, free: 3.871 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.563e-05/0.1064, allocations: 140 kB / 393.2 MB, free: 3.73 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.548e-05/0.1065, allocations: 67.02 kB / 393.3 MB, free: 3.664 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.717e-06/0.1065, allocations: 4 kB / 393.3 MB, free: 3.66 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.477e-05/0.1066, allocations: 326.8 kB / 393.6 MB, free: 3.332 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.203e-05/0.1067, allocations: 43.98 kB / 393.6 MB, free: 3.289 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001362/0.1068, allocations: 100 kB / 393.7 MB, free: 3.168 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.915e-05/0.1069, allocations: 64.92 kB / 393.8 MB, free: 3.105 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1069, allocations: 4 kB / 393.8 MB, free: 3.102 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002707/0.1072, allocations: 195.8 kB / 394 MB, free: 2.906 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.396e-05/0.1072, allocations: 7.984 kB / 394 MB, free: 2.898 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.1072, allocations: 4 kB / 394 MB, free: 2.895 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.1073, allocations: 8.219 kB / 394 MB, free: 2.887 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.1074, allocations: 55.88 kB / 394 MB, free: 2.832 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.1075, allocations: 4 kB / 394.1 MB, free: 2.828 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.031e-05/0.1075, allocations: 4 kB / 394.1 MB, free: 2.824 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.259e-05/0.1075, allocations: 8 kB / 394.1 MB, free: 2.816 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 9.582e-05/0.1077, allocations: 133.8 kB / 394.2 MB, free: 2.676 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.773e-05/0.1077, allocations: 11.91 kB / 394.2 MB, free: 2.664 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.764e-05/0.1077, allocations: 16.84 kB / 394.2 MB, free: 2.648 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.1077, allocations: 8 kB / 394.2 MB, free: 2.641 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.1077, allocations: 7.891 kB / 394.2 MB, free: 2.633 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.1078, allocations: 0 / 394.2 MB, free: 2.633 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005583/0.1083, allocations: 0.5099 MB / 394.7 MB, free: 2.066 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1083, allocations: 0 / 394.7 MB, free: 2.066 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/0.1085, allocations: 39.92 kB / 394.8 MB, free: 2.027 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.1085, allocations: 7.953 kB / 394.8 MB, free: 2.02 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.1086, allocations: 8 kB / 394.8 MB, free: 2.012 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.1086, allocations: 0 / 394.8 MB, free: 2.012 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1086, allocations: 0 / 394.8 MB, free: 2.012 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003173/0.1089, allocations: 297.8 kB / 395.1 MB, free: 1.707 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.198e-05/0.1089, allocations: 84.92 kB / 395.2 MB, free: 1.605 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.484e-05/0.109, allocations: 15.89 kB / 395.2 MB, free: 1.59 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.955e-05/0.109, allocations: 0 / 395.2 MB, free: 1.59 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.055e-05/0.1091, allocations: 16.03 kB / 395.2 MB, free: 1.574 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.297e-06/0.1091, allocations: 4 kB / 395.2 MB, free: 1.57 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.007e-05/0.1092, allocations: 99.02 kB / 395.3 MB, free: 1.477 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1092, allocations: 0 / 395.3 MB, free: 1.477 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002669/0.1094, allocations: 40 kB / 395.3 MB, free: 1.438 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.000508/0.1099, allocations: 0.8295 MB / 396.2 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002099/0.1102, allocations: 127.9 kB / 396.3 MB, free: 464 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1102, allocations: 0 / 396.3 MB, free: 464 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 9.474e-05/0.1103, allocations: 65.94 kB / 396.4 MB, free: 400 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000241/0.1105, allocations: 16.33 kB / 396.4 MB, free: 384 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001561/0.1121, allocations: 1.185 MB / 397.6 MB, free: 15.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/0.1124, allocations: 0.7204 MB / 398.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.399e-05/0.1124, allocations: 21.36 kB / 398.3 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.229e-05/0.1125, allocations: 47.42 kB / 398.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1125, allocations: 0 / 398.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01184/0.1243, allocations: 2.473 MB / 400.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003117/0.1247, allocations: 212.3 kB / 401 MB, free: 11.71 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.684/1.808, allocations: 3.438 kB / 401 MB, free: 11.71 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: