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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001651/0.001651, allocations: 106.5 kB / 21.22 MB, free: 0.6797 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001779/0.001779, allocations: 209.3 kB / 24.54 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.606/1.606, allocations: 230.6 MB / 258.3 MB, free: 8.055 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "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.002162/0.002162, allocations: 64.91 kB / 378.5 MB, free: 3.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3232/0.3254, allocations: 53.37 MB / 431.9 MB, free: 7.008 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004799/0.3302, allocations: 2.069 MB / 434 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.3315, allocations: 0.6155 MB / 434.6 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.3316, allocations: 7.938 kB / 434.6 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.3318, allocations: 15.8 kB / 434.6 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002328/0.332, allocations: 35.7 kB / 434.6 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003579/0.3324, allocations: 71.8 kB / 434.7 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002435/0.3326, allocations: 123.6 kB / 434.8 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000202/0.3328, allocations: 46.03 kB / 434.9 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001177/0.3329, allocations: 55.73 kB / 434.9 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001279/0.3331, allocations: 59.7 kB / 435 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.946e-05/0.3331, allocations: 12 kB / 435 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.758e-05/0.3331, allocations: 12 kB / 435 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.773e-05/0.3332, allocations: 35.84 kB / 435.1 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001069/0.3333, allocations: 67.59 kB / 435.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003231/0.3337, allocations: 152.1 kB / 435.3 MB, free: 3.633 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.3337, allocations: 0 / 435.3 MB, free: 3.633 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3337, allocations: 0 / 435.3 MB, free: 3.633 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.45e-05/0.3337, allocations: 0 / 435.3 MB, free: 3.633 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.0008462/0.3345, allocations: 381.6 kB / 435.6 MB, free: 3.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.823e-05/0.3346, allocations: 16.03 kB / 435.7 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.577e-05/0.3347, allocations: 50.73 kB / 435.7 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.206e-05/0.3347, allocations: 20.8 kB / 435.7 MB, free: 3.137 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003797/0.3351, allocations: 154.3 kB / 435.9 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.103e-05/0.3351, allocations: 8.375 kB / 435.9 MB, free: 2.953 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.508e-05/0.3352, allocations: 12.38 kB / 435.9 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005484/0.3357, allocations: 254.7 kB / 436.1 MB, free: 2.668 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.3357, allocations: 3.938 kB / 436.1 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.823e-05/0.3357, allocations: 4 kB / 436.2 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.908e-06/0.3357, allocations: 7.984 kB / 436.2 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002556/0.336, allocations: 95.81 kB / 436.3 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008182/0.3368, allocations: 0.5388 MB / 436.8 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003754/0.3372, allocations: 143.9 kB / 436.9 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001684/0.3374, allocations: 70.64 kB / 437 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.953e-05/0.3374, allocations: 0 / 437 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.232e-05/0.3374, allocations: 46.48 kB / 437 MB, free: 1.656 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.022e-06/0.3374, allocations: 0 / 437 MB, free: 1.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005836/0.338, allocations: 181.4 kB / 437.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.996e-05/0.3381, allocations: 114.8 kB / 437.3 MB, free: 1.336 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000195/0.3383, allocations: 158.4 kB / 437.5 MB, free: 1.172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.256e-05/0.3383, allocations: 29.7 kB / 437.5 MB, free: 1.137 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.248e-05/0.3384, allocations: 112.5 kB / 437.6 MB, free: 1.023 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.585e-05/0.3385, allocations: 35.77 kB / 437.7 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.932e-05/0.3385, allocations: 37.7 kB / 437.7 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.3387, allocations: 322.8 kB / 438 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.3388, allocations: 35.97 kB / 438.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.339, allocations: 134.7 kB / 438.2 MB, free: 416 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003147/0.3393, allocations: 189.4 kB / 438.4 MB, free: 176 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.3393, allocations: 7.938 kB / 438.4 MB, free: 168 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003871/0.3397, allocations: 189.9 kB / 438.6 MB, free: 15.97 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.3397, allocations: 10.81 kB / 438.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.3397, allocations: 8.031 kB / 438.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.42e-05/0.3398, allocations: 4 kB / 438.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001641/0.3399, allocations: 51.91 kB / 438.6 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.605e-05/0.3399, allocations: 7.938 kB / 438.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/0.3401, allocations: 27.86 kB / 438.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.3401, allocations: 8 kB / 438.7 MB, free: 15.86 MB / 350.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.0001311/0.3402, allocations: 133.7 kB / 438.8 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.3404, allocations: 97.91 kB / 438.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001059/0.3405, allocations: 24.7 kB / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.838e-06/0.3405, allocations: 0 / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.3405, allocations: 4 kB / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.3405, allocations: 0 / 438.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003064/0.3408, allocations: 196.4 kB / 439.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.3408, allocations: 0 / 439.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001772/0.341, allocations: 31.98 kB / 439.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.341, allocations: 0 / 439.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.341, allocations: 4 kB / 439.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.025e-06/0.341, allocations: 11.98 kB / 439.2 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.341, allocations: 4 kB / 439.2 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006347/0.3416, allocations: 386.3 kB / 439.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.627e-05/0.3417, allocations: 23.89 kB / 439.6 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.621e-05/0.3417, allocations: 12.05 kB / 439.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.3419, allocations: 4 kB / 439.6 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.004e-05/0.3419, allocations: 11.98 kB / 439.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.3419, allocations: 4 kB / 439.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001016/0.342, allocations: 116.1 kB / 439.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.342, allocations: 0 / 439.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003247/0.3424, allocations: 31.94 kB / 439.8 MB, free: 14.71 MB / 350.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.0009275/0.3433, allocations: 0.916 MB / 440.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003563/0.3436, allocations: 127.7 kB / 440.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3436, allocations: 0 / 440.8 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.807e-05/0.3437, allocations: 27.92 kB / 440.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005258/0.3443, allocations: 67.16 kB / 440.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002774/0.347, allocations: 2.117 MB / 443 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003618/0.3474, allocations: 0.724 MB / 443.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.453e-05/0.3475, allocations: 13.42 kB / 443.7 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.38e-05/0.3476, allocations: 39.42 kB / 443.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3476, allocations: 0 / 443.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0323/0.3799, allocations: 3.073 MB / 446.9 MB, free: 7.512 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.434/8.814, allocations: 8.047 kB / 446.9 MB, free: 7.504 MB / 350.1 MB " [Timeout remaining time 651] (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 --stepSize=0.000989903 --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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.339625839143991] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 8.888295328710228 8.905602435 8.568560921 Calling exit ...