Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001404/0.001403, allocations: 122.5 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001782/0.001782, allocations: 202 kB / 18.74 MB, free: 4.312 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.549/1.549, 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.001988/0.001988, allocations: 67.89 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.293, allocations: 50.54 MB / 409 MB, free: 1.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003681/0.2967, allocations: 2.065 MB / 411.1 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.2978, allocations: 0.5377 MB / 411.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001096/0.2979, allocations: 7.938 kB / 411.7 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001297/0.2981, allocations: 15.8 kB / 411.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.863e-05/0.2982, allocations: 27.78 kB / 411.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000294/0.2985, allocations: 59.88 kB / 411.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001951/0.2987, allocations: 127.5 kB / 411.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001794/0.2989, allocations: 61.77 kB / 411.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.258e-05/0.299, allocations: 51.78 kB / 412 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.268e-05/0.2991, allocations: 59.7 kB / 412.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.027e-05/0.2991, allocations: 8 kB / 412.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.484e-05/0.2992, allocations: 12 kB / 412.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.229e-05/0.2992, allocations: 23.92 kB / 412.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.666e-05/0.2993, allocations: 63.66 kB / 412.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002193/0.2995, allocations: 134.3 kB / 412.3 MB, free: 14.13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2995, allocations: 0 / 412.3 MB, free: 14.13 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2995, allocations: 0 / 412.3 MB, free: 14.13 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.531e-06/0.2996, allocations: 0 / 412.3 MB, free: 14.13 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006979/0.3003, allocations: 430.9 kB / 412.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.3003, allocations: 12.03 kB / 412.7 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.53e-05/0.3004, allocations: 42.75 kB / 412.8 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.045e-05/0.3004, allocations: 20.78 kB / 412.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003083/0.3007, allocations: 216.1 kB / 413 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.389e-05/0.3007, allocations: 4.375 kB / 413 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.451e-05/0.3008, allocations: 20.33 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004991/0.3013, allocations: 238.7 kB / 413.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.3013, allocations: 0 / 413.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.496e-05/0.3013, allocations: 4 kB / 413.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.3014, allocations: 4 kB / 413.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000252/0.3016, allocations: 83.86 kB / 413.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007337/0.3024, allocations: 0.596 MB / 413.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003549/0.3027, allocations: 147.9 kB / 414.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.3029, allocations: 74.58 kB / 414.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.061e-05/0.3029, allocations: 7.938 kB / 414.2 MB, free: 12.03 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.423e-05/0.303, allocations: 38.55 kB / 414.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.502e-06/0.303, allocations: 0 / 414.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.000543/0.3035, allocations: 181.4 kB / 414.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.867e-05/0.3036, allocations: 110.8 kB / 414.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.3038, allocations: 134.2 kB / 414.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.3038, allocations: 25.7 kB / 414.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.815e-05/0.3039, allocations: 120.1 kB / 414.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.172e-05/0.3039, allocations: 31.78 kB / 414.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.23e-05/0.304, allocations: 37.7 kB / 414.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.3042, allocations: 322.8 kB / 415.1 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.3043, allocations: 35.97 kB / 415.2 MB, free: 10.94 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002092/0.3045, allocations: 143.1 kB / 415.3 MB, free: 10.75 MB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004728/0.305, allocations: 278.9 kB / 415.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.305, allocations: 7.875 kB / 415.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004032/0.3054, allocations: 205.5 kB / 415.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.3055, allocations: 12.09 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.3055, allocations: 4 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.707e-05/0.3055, allocations: 4 kB / 415.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.3057, allocations: 47.91 kB / 415.9 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.3057, allocations: 7.984 kB / 415.9 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001076/0.3058, allocations: 23.88 kB / 415.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.524e-05/0.3058, allocations: 8 kB / 415.9 MB, free: 10.09 MB / 334.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (21): * Single equations (assignments): 21 * 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.0001259/0.3059, allocations: 133.7 kB / 416 MB, free: 9.949 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001637/0.3061, allocations: 89.95 kB / 416.1 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.389e-05/0.3062, allocations: 20.7 kB / 416.1 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.3062, allocations: 96 / 416.1 MB, free: 9.828 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/0.3062, allocations: 7.938 kB / 416.1 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.3062, allocations: 0 / 416.1 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003157/0.3065, allocations: 221.4 kB / 416.4 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3065, allocations: 0 / 416.4 MB, free: 9.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002134/0.3068, allocations: 47.91 kB / 416.4 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3068, allocations: 0 / 416.4 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.774e-05/0.3068, allocations: 11.98 kB / 416.4 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.3068, allocations: 4 kB / 416.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.3068, allocations: 0 / 416.4 MB, free: 9.492 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005693/0.3074, allocations: 379.4 kB / 416.8 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.132e-05/0.3075, allocations: 93.14 kB / 416.9 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.283e-05/0.3075, allocations: 0 / 416.9 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.3076, allocations: 12 kB / 416.9 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.333e-05/0.3077, allocations: 7.922 kB / 416.9 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.47e-05/0.3077, allocations: 4 kB / 416.9 MB, free: 8.969 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.511e-05/0.3078, allocations: 105.8 kB / 417 MB, free: 8.867 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3078, allocations: 0 / 417 MB, free: 8.867 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000319/0.3081, allocations: 27.95 kB / 417 MB, free: 8.84 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 (15): * Single equations (assignments): 15 * 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.0008959/0.309, allocations: 0.9225 MB / 418 MB, free: 7.891 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003544/0.3094, allocations: 127.8 kB / 418.1 MB, free: 7.766 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.869e-06/0.3094, allocations: 4 kB / 418.1 MB, free: 7.762 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.3095, allocations: 28.91 kB / 418.1 MB, free: 7.734 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005231/0.31, allocations: 67.81 kB / 418.2 MB, free: 7.668 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002938/0.313, allocations: 2.093 MB / 420.3 MB, free: 5.395 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003981/0.3134, allocations: 0.7123 MB / 421 MB, free: 4.656 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.497e-05/0.3135, allocations: 17.08 kB / 421 MB, free: 4.641 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.757e-05/0.3136, allocations: 39.42 kB / 421 MB, free: 4.602 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3136, allocations: 0 / 421 MB, free: 4.602 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02906/0.3426, allocations: 3.017 MB / 424.1 MB, free: 1.793 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.542/8.885, allocations: 9.219 kB / 424.1 MB, free: 1.785 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_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_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1)