Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001318/0.001319, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001331/0.001331, allocations: 198 kB / 18.73 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.601/1.601, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.001963/0.001964, allocations: 59.91 kB / 358.5 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4036/0.4055, allocations: 50.54 MB / 409 MB, free: 1.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003923/0.4095, allocations: 2.038 MB / 411.1 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.4108, allocations: 0.6038 MB / 411.7 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.4109, allocations: 4 kB / 411.7 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001274/0.4111, allocations: 15.8 kB / 411.7 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001743/0.4112, allocations: 35.7 kB / 411.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003084/0.4116, allocations: 71.8 kB / 411.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001995/0.4118, allocations: 123.6 kB / 411.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001726/0.4119, allocations: 57.84 kB / 412 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.108e-05/0.412, allocations: 55.72 kB / 412 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.896e-05/0.4122, allocations: 59.7 kB / 412.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.286e-05/0.4122, allocations: 8 kB / 412.1 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.626e-05/0.4122, allocations: 12 kB / 412.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.954e-05/0.4123, allocations: 39.84 kB / 412.1 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.59e-05/0.4124, allocations: 63.61 kB / 412.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002443/0.4127, allocations: 150.3 kB / 412.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.4127, allocations: 0 / 412.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4127, allocations: 0 / 412.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.4127, allocations: 0 / 412.3 MB, free: 14.1 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006746/0.4134, allocations: 458.7 kB / 412.8 MB, free: 13.6 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.4134, allocations: 8.031 kB / 412.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.947e-05/0.4135, allocations: 46.73 kB / 412.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.13e-05/0.4135, allocations: 24.8 kB / 412.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003306/0.4139, allocations: 216.1 kB / 413.1 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.4139, allocations: 8.375 kB / 413.1 MB, free: 13.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.571e-05/0.4139, allocations: 20.36 kB / 413.1 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005425/0.4145, allocations: 254.6 kB / 413.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.634e-05/0.4145, allocations: 4 kB / 413.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.4145, allocations: 4 kB / 413.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.448e-06/0.4145, allocations: 4 kB / 413.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002627/0.4148, allocations: 87.88 kB / 413.5 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007098/0.4155, allocations: 0.6077 MB / 414.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004048/0.4159, allocations: 155.8 kB / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001708/0.4161, allocations: 78.62 kB / 414.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.471e-05/0.4162, allocations: 3.984 kB / 414.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.428e-05/0.4162, allocations: 38.5 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.4162, allocations: 4 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005543/0.4168, allocations: 185.4 kB / 414.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.814e-05/0.4169, allocations: 110.8 kB / 414.6 MB, free: 11.54 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.417, allocations: 162.9 kB / 414.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.4171, allocations: 25.7 kB / 414.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.111e-05/0.4171, allocations: 116.6 kB / 414.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.983e-05/0.4172, allocations: 31.8 kB / 415 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.71e-05/0.4173, allocations: 37.7 kB / 415 MB, free: 11.15 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.4174, allocations: 322.8 kB / 415.3 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.4175, allocations: 35.97 kB / 415.3 MB, free: 10.79 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002125/0.4178, allocations: 143.2 kB / 415.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003591/0.4181, allocations: 185.5 kB / 415.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.4182, allocations: 3.938 kB / 415.7 MB, free: 10.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004194/0.4186, allocations: 197.2 kB / 415.9 MB, free: 10.17 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.744e-05/0.4186, allocations: 8 kB / 415.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.4186, allocations: 4 kB / 415.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.4187, allocations: 4.469 kB / 415.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001666/0.4188, allocations: 51.91 kB / 415.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.4188, allocations: 7.938 kB / 415.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.419, allocations: 23.88 kB / 416 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.419, allocations: 8 kB / 416 MB, free: 10.07 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.0001528/0.4192, allocations: 142.5 kB / 416.1 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.4193, allocations: 90.19 kB / 416.2 MB, free: 9.824 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.683e-05/0.4194, allocations: 20.72 kB / 416.2 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.4194, allocations: 8.016 kB / 416.2 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.4195, allocations: 7.938 kB / 416.2 MB, free: 9.785 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.4195, allocations: 4 kB / 416.2 MB, free: 9.781 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003337/0.4198, allocations: 217.5 kB / 416.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.4198, allocations: 0 / 416.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.42, allocations: 31.98 kB / 416.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.214e-06/0.42, allocations: 3.984 kB / 416.5 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.4201, allocations: 7.938 kB / 416.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.4201, allocations: 0 / 416.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.4201, allocations: 0 / 416.5 MB, free: 9.477 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006847/0.4208, allocations: 390.8 kB / 416.9 MB, free: 9.078 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.786e-05/0.4209, allocations: 105 kB / 417 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.938e-05/0.4209, allocations: 8 kB / 417 MB, free: 8.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000139/0.4211, allocations: 11.98 kB / 417 MB, free: 8.938 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.042e-05/0.4211, allocations: 12.06 kB / 417 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-06/0.4211, allocations: 0 / 417 MB, free: 8.926 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001094/0.4212, allocations: 123.2 kB / 417.1 MB, free: 8.805 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4212, allocations: 0 / 417.1 MB, free: 8.805 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003291/0.4216, allocations: 24 kB / 417.1 MB, free: 8.781 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.0009876/0.4226, allocations: 0.9271 MB / 418.1 MB, free: 7.824 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003622/0.423, allocations: 124.7 kB / 418.2 MB, free: 7.703 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.423, allocations: 0 / 418.2 MB, free: 7.703 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000107/0.4231, allocations: 31.92 kB / 418.2 MB, free: 7.672 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005118/0.4236, allocations: 59.94 kB / 418.3 MB, free: 7.613 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002661/0.4263, allocations: 2.112 MB / 420.4 MB, free: 5.32 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004105/0.4267, allocations: 0.7201 MB / 421.1 MB, free: 4.574 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.852e-05/0.4268, allocations: 9.422 kB / 421.1 MB, free: 4.566 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.391e-05/0.4269, allocations: 39.42 kB / 421.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.4269, allocations: 4 kB / 421.2 MB, free: 4.523 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02723/0.4541, allocations: 2.98 MB / 424.2 MB, free: 1.738 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.292/8.746, allocations: 10.81 kB / 424.2 MB, free: 1.73 MB / 334.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1)