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.001836/0.001836, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001924/0.001924, allocations: 212 kB / 24.54 MB, free: 4.016 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.62/1.62, allocations: 230.6 MB / 258.3 MB, free: 8.062 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.001995/0.001995, allocations: 63.91 kB / 378.5 MB, free: 3.215 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3231/0.3251, allocations: 53.37 MB / 431.9 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003873/0.329, allocations: 2.098 MB / 434 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.3301, allocations: 0.5531 MB / 434.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.3302, allocations: 7.938 kB / 434.6 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001138/0.3303, allocations: 15.8 kB / 434.6 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.579e-05/0.3304, allocations: 19.8 kB / 434.6 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003081/0.3307, allocations: 59.86 kB / 434.7 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000204/0.3309, allocations: 127.5 kB / 434.8 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001779/0.3311, allocations: 45.97 kB / 434.8 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.737e-05/0.3312, allocations: 51.8 kB / 434.9 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.293e-05/0.3312, allocations: 55.7 kB / 434.9 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.155e-05/0.3313, allocations: 16 kB / 434.9 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.915e-05/0.3313, allocations: 8 kB / 434.9 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.378e-05/0.3313, allocations: 31.91 kB / 435 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.236e-05/0.3314, allocations: 63.61 kB / 435 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002172/0.3316, allocations: 124.2 kB / 435.2 MB, free: 3.641 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3316, allocations: 4 kB / 435.2 MB, free: 3.637 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3316, allocations: 0 / 435.2 MB, free: 3.637 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.57e-06/0.3316, allocations: 0 / 435.2 MB, free: 3.637 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006423/0.3323, allocations: 357.8 kB / 435.5 MB, free: 3.258 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.3323, allocations: 15.97 kB / 435.5 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.296e-05/0.3324, allocations: 46.73 kB / 435.6 MB, free: 3.188 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.977e-05/0.3324, allocations: 16.84 kB / 435.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003215/0.3327, allocations: 153.1 kB / 435.7 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.3327, allocations: 8.375 kB / 435.8 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.738e-05/0.3328, allocations: 12.38 kB / 435.8 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005393/0.3333, allocations: 239.4 kB / 436 MB, free: 2.723 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.3333, allocations: 4 kB / 436 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.3334, allocations: 4 kB / 436 MB, free: 2.715 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.3334, allocations: 4 kB / 436 MB, free: 2.711 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002529/0.3336, allocations: 87.88 kB / 436.1 MB, free: 2.625 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007693/0.3344, allocations: 0.5388 MB / 436.6 MB, free: 2.027 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003915/0.3348, allocations: 143.9 kB / 436.8 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001549/0.3349, allocations: 66.64 kB / 436.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.658e-05/0.335, allocations: 7.938 kB / 436.8 MB, free: 1.777 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.335, allocations: 34.56 kB / 436.9 MB, free: 1.734 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.803e-06/0.335, allocations: 0 / 436.9 MB, free: 1.734 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005218/0.3355, allocations: 189.2 kB / 437.1 MB, free: 1.543 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.238e-05/0.3356, allocations: 114.9 kB / 437.2 MB, free: 1.406 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001189/0.3357, allocations: 132.9 kB / 437.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.3357, allocations: 29.7 kB / 437.3 MB, free: 1.234 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.797e-05/0.3358, allocations: 120 kB / 437.5 MB, free: 1.113 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.818e-05/0.3359, allocations: 31.78 kB / 437.5 MB, free: 1.082 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.831e-05/0.3359, allocations: 33.7 kB / 437.5 MB, free: 1.043 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.3361, allocations: 326.8 kB / 437.8 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001199/0.3362, allocations: 39.97 kB / 437.9 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.3364, allocations: 133.6 kB / 438 MB, free: 0.4961 MB / 334.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.0004312/0.3368, allocations: 208 kB / 438.2 MB, free: 252 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.523e-06/0.3368, allocations: 7.938 kB / 438.2 MB, free: 244 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003911/0.3372, allocations: 209.2 kB / 438.4 MB, free: 28 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.3372, allocations: 10.81 kB / 438.4 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.3372, allocations: 4 kB / 438.4 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.3372, allocations: 4 kB / 438.4 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.3374, allocations: 39.92 kB / 438.5 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.638e-05/0.3374, allocations: 11.98 kB / 438.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001047/0.3375, allocations: 20.27 kB / 438.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/0.3375, allocations: 12 kB / 438.5 MB, free: 15.93 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.0001398/0.3377, allocations: 133.7 kB / 438.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001727/0.3379, allocations: 89.58 kB / 438.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.966e-05/0.3379, allocations: 12.72 kB / 438.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.3379, allocations: 4 kB / 438.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3379, allocations: 0 / 438.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.3379, allocations: 3.984 kB / 438.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002901/0.3382, allocations: 189 kB / 438.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.3382, allocations: 4 kB / 438.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002117/0.3384, allocations: 43.91 kB / 439 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.3384, allocations: 4 kB / 439 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.3384, allocations: 4 kB / 439 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.137e-06/0.3384, allocations: 7.938 kB / 439 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3384, allocations: 0 / 439 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005979/0.339, allocations: 387.4 kB / 439.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.9e-05/0.3391, allocations: 7.953 kB / 439.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.099e-05/0.3391, allocations: 0 / 439.4 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001381/0.3392, allocations: 11.98 kB / 439.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.4e-05/0.3393, allocations: 11.92 kB / 439.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.3393, allocations: 4 kB / 439.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.389e-05/0.3394, allocations: 107.3 kB / 439.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3394, allocations: 0 / 439.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003212/0.3397, allocations: 27.95 kB / 439.6 MB, free: 14.82 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.0008975/0.3406, allocations: 0.9155 MB / 440.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003801/0.341, allocations: 128.2 kB / 440.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.341, allocations: 0 / 440.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001038/0.3411, allocations: 35.91 kB / 440.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005432/0.3416, allocations: 67.81 kB / 440.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002878/0.3445, allocations: 2.104 MB / 442.8 MB, free: 11.37 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.3449, allocations: 0.7201 MB / 443.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.995e-05/0.3449, allocations: 5.094 kB / 443.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.973e-05/0.345, allocations: 39.7 kB / 443.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.345, allocations: 0 / 443.6 MB, free: 10.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03011/0.3751, allocations: 3.097 MB / 446.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.54/8.915, allocations: 7.812 kB / 446.7 MB, free: 7.613 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.497047156095505] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 8.992272272706032 9.01347468 8.677168045 Calling exit ...