Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001699/0.001699, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002066/0.002066, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.527/1.527, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 63.91 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.29, allocations: 50.54 MB / 409 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003663/0.2937, allocations: 2.018 MB / 411.1 MB, free: 15.35 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.2948, allocations: 0.5337 MB / 411.6 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.922e-05/0.2949, allocations: 8 kB / 411.6 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001148/0.2951, allocations: 15.8 kB / 411.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.351e-05/0.2951, allocations: 31.72 kB / 411.6 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002877/0.2954, allocations: 55.86 kB / 411.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001866/0.2956, allocations: 119.6 kB / 411.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.2958, allocations: 61.39 kB / 411.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.268e-05/0.2959, allocations: 47.78 kB / 411.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.054e-05/0.296, allocations: 55.77 kB / 412 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.652e-05/0.296, allocations: 8 kB / 412 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.467e-05/0.2961, allocations: 12 kB / 412 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.551e-05/0.2961, allocations: 27.86 kB / 412 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.9e-05/0.2962, allocations: 55.72 kB / 412.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002042/0.2964, allocations: 126.4 kB / 412.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.2964, allocations: 4 kB / 412.2 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2964, allocations: 4 kB / 412.2 MB, free: 14.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.2964, allocations: 0 / 412.2 MB, free: 14.19 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.000635/0.2971, allocations: 426.9 kB / 412.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.2971, allocations: 8.031 kB / 412.6 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.757e-05/0.2972, allocations: 42.73 kB / 412.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.213e-05/0.2972, allocations: 20.84 kB / 412.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002899/0.2975, allocations: 208.1 kB / 412.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.2975, allocations: 8.375 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.23e-05/0.2976, allocations: 20.33 kB / 412.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000495/0.2981, allocations: 242.7 kB / 413.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.2981, allocations: 0 / 413.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.2981, allocations: 8 kB / 413.2 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.026e-06/0.2981, allocations: 4 kB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002656/0.2984, allocations: 83.88 kB / 413.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006955/0.2991, allocations: 0.5882 MB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002985/0.2994, allocations: 155.9 kB / 414 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.2996, allocations: 70.64 kB / 414.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.873e-05/0.2996, allocations: 4 kB / 414.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.064e-05/0.2997, allocations: 34.5 kB / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.2997, allocations: 0 / 414.1 MB, free: 12.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005337/0.3002, allocations: 185.4 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.991e-05/0.3003, allocations: 114.8 kB / 414.4 MB, free: 11.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001147/0.3004, allocations: 118.1 kB / 414.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.3005, allocations: 33.7 kB / 414.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.686e-05/0.3005, allocations: 115.8 kB / 414.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.785e-05/0.3006, allocations: 31.91 kB / 414.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.594e-05/0.3006, allocations: 37.7 kB / 414.7 MB, free: 11.37 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.3008, allocations: 318.8 kB / 415 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001183/0.3009, allocations: 35.97 kB / 415.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000185/0.3011, allocations: 128.8 kB / 415.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003223/0.3015, allocations: 180.7 kB / 415.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3015, allocations: 4 kB / 415.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003844/0.3019, allocations: 193.4 kB / 415.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.769e-05/0.3019, allocations: 4 kB / 415.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.3019, allocations: 7.984 kB / 415.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.913e-05/0.3019, allocations: 7.984 kB / 415.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001802/0.3021, allocations: 47.91 kB / 415.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.3021, allocations: 4 kB / 415.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.3022, allocations: 28.27 kB / 415.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.35e-05/0.3023, allocations: 8 kB / 415.7 MB, free: 10.32 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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 0.0001186/0.3024, allocations: 133.7 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000144/0.3025, allocations: 85.95 kB / 415.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.697e-05/0.3026, allocations: 16.66 kB / 415.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.3026, allocations: 8.094 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.3026, allocations: 3.938 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.3026, allocations: 0 / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002949/0.3029, allocations: 205.5 kB / 416.1 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.3029, allocations: 8 kB / 416.1 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000167/0.3031, allocations: 35.91 kB / 416.2 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.3031, allocations: 0 / 416.2 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.686e-05/0.3031, allocations: 11.94 kB / 416.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3032, allocations: 0 / 416.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3032, allocations: 0 / 416.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005582/0.3037, allocations: 370.2 kB / 416.5 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.282e-05/0.3038, allocations: 92.98 kB / 416.6 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.989e-05/0.3038, allocations: 15.92 kB / 416.6 MB, free: 9.242 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/0.304, allocations: 4 kB / 416.6 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.262e-05/0.304, allocations: 7.922 kB / 416.7 MB, free: 9.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.304, allocations: 8 kB / 416.7 MB, free: 9.223 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.87e-05/0.3041, allocations: 102.6 kB / 416.8 MB, free: 9.125 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3041, allocations: 0 / 416.8 MB, free: 9.125 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003155/0.3044, allocations: 24 kB / 416.8 MB, free: 9.102 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 14 * 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 Backend phase and start with SimCode phase: time 0.0008665/0.3053, allocations: 0.9116 MB / 417.7 MB, free: 8.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003541/0.3057, allocations: 112.7 kB / 417.8 MB, free: 8.051 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3057, allocations: 3.938 kB / 417.8 MB, free: 8.047 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001034/0.3058, allocations: 32.03 kB / 417.8 MB, free: 8.016 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004824/0.3063, allocations: 51.95 kB / 417.9 MB, free: 7.965 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002566/0.3089, allocations: 2.024 MB / 419.9 MB, free: 5.773 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003876/0.3093, allocations: 0.7122 MB / 420.6 MB, free: 5.035 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.523e-05/0.3094, allocations: 16.58 kB / 420.6 MB, free: 5.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.374e-05/0.3095, allocations: 39.38 kB / 420.7 MB, free: 4.98 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.3095, allocations: 0 / 420.7 MB, free: 4.98 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02815/0.3376, allocations: 2.756 MB / 423.4 MB, free: 2.414 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.373/8.711, allocations: 12.12 kB / 423.5 MB, free: 2.402 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1)