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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001677/0.001677, allocations: 118.6 kB / 18.5 MB, free: 4.566 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.001514/0.001514, allocations: 214.6 kB / 21.46 MB, free: 1.605 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.614/1.614, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.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"}) [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.002038/0.002038, allocations: 71.81 kB / 373.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1224, allocations: 53.31 MB / 426.9 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003758/0.1261, allocations: 2.084 MB / 428.9 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.1273, allocations: 0.5414 MB / 429.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001391/0.1274, allocations: 4 kB / 429.5 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.1276, allocations: 15.8 kB / 429.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.001e-05/0.1277, allocations: 31.72 kB / 429.5 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003039/0.128, allocations: 59.88 kB / 429.6 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001921/0.1282, allocations: 123.6 kB / 429.7 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001568/0.1283, allocations: 45.8 kB / 429.8 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.651e-05/0.1284, allocations: 55.72 kB / 429.8 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.774e-05/0.1285, allocations: 51.77 kB / 429.9 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.771e-05/0.1285, allocations: 12 kB / 429.9 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.857e-05/0.1285, allocations: 8 kB / 429.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.868e-05/0.1286, allocations: 35.84 kB / 429.9 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.503e-05/0.1287, allocations: 59.67 kB / 430 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002328/0.1289, allocations: 123.4 kB / 430.1 MB, free: 1.629 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.1289, allocations: 4 kB / 430.1 MB, free: 1.625 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1289, allocations: 4 kB / 430.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.1289, allocations: 3.938 kB / 430.1 MB, free: 1.617 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006821/0.1296, allocations: 430.9 kB / 430.5 MB, free: 1.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.1296, allocations: 8.031 kB / 430.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.568e-05/0.1297, allocations: 42.75 kB / 430.6 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.383e-05/0.1297, allocations: 20.83 kB / 430.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003389/0.1301, allocations: 216.1 kB / 430.8 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.176e-05/0.1301, allocations: 8.375 kB / 430.8 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.565e-05/0.1301, allocations: 12.38 kB / 430.8 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005319/0.1307, allocations: 242.6 kB / 431.1 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.1307, allocations: 0 / 431.1 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.1307, allocations: 8 kB / 431.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.1307, allocations: 4 kB / 431.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002488/0.1309, allocations: 83.86 kB / 431.2 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2221/0.353, allocations: 0.5847 MB / 431.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004301/0.3535, allocations: 143.2 kB / 431.9 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001673/0.3536, allocations: 76.56 kB / 432 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.137e-05/0.3537, allocations: 11.7 kB / 432 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.926e-05/0.3537, allocations: 32.7 kB / 432 MB, free: 10.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.805e-06/0.3537, allocations: 0.7188 kB / 432 MB, free: 10.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005718/0.3543, allocations: 183.8 kB / 432.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.445e-05/0.3543, allocations: 112.8 kB / 432.3 MB, free: 10.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.3545, allocations: 136.7 kB / 432.4 MB, free: 10.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.3545, allocations: 33.48 kB / 432.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.317e-05/0.3545, allocations: 112.8 kB / 432.6 MB, free: 10.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.397e-05/0.3546, allocations: 33.22 kB / 432.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.855e-05/0.3546, allocations: 36.66 kB / 432.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.552e-05/0.3547, allocations: 321.9 kB / 433 MB, free: 10.03 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.3548, allocations: 39.14 kB / 433 MB, free: 10.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000156/0.355, allocations: 143.3 kB / 433.1 MB, free: 9.906 MB / 350.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.0004611/0.3554, allocations: 275.2 kB / 433.4 MB, free: 9.688 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.3554, allocations: 2.156 kB / 433.4 MB, free: 9.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003785/0.3558, allocations: 197.6 kB / 433.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.3558, allocations: 9.969 kB / 433.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.3558, allocations: 3.594 kB / 433.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.3559, allocations: 4.844 kB / 433.6 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001691/0.356, allocations: 50.19 kB / 433.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.45e-05/0.356, allocations: 8.938 kB / 433.7 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.3562, allocations: 23.97 kB / 433.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.772e-05/0.3562, allocations: 8.969 kB / 433.7 MB, free: 9.645 MB / 350.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.0001214/0.3563, allocations: 140.3 kB / 433.8 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/0.3565, allocations: 90.72 kB / 433.9 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.379e-05/0.3565, allocations: 17.94 kB / 433.9 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.678e-06/0.3565, allocations: 1.625 kB / 433.9 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.3565, allocations: 7.766 kB / 434 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.3565, allocations: 0 / 434 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002932/0.3568, allocations: 211.6 kB / 434.2 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.3568, allocations: 0 / 434.2 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002025/0.357, allocations: 45.69 kB / 434.2 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.357, allocations: 0 / 434.2 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.3571, allocations: 10.34 kB / 434.2 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.3571, allocations: 1.219 kB / 434.2 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3571, allocations: 2.875 kB / 434.2 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004694/0.3575, allocations: 381.3 kB / 434.6 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.812e-05/0.3576, allocations: 88.83 kB / 434.7 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.636e-05/0.3576, allocations: 9.484 kB / 434.7 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001311/0.3577, allocations: 3.531 kB / 434.7 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.557e-05/0.3578, allocations: 12.92 kB / 434.7 MB, free: 8.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-06/0.3578, allocations: 2.906 kB / 434.7 MB, free: 8.973 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.244e-05/0.3578, allocations: 107.8 kB / 434.8 MB, free: 8.895 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3578, allocations: 0 / 434.8 MB, free: 8.895 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003414/0.3582, allocations: 31.95 kB / 434.8 MB, free: 8.891 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.0006518/0.3588, allocations: 0.9248 MB / 435.8 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003365/0.3592, allocations: 121.2 kB / 435.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3592, allocations: 0 / 435.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.104e-05/0.3593, allocations: 36 kB / 435.9 MB, free: 8.121 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005267/0.3598, allocations: 55.05 kB / 436 MB, free: 8.121 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00222/0.362, allocations: 2.091 MB / 438.1 MB, free: 6.465 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001709/0.3622, allocations: 0.7223 MB / 438.8 MB, free: 5.762 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.793e-05/0.3622, allocations: 10.39 kB / 438.8 MB, free: 5.762 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.698e-05/0.3623, allocations: 37.67 kB / 438.8 MB, free: 5.754 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3623, allocations: 0 / 438.8 MB, free: 5.754 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03842/0.4007, allocations: 3.039 MB / 441.9 MB, free: 5.352 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.491/8.891, allocations: 13.12 kB / 441.9 MB, free: 5.344 MB / 350.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.500931761227548] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 8.964648883789778 8.97967234 8.847233342 Calling exit ...