Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001489/0.001489, allocations: 121.6 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.001503/0.001503, allocations: 203.9 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.557/1.557, allocations: 227.7 MB / 247.2 MB, free: 10.15 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.002152/0.002152, allocations: 71.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3522, allocations: 50.55 MB / 409.1 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.004133/0.3563, allocations: 2.011 MB / 411.1 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.3575, allocations: 0.5609 MB / 411.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001117/0.3576, allocations: 0 / 411.6 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001269/0.3578, allocations: 23.8 kB / 411.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001439/0.3579, allocations: 27.72 kB / 411.7 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00025/0.3582, allocations: 55.88 kB / 411.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001889/0.3584, allocations: 119.6 kB / 411.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.3585, allocations: 61.36 kB / 411.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.121e-05/0.3586, allocations: 51.78 kB / 412 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.3588, allocations: 59.7 kB / 412 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.912e-05/0.3588, allocations: 12 kB / 412 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.362e-05/0.3588, allocations: 8 kB / 412 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.968e-05/0.3589, allocations: 31.84 kB / 412.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.278e-05/0.359, allocations: 51.73 kB / 412.1 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002358/0.3592, allocations: 134.4 kB / 412.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3592, allocations: 4 kB / 412.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.3592, allocations: 0 / 412.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.3592, allocations: 0 / 412.3 MB, free: 14.14 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006872/0.3599, allocations: 430.9 kB / 412.7 MB, free: 13.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.586e-05/0.36, allocations: 12.03 kB / 412.7 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.333e-05/0.3601, allocations: 50.69 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.113e-05/0.3601, allocations: 24.77 kB / 412.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003331/0.3604, allocations: 200.2 kB / 413 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.3605, allocations: 8.375 kB / 413 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.367e-05/0.3605, allocations: 16.38 kB / 413 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005244/0.361, allocations: 255.2 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.3611, allocations: 4 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.625e-05/0.3611, allocations: 4 kB / 413.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.3611, allocations: 7.984 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002562/0.3614, allocations: 83.88 kB / 413.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006838/0.3621, allocations: 0.5921 MB / 413.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003626/0.3624, allocations: 151.9 kB / 414.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001611/0.3626, allocations: 74.64 kB / 414.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.46e-05/0.3626, allocations: 0 / 414.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.3627, allocations: 42.5 kB / 414.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.092e-06/0.3627, allocations: 0 / 414.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005431/0.3632, allocations: 189.4 kB / 414.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.497e-05/0.3633, allocations: 106.8 kB / 414.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.3635, allocations: 137.6 kB / 414.6 MB, free: 11.5 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.3635, allocations: 25.7 kB / 414.6 MB, free: 11.47 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.236e-05/0.3636, allocations: 119.9 kB / 414.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.585e-05/0.3636, allocations: 23.84 kB / 414.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.234e-05/0.3637, allocations: 37.84 kB / 414.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.3638, allocations: 318.8 kB / 415.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.3639, allocations: 35.97 kB / 415.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001975/0.3642, allocations: 143 kB / 415.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003247/0.3645, allocations: 189.5 kB / 415.5 MB, free: 10.51 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.3645, allocations: 3.938 kB / 415.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003941/0.3649, allocations: 201.5 kB / 415.7 MB, free: 10.3 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.3649, allocations: 8 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3649, allocations: 4 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.365, allocations: 4 kB / 415.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001549/0.3651, allocations: 51.84 kB / 415.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.002e-05/0.3651, allocations: 4.469 kB / 415.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001067/0.3653, allocations: 27.88 kB / 415.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.403e-05/0.3653, allocations: 8 kB / 415.8 MB, free: 10.2 MB / 334.1 MB 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.000122/0.3654, allocations: 133.7 kB / 415.9 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001526/0.3656, allocations: 89.58 kB / 416 MB, free: 9.961 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.213e-05/0.3657, allocations: 16.7 kB / 416 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.3657, allocations: 4 kB / 416 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.3657, allocations: 0 / 416 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.3657, allocations: 0 / 416 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002932/0.366, allocations: 217.5 kB / 416.2 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.983e-06/0.366, allocations: 240 / 416.2 MB, free: 9.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000178/0.3662, allocations: 35.97 kB / 416.3 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.3662, allocations: 0 / 416.3 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.254e-05/0.3662, allocations: 0 / 416.3 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.3662, allocations: 8 kB / 416.3 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.3662, allocations: 7.922 kB / 416.3 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005664/0.3668, allocations: 383.4 kB / 416.7 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.35e-05/0.3669, allocations: 92.98 kB / 416.8 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.263e-05/0.3669, allocations: 4 kB / 416.8 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.367, allocations: 7.984 kB / 416.8 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.404e-05/0.3671, allocations: 8 kB / 416.8 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.3671, allocations: 4.062 kB / 416.8 MB, free: 9.094 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.692e-05/0.3672, allocations: 99.27 kB / 416.9 MB, free: 8.996 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3672, allocations: 0 / 416.9 MB, free: 8.996 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003252/0.3675, allocations: 28 kB / 416.9 MB, free: 8.969 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.0008693/0.3684, allocations: 0.9226 MB / 417.8 MB, free: 8.02 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003509/0.3688, allocations: 120.7 kB / 417.9 MB, free: 7.902 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.3688, allocations: 4.125 kB / 417.9 MB, free: 7.898 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.3689, allocations: 28.02 kB / 418 MB, free: 7.871 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004856/0.3694, allocations: 73.8 kB / 418 MB, free: 7.805 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.3719, allocations: 2.049 MB / 420.1 MB, free: 5.578 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003523/0.3722, allocations: 0.7162 MB / 420.8 MB, free: 4.836 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.736e-05/0.3723, allocations: 17.06 kB / 420.8 MB, free: 4.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.799e-05/0.3724, allocations: 31.42 kB / 420.9 MB, free: 4.789 MB / 334.1 MB Notification: Performance of SimCode: time 3.8e-07/0.3724, allocations: 0 / 420.9 MB, free: 4.789 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02765/0.4, allocations: 2.801 MB / 423.7 MB, free: 2.172 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.477/8.877, allocations: 4.5 kB / 423.7 MB, free: 2.168 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1)