Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001302/0.001302, allocations: 117.9 kB / 18.5 MB, free: 4.52 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.001369/0.001369, allocations: 214.5 kB / 21.46 MB, free: 1.566 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.511/1.511, allocations: 230.5 MB / 254.8 MB, free: 15.08 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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",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: 67.83 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1236, allocations: 53.34 MB / 427 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004241/0.1278, allocations: 2.025 MB / 429 MB, free: 2.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001159/0.129, allocations: 0.5336 MB / 429.6 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.1291, allocations: 4 kB / 429.6 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001349/0.1292, allocations: 15.8 kB / 429.6 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.845e-05/0.1293, allocations: 31.72 kB / 429.6 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003525/0.1297, allocations: 55.86 kB / 429.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001985/0.1299, allocations: 119.6 kB / 429.8 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.13, allocations: 41.42 kB / 429.8 MB, free: 1.938 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.778e-05/0.1301, allocations: 51.84 kB / 429.9 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.156e-05/0.1302, allocations: 55.7 kB / 429.9 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.648e-05/0.1302, allocations: 12 kB / 429.9 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.308e-05/0.1302, allocations: 8 kB / 429.9 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.525e-05/0.1303, allocations: 23.92 kB / 430 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.06e-05/0.1304, allocations: 59.67 kB / 430 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002059/0.1306, allocations: 131.4 kB / 430.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.227e-06/0.1306, allocations: 0 / 430.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1306, allocations: 0 / 430.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.1306, allocations: 0 / 430.2 MB, free: 1.602 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006842/0.1313, allocations: 430.9 kB / 430.6 MB, free: 1.133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.1313, allocations: 12.03 kB / 430.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001259/0.1314, allocations: 46.73 kB / 430.6 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.702e-05/0.1315, allocations: 16.78 kB / 430.6 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002931/0.1318, allocations: 204.1 kB / 430.8 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.456e-05/0.1318, allocations: 8.375 kB / 430.9 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.694e-05/0.1318, allocations: 16.33 kB / 430.9 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005729/0.1324, allocations: 246 kB / 431.1 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.1324, allocations: 3.984 kB / 431.1 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.896e-05/0.1324, allocations: 8 kB / 431.1 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.1324, allocations: 4 kB / 431.1 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002791/0.1327, allocations: 87.88 kB / 431.2 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008247/0.1335, allocations: 0.5921 MB / 431.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000314/0.1338, allocations: 135.9 kB / 431.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001781/0.134, allocations: 78.64 kB / 432 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.984e-05/0.134, allocations: 0 / 432 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.039e-05/0.1341, allocations: 42.5 kB / 432.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.202e-06/0.1341, allocations: 3.938 kB / 432.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005574/0.1346, allocations: 177.5 kB / 432.2 MB, free: 15.28 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.38e-05/0.1347, allocations: 114.8 kB / 432.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.1349, allocations: 128.1 kB / 432.5 MB, free: 15.01 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.1349, allocations: 25.7 kB / 432.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.641e-05/0.135, allocations: 115.8 kB / 432.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.798e-05/0.135, allocations: 27.78 kB / 432.6 MB, free: 14.83 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.856e-05/0.135, allocations: 37.7 kB / 432.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.1352, allocations: 326.9 kB / 433 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001202/0.1353, allocations: 35.97 kB / 433 MB, free: 14.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001915/0.1355, allocations: 128.8 kB / 433.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003394/0.1358, allocations: 184.8 kB / 433.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1359, allocations: 384 / 433.3 MB, free: 14.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003933/0.1362, allocations: 193.5 kB / 433.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.1363, allocations: 8 kB / 433.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/0.1363, allocations: 7.938 kB / 433.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.1363, allocations: 7.938 kB / 433.5 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001771/0.1365, allocations: 43.92 kB / 433.6 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.1365, allocations: 7.984 kB / 433.6 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.1366, allocations: 15.89 kB / 433.6 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/0.1366, allocations: 8 kB / 433.6 MB, free: 13.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001224/0.1367, allocations: 141.8 kB / 433.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001455/0.1369, allocations: 81.58 kB / 433.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.256e-05/0.1369, allocations: 20.66 kB / 433.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.1369, allocations: 0 / 433.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1369, allocations: 0 / 433.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.1369, allocations: 4 kB / 433.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002823/0.1372, allocations: 205.5 kB / 434.1 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1372, allocations: 0 / 434.1 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001781/0.1374, allocations: 39.97 kB / 434.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1374, allocations: 4 kB / 434.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.1374, allocations: 3.938 kB / 434.1 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.39e-06/0.1374, allocations: 7.938 kB / 434.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1374, allocations: 0 / 434.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005738/0.138, allocations: 367.6 kB / 434.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.103e-05/0.138, allocations: 92.95 kB / 434.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.747e-05/0.1381, allocations: 15.86 kB / 434.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001324/0.1382, allocations: 4 kB / 434.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.983e-05/0.1382, allocations: 11.98 kB / 434.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.325e-06/0.1383, allocations: 4 kB / 434.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.399e-05/0.1383, allocations: 105.5 kB / 434.7 MB, free: 12.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1383, allocations: 0 / 434.7 MB, free: 12.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003141/0.1386, allocations: 24 kB / 434.7 MB, free: 12.52 MB / 366.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 (14): * Single equations (assignments): 14 * 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.0009181/0.1396, allocations: 0.9117 MB / 435.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003381/0.1399, allocations: 107.8 kB / 435.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.1399, allocations: 96 / 435.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000105/0.14, allocations: 36.72 kB / 435.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004919/0.1405, allocations: 48.02 kB / 435.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002542/0.143, allocations: 2.033 MB / 437.9 MB, free: 9.184 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000334/0.1434, allocations: 0.7123 MB / 438.6 MB, free: 8.445 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.779e-05/0.1434, allocations: 12.64 kB / 438.6 MB, free: 8.434 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.584e-05/0.1435, allocations: 35.44 kB / 438.6 MB, free: 8.398 MB / 366.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1435, allocations: 0 / 438.6 MB, free: 8.398 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03583/0.1793, allocations: 2.774 MB / 441.4 MB, free: 5.816 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.636/8.816, allocations: 15.42 kB / 441.4 MB, free: 5.805 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_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_ClockedWithDiscreteTextbookController.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.589812614955008] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 8.887769078835845 9.075895775 8.943126882 Calling exit ...