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.006893/0.006893, allocations: 103.5 kB / 15.73 MB, free: 6.047 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.001274/0.001274, allocations: 188 kB / 16.67 MB, free: 5.969 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.389/1.389, allocations: 205.1 MB / 222.6 MB, free: 4.508 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaByExample 0.6.0/package.mo): time 0.04214/0.04214, allocations: 8.113 MB / 278 MB, free: 13.07 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.00154/0.00154, allocations: 71.89 kB / 386.2 MB, free: 9.527 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2789/0.2804, allocations: 48.3 MB / 434.5 MB, free: 7.473 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaByExample.Components.SpeedMeasurement.Examples.PlantWithSampleHold): time 0.002886/0.2834, allocations: 1.941 MB / 436.4 MB, free: 6.121 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004336/0.2838, allocations: 228.7 kB / 436.7 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.366e-05/0.2839, allocations: 7.094 kB / 436.7 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.728e-05/0.284, allocations: 25.16 kB / 436.7 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001074/0.2841, allocations: 47.81 kB / 436.7 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002384/0.2844, allocations: 45.86 kB / 436.8 MB, free: 5.883 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002098/0.2846, allocations: 192.2 kB / 437 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002312/0.2848, allocations: 99.98 kB / 437.1 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.617e-05/0.2849, allocations: 71.98 kB / 437.1 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001409/0.2851, allocations: 82.05 kB / 437.2 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.166e-05/0.2851, allocations: 18.44 kB / 437.2 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.822e-05/0.2852, allocations: 17.28 kB / 437.3 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.306e-05/0.2852, allocations: 43.64 kB / 437.3 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.578e-05/0.2853, allocations: 96.72 kB / 437.4 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002612/0.2856, allocations: 208.6 kB / 437.6 MB, free: 5.484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.2856, allocations: 0.6562 kB / 437.6 MB, free: 5.484 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2856, allocations: 0 / 437.6 MB, free: 5.484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.613e-06/0.2856, allocations: 0 / 437.6 MB, free: 5.484 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0006165/0.2862, allocations: 464.8 kB / 438.1 MB, free: 5.055 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.2863, allocations: 14.2 kB / 438.1 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.991e-05/0.2863, allocations: 52.77 kB / 438.1 MB, free: 5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.554e-05/0.2864, allocations: 18.09 kB / 438.1 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.093e-05/0.2865, allocations: 178.8 kB / 438.3 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.2865, allocations: 12.84 kB / 438.3 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.491e-05/0.2865, allocations: 24.89 kB / 438.3 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003005/0.2869, allocations: 171.9 kB / 438.5 MB, free: 4.684 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.2869, allocations: 9.656 kB / 438.5 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.2869, allocations: 9.469 kB / 438.5 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.965e-06/0.2869, allocations: 5.406 kB / 438.5 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001907/0.2871, allocations: 114.4 kB / 438.7 MB, free: 4.625 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000939/0.2881, allocations: 0.6947 MB / 439.3 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003172/0.2884, allocations: 233.7 kB / 439.6 MB, free: 3.922 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001896/0.2886, allocations: 94.11 kB / 439.7 MB, free: 3.887 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.51e-05/0.2886, allocations: 1.375 kB / 439.7 MB, free: 3.887 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001981/0.2888, allocations: 88.58 kB / 439.8 MB, free: 3.824 MB / 318.1 MB Notification: Performance of pre-optimization done (n=16): time 1.453e-06/0.2888, allocations: 3.938 kB / 439.8 MB, free: 3.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.00079/0.2896, allocations: 0.51 MB / 440.3 MB, free: 3.434 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.367e-05/0.2897, allocations: 54.28 kB / 440.3 MB, free: 3.371 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.161e-05/0.2897, allocations: 125 kB / 440.4 MB, free: 3.258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.171e-05/0.2898, allocations: 26.8 kB / 440.5 MB, free: 3.227 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.146e-05/0.2898, allocations: 139.6 kB / 440.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.627e-05/0.2899, allocations: 63.08 kB / 440.7 MB, free: 3.055 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.8e-05/0.2899, allocations: 40.2 kB / 440.7 MB, free: 3.027 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.863e-05/0.29, allocations: 324.6 kB / 441 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.654e-05/0.2901, allocations: 50.52 kB / 441.1 MB, free: 2.688 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/0.2902, allocations: 99.89 kB / 441.2 MB, free: 2.605 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002089/0.2904, allocations: 167.1 kB / 441.3 MB, free: 2.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.2904, allocations: 5.375 kB / 441.3 MB, free: 2.477 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002549/0.2907, allocations: 207.3 kB / 441.5 MB, free: 2.371 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.2907, allocations: 10.62 kB / 441.6 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.2907, allocations: 2.844 kB / 441.6 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.044e-05/0.2907, allocations: 3.375 kB / 441.6 MB, free: 2.367 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001891/0.2909, allocations: 53.91 kB / 441.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.2909, allocations: 4.156 kB / 441.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.143e-05/0.291, allocations: 2.438 kB / 441.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.856e-05/0.291, allocations: 11.19 kB / 441.6 MB, free: 2.355 MB / 318.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,sampleHold.w,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.867e-05/0.2911, allocations: 148 kB / 441.8 MB, free: 2.211 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.298e-05/0.2912, allocations: 16.73 kB / 441.8 MB, free: 2.199 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.291e-05/0.2912, allocations: 16.31 kB / 441.8 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.339e-06/0.2912, allocations: 5.844 kB / 441.8 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.2912, allocations: 0.5 kB / 441.8 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.2912, allocations: 2.25 kB / 441.8 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005923/0.2918, allocations: 0.5074 MB / 442.3 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.2918, allocations: 0.9688 kB / 442.3 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002021/0.292, allocations: 48.28 kB / 442.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.2921, allocations: 0.5312 kB / 442.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.2921, allocations: 2.281 kB / 442.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.2921, allocations: 0.5625 kB / 442.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2921, allocations: 0.5 kB / 442.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003442/0.2924, allocations: 305.2 kB / 442.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.394e-05/0.2925, allocations: 83.89 kB / 442.8 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.321e-05/0.2925, allocations: 4.766 kB / 442.8 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.379e-05/0.2926, allocations: 8.719 kB / 442.8 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.646e-05/0.2926, allocations: 11.3 kB / 442.8 MB, free: 1.461 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.2926, allocations: 11.45 kB / 442.8 MB, free: 1.457 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.422e-05/0.2927, allocations: 93.73 kB / 442.9 MB, free: 1.379 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2927, allocations: 0 / 442.9 MB, free: 1.379 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002812/0.293, allocations: 37.16 kB / 442.9 MB, free: 1.375 MB / 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.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004299/0.2934, allocations: 0.8352 MB / 443.8 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002218/0.2937, allocations: 140 kB / 443.9 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2937, allocations: 1.125 kB / 443.9 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.226e-05/0.2938, allocations: 65.88 kB / 444 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002259/0.294, allocations: 11.11 kB / 444 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002149/0.2961, allocations: 2.09 MB / 446.1 MB, free: 14.83 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003144/0.2965, allocations: 0.7249 MB / 446.8 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.428e-05/0.2965, allocations: 14.66 kB / 446.8 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.099e-05/0.2966, allocations: 48.33 kB / 446.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2966, allocations: 0 / 446.8 MB, free: 14.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02053/0.3172, allocations: 2.815 MB / 449.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.421/7.738, allocations: 0.9375 kB / 449.7 MB, free: 13.45 MB / 334.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/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)