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.001727/0.001727, 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.00218/0.00218, allocations: 213.2 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.645/1.645, allocations: 230.6 MB / 258.3 MB, free: 8.059 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.002008/0.002008, allocations: 68.77 kB / 378.5 MB, free: 3.258 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.383/0.385, allocations: 53.37 MB / 431.9 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.005406/0.3904, allocations: 2.065 MB / 434 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001705/0.3921, allocations: 0.6193 MB / 434.6 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001837/0.3923, allocations: 7.938 kB / 434.6 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000162/0.3925, allocations: 19.8 kB / 434.6 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002463/0.3927, allocations: 35.72 kB / 434.6 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004056/0.3931, allocations: 71.8 kB / 434.7 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002657/0.3934, allocations: 123.6 kB / 434.8 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.3936, allocations: 42.05 kB / 434.9 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001221/0.3937, allocations: 59.72 kB / 434.9 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/0.3938, allocations: 55.7 kB / 435 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.007e-05/0.3939, allocations: 15.98 kB / 435 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.173e-05/0.3939, allocations: 12 kB / 435 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.322e-05/0.394, allocations: 35.8 kB / 435.1 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.3941, allocations: 67.61 kB / 435.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003312/0.3944, allocations: 148.1 kB / 435.3 MB, free: 3.523 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.3944, allocations: 4 kB / 435.3 MB, free: 3.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3944, allocations: 0 / 435.3 MB, free: 3.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.3945, allocations: 0 / 435.3 MB, free: 3.52 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.0008572/0.3953, allocations: 385.5 kB / 435.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/0.3954, allocations: 8.031 kB / 435.7 MB, free: 3.105 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.436e-05/0.3954, allocations: 42.75 kB / 435.7 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.214e-05/0.3955, allocations: 28.78 kB / 435.7 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004059/0.3959, allocations: 158.3 kB / 435.9 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.3959, allocations: 8.375 kB / 435.9 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.247e-05/0.396, allocations: 12.38 kB / 435.9 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006879/0.3966, allocations: 262.6 kB / 436.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.3967, allocations: 0 / 436.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.132e-05/0.3967, allocations: 8 kB / 436.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.3967, allocations: 0 / 436.2 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000344/0.397, allocations: 87.88 kB / 436.2 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008483/0.3979, allocations: 0.5388 MB / 436.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004714/0.3984, allocations: 147.9 kB / 436.9 MB, free: 1.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002184/0.3986, allocations: 78.55 kB / 437 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.723e-05/0.3986, allocations: 4 kB / 437 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.367e-05/0.3986, allocations: 34.56 kB / 437 MB, free: 1.547 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.883e-06/0.3986, allocations: 0 / 437 MB, free: 1.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007362/0.3994, allocations: 193.3 kB / 437.2 MB, free: 1.352 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.3995, allocations: 110.8 kB / 437.3 MB, free: 1.219 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001964/0.3997, allocations: 154.2 kB / 437.5 MB, free: 1.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.3997, allocations: 25.7 kB / 437.5 MB, free: 1.027 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.942e-05/0.3998, allocations: 124.9 kB / 437.6 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.853e-05/0.3999, allocations: 27.91 kB / 437.7 MB, free: 0.875 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.695e-05/0.3999, allocations: 41.66 kB / 437.7 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.4001, allocations: 322.8 kB / 438 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.4003, allocations: 39.91 kB / 438.1 MB, free: 476 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002442/0.4005, allocations: 136 kB / 438.2 MB, free: 292 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004166/0.4009, allocations: 185.5 kB / 438.4 MB, free: 56 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/0.4009, allocations: 7.938 kB / 438.4 MB, free: 48 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005463/0.4015, allocations: 201.2 kB / 438.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.4015, allocations: 6.5 kB / 438.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.4015, allocations: 4 kB / 438.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.693e-05/0.4015, allocations: 8 kB / 438.6 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002231/0.4018, allocations: 40.39 kB / 438.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.564e-05/0.4018, allocations: 11.98 kB / 438.6 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001608/0.4019, allocations: 23.89 kB / 438.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.179e-05/0.4019, allocations: 8 kB / 438.7 MB, free: 15.75 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.0001701/0.4021, allocations: 137.7 kB / 438.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002181/0.4023, allocations: 93.53 kB / 438.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001071/0.4024, allocations: 20.7 kB / 438.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.4025, allocations: 4 kB / 438.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.4025, allocations: 3.938 kB / 438.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.4025, allocations: 4 kB / 438.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004056/0.4029, allocations: 184.6 kB / 439.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.4029, allocations: 4 kB / 439.1 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002441/0.4031, allocations: 35.91 kB / 439.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.4031, allocations: 4 kB / 439.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.622e-05/0.4031, allocations: 4 kB / 439.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.4031, allocations: 4 kB / 439.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.4031, allocations: 4 kB / 439.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000755/0.4039, allocations: 383.4 kB / 439.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.896e-05/0.404, allocations: 31.86 kB / 439.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.057e-05/0.404, allocations: 4 kB / 439.6 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002065/0.4042, allocations: 11.98 kB / 439.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.453e-05/0.4043, allocations: 4.062 kB / 439.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.631e-05/0.4043, allocations: 7.984 kB / 439.6 MB, free: 14.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001318/0.4044, allocations: 120.1 kB / 439.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4044, allocations: 0 / 439.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005199/0.4049, allocations: 27.94 kB / 439.8 MB, free: 14.6 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.001093/0.406, allocations: 0.9272 MB / 440.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004632/0.4065, allocations: 124.6 kB / 440.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.4065, allocations: 0 / 440.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001391/0.4066, allocations: 28.06 kB / 440.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000755/0.4074, allocations: 60.02 kB / 440.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003562/0.411, allocations: 2.113 MB / 443 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004296/0.4114, allocations: 0.724 MB / 443.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.771e-05/0.4115, allocations: 5.438 kB / 443.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.294e-05/0.4116, allocations: 39.42 kB / 443.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of SimCode: time 1.133e-06/0.4116, allocations: 4 kB / 443.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03546/0.447, allocations: 3.08 MB / 446.9 MB, free: 7.398 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.341/8.788, allocations: 7.359 kB / 446.9 MB, free: 7.395 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000989903 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.533773622941226] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 8.859057211782783 8.883871092 8.484367217 Calling exit ...