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.001594/0.001594, allocations: 121.4 kB / 18.46 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.001905/0.001905, allocations: 214.5 kB / 21.41 MB, free: 1.617 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.537/1.537, allocations: 227.7 MB / 251.9 MB, free: 15.87 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.00192/0.00192, allocations: 75.83 kB / 365.2 MB, free: 236 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1085, allocations: 50.54 MB / 415.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003753/0.1123, allocations: 2.029 MB / 417.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.1135, allocations: 0.6076 MB / 418.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.1136, allocations: 4 kB / 418.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001237/0.1138, allocations: 19.73 kB / 418.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001894/0.114, allocations: 39.7 kB / 418.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003257/0.1143, allocations: 59.88 kB / 418.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001957/0.1145, allocations: 131.5 kB / 418.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002237/0.1147, allocations: 61.83 kB / 418.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.953e-05/0.1148, allocations: 47.8 kB / 418.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.491e-05/0.1149, allocations: 63.64 kB / 418.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.034e-05/0.115, allocations: 12 kB / 418.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.582e-05/0.115, allocations: 12 kB / 418.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.237e-05/0.1151, allocations: 31.89 kB / 418.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.967e-05/0.1152, allocations: 67.61 kB / 418.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002237/0.1154, allocations: 143.2 kB / 419.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.1154, allocations: 0 / 419.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1154, allocations: 7.938 kB / 419.1 MB, free: 10.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.1154, allocations: 0 / 419.1 MB, free: 10.3 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.0006926/0.1161, allocations: 454.7 kB / 419.5 MB, free: 9.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.726e-05/0.1162, allocations: 12.03 kB / 419.5 MB, free: 9.797 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.358e-05/0.1162, allocations: 46.73 kB / 419.6 MB, free: 9.742 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.349e-05/0.1163, allocations: 20.8 kB / 419.6 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.1165, allocations: 220.1 kB / 419.8 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.1166, allocations: 8.375 kB / 419.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.416e-05/0.1166, allocations: 20.36 kB / 419.8 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005393/0.1171, allocations: 256.6 kB / 420.1 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.1172, allocations: 7.938 kB / 420.1 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.1172, allocations: 4 kB / 420.1 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.1172, allocations: 4 kB / 420.1 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002677/0.1175, allocations: 87.86 kB / 420.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006861/0.1182, allocations: 0.6 MB / 420.8 MB, free: 8.391 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003622/0.1185, allocations: 143.9 kB / 420.9 MB, free: 8.223 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001681/0.1187, allocations: 78.62 kB / 421 MB, free: 8.137 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.844e-05/0.1188, allocations: 4 kB / 421 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/0.1188, allocations: 42.5 kB / 421 MB, free: 8.082 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.813e-06/0.1188, allocations: 0 / 421 MB, free: 8.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005545/0.1194, allocations: 189.3 kB / 421.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.684e-05/0.1195, allocations: 119.3 kB / 421.4 MB, free: 7.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.1196, allocations: 154.2 kB / 421.5 MB, free: 7.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.31e-05/0.1197, allocations: 29.7 kB / 421.5 MB, free: 7.555 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.283e-05/0.1197, allocations: 120.4 kB / 421.6 MB, free: 7.434 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.954e-05/0.1198, allocations: 31.72 kB / 421.7 MB, free: 7.402 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.519e-05/0.1198, allocations: 33.72 kB / 421.7 MB, free: 7.363 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.12, allocations: 322.8 kB / 422 MB, free: 7.039 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.1201, allocations: 39.97 kB / 422.1 MB, free: 7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001933/0.1203, allocations: 144.1 kB / 422.2 MB, free: 6.812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003197/0.1206, allocations: 185.5 kB / 422.4 MB, free: 6.582 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.1207, allocations: 3.938 kB / 422.4 MB, free: 6.578 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004053/0.1211, allocations: 197.4 kB / 422.6 MB, free: 6.379 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.1211, allocations: 6.344 kB / 422.6 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.1211, allocations: 7.938 kB / 422.6 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.175e-05/0.1211, allocations: 8 kB / 422.6 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001521/0.1213, allocations: 39.98 kB / 422.6 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.004e-05/0.1213, allocations: 11.92 kB / 422.7 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001091/0.1214, allocations: 19.89 kB / 422.7 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.541e-05/0.1215, allocations: 12.25 kB / 422.7 MB, free: 6.277 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.0001268/0.1216, allocations: 142.5 kB / 422.8 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001601/0.1218, allocations: 93.53 kB / 422.9 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.155e-05/0.1218, allocations: 20.94 kB / 422.9 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.1219, allocations: 7.984 kB / 422.9 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1219, allocations: 0 / 422.9 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.1219, allocations: 0 / 422.9 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002956/0.1222, allocations: 213.5 kB / 423.2 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.1222, allocations: 4 kB / 423.2 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001814/0.1224, allocations: 39.97 kB / 423.2 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.1224, allocations: 4 kB / 423.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.1224, allocations: 0 / 423.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.1224, allocations: 4 kB / 423.2 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1224, allocations: 0 / 423.2 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005886/0.123, allocations: 393.6 kB / 423.6 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.822e-05/0.1231, allocations: 101 kB / 423.7 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.415e-05/0.1231, allocations: 0 / 423.7 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.1233, allocations: 11.98 kB / 423.7 MB, free: 5.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.829e-05/0.1233, allocations: 7.984 kB / 423.7 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.847e-06/0.1233, allocations: 4 kB / 423.7 MB, free: 5.148 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001072/0.1235, allocations: 123.3 kB / 423.8 MB, free: 5.027 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1235, allocations: 7.875 kB / 423.8 MB, free: 5.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003266/0.1238, allocations: 32 kB / 423.9 MB, free: 4.988 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.0008955/0.1247, allocations: 0.9193 MB / 424.8 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003683/0.1251, allocations: 123.7 kB / 424.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1251, allocations: 0 / 424.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001091/0.1252, allocations: 32.84 kB / 424.9 MB, free: 3.887 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005245/0.1257, allocations: 68 kB / 425 MB, free: 3.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002728/0.1285, allocations: 2.103 MB / 427.1 MB, free: 1.535 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003928/0.1289, allocations: 0.7278 MB / 427.8 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.212e-05/0.129, allocations: 17.42 kB / 427.9 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.069e-05/0.1291, allocations: 38.53 kB / 427.9 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1291, allocations: 0 / 427.9 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02623/0.1553, allocations: 2.973 MB / 430.9 MB, free: 13.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.375/8.53, allocations: 8.281 kB / 430.9 MB, free: 13.94 MB / 366.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.162126014009118] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 8.597211001906544 8.624782337 8.504461492 Calling exit ...