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.001336/0.001336, allocations: 120.4 kB / 18.5 MB, free: 4.578 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.001622/0.001622, allocations: 208.9 kB / 21.46 MB, free: 1.625 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.58/1.58, allocations: 230.5 MB / 254.7 MB, free: 15 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.001961/0.001961, allocations: 63.91 kB / 373.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1199, allocations: 53.31 MB / 426.9 MB, free: 4.891 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003685/0.1236, allocations: 2.057 MB / 428.9 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.1249, allocations: 0.6154 MB / 429.5 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.125, allocations: 0 / 429.5 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001426/0.1252, allocations: 19.8 kB / 429.5 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001877/0.1253, allocations: 31.72 kB / 429.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003372/0.1257, allocations: 67.8 kB / 429.6 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00022/0.1259, allocations: 131.5 kB / 429.8 MB, free: 1.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001487/0.1261, allocations: 37.88 kB / 429.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.1262, allocations: 59.72 kB / 429.9 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001013/0.1263, allocations: 63.69 kB / 429.9 MB, free: 1.793 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.305e-05/0.1263, allocations: 12 kB / 429.9 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.258e-05/0.1263, allocations: 12 kB / 430 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.466e-05/0.1264, allocations: 23.92 kB / 430 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.832e-05/0.1265, allocations: 67.61 kB / 430 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002821/0.1267, allocations: 147.3 kB / 430.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1267, allocations: 3.938 kB / 430.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1267, allocations: 4 kB / 430.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.573e-06/0.1267, allocations: 0 / 430.2 MB, free: 1.527 MB / 350.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.0007377/0.1275, allocations: 458.6 kB / 430.6 MB, free: 1.031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.1275, allocations: 12.03 kB / 430.7 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.858e-05/0.1276, allocations: 46.73 kB / 430.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.242e-05/0.1276, allocations: 32.73 kB / 430.7 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003582/0.128, allocations: 216.1 kB / 430.9 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.58e-05/0.128, allocations: 8.375 kB / 431 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.593e-05/0.1281, allocations: 16.38 kB / 431 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005507/0.1286, allocations: 262.6 kB / 431.2 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.542e-05/0.1286, allocations: 4 kB / 431.2 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.1286, allocations: 0 / 431.2 MB, free: 384 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.1286, allocations: 4 kB / 431.2 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002522/0.1289, allocations: 87.88 kB / 431.3 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2585/0.3873, allocations: 0.5927 MB / 431.9 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004415/0.3878, allocations: 138.1 kB / 432 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001961/0.388, allocations: 73.14 kB / 432.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.785e-05/0.388, allocations: 8.844 kB / 432.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.3881, allocations: 35.05 kB / 432.2 MB, free: 10.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 4.188e-06/0.3881, allocations: 0.5625 kB / 432.2 MB, free: 10.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006491/0.3887, allocations: 188.3 kB / 432.3 MB, free: 10.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.153e-05/0.3888, allocations: 110.6 kB / 432.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001853/0.389, allocations: 158.2 kB / 432.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.389, allocations: 33.33 kB / 432.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.248e-05/0.3891, allocations: 117.5 kB / 432.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.12e-05/0.3891, allocations: 27.34 kB / 432.8 MB, free: 10.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.792e-05/0.3892, allocations: 38.08 kB / 432.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.917e-05/0.3893, allocations: 326.8 kB / 433.1 MB, free: 9.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.3894, allocations: 40.31 kB / 433.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001799/0.3896, allocations: 134.7 kB / 433.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.3899, allocations: 188.6 kB / 433.5 MB, free: 9.727 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.3899, allocations: 4.5 kB / 433.5 MB, free: 9.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004892/0.3904, allocations: 197.1 kB / 433.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.437e-05/0.3904, allocations: 7.094 kB / 433.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.3904, allocations: 4.344 kB / 433.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.203e-05/0.3905, allocations: 4.562 kB / 433.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000195/0.3906, allocations: 44.8 kB / 433.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.723e-05/0.3907, allocations: 7.266 kB / 433.8 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001188/0.3908, allocations: 20.34 kB / 433.8 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.3908, allocations: 14.31 kB / 433.8 MB, free: 9.684 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.0001321/0.3909, allocations: 137.7 kB / 433.9 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.3911, allocations: 91.38 kB / 434 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001175/0.3912, allocations: 22.34 kB / 434 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.458e-06/0.3912, allocations: 3.391 kB / 434 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.3912, allocations: 2.5 kB / 434 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.3913, allocations: 2.859 kB / 434 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002913/0.3915, allocations: 214.8 kB / 434.3 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3915, allocations: 3.25 kB / 434.3 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000178/0.3917, allocations: 36.75 kB / 434.3 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.3917, allocations: 5 kB / 434.3 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.424e-05/0.3917, allocations: 3.75 kB / 434.3 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.3917, allocations: 2.266 kB / 434.3 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.3917, allocations: 3.594 kB / 434.3 MB, free: 9.332 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004648/0.3922, allocations: 393.9 kB / 434.7 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.392e-05/0.3923, allocations: 101.7 kB / 434.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.528e-05/0.3923, allocations: 8.562 kB / 434.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.3924, allocations: 6.719 kB / 434.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.561e-05/0.3925, allocations: 9.156 kB / 434.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.3925, allocations: 5.844 kB / 434.8 MB, free: 9.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.14e-05/0.3926, allocations: 120.6 kB / 434.9 MB, free: 8.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3926, allocations: 0 / 434.9 MB, free: 8.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003388/0.3929, allocations: 40.59 kB / 435 MB, free: 8.922 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.0006902/0.3936, allocations: 0.9124 MB / 435.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003859/0.394, allocations: 121.4 kB / 436 MB, free: 8.172 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.394, allocations: 0 / 436 MB, free: 8.172 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.742e-05/0.3941, allocations: 29.3 kB / 436 MB, free: 8.172 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005838/0.3947, allocations: 62.8 kB / 436.1 MB, free: 8.172 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002441/0.3971, allocations: 2.111 MB / 438.2 MB, free: 6.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001907/0.3973, allocations: 0.7192 MB / 438.9 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.366e-05/0.3974, allocations: 16.03 kB / 438.9 MB, free: 5.801 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.093e-05/0.3974, allocations: 37.36 kB / 439 MB, free: 5.793 MB / 350.1 MB Notification: Performance of SimCode: time 1.593e-06/0.3974, allocations: 1.25 kB / 439 MB, free: 5.793 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03274/0.4302, allocations: 3.014 MB / 442 MB, free: 5.391 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.49/8.92, allocations: 8.766 kB / 442 MB, free: 5.383 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.456853634212166] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 8.990226086694747 9.009112712 8.877986956 Calling exit ...