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.001303/0.001303, allocations: 122.6 kB / 18.5 MB, free: 4.578 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.001391/0.001391, allocations: 206.6 kB / 21.45 MB, free: 1.629 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.539/1.539, allocations: 230.5 MB / 254.8 MB, free: 15.12 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.002042/0.002042, allocations: 67.84 kB / 373.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1395, allocations: 53.33 MB / 427 MB, free: 4.836 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003923/0.1434, allocations: 2.049 MB / 429 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001376/0.1448, allocations: 0.6076 MB / 429.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001291/0.1449, allocations: 7.938 kB / 429.7 MB, free: 2.152 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001328/0.145, allocations: 23.8 kB / 429.7 MB, free: 2.129 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001887/0.1452, allocations: 31.7 kB / 429.7 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003313/0.1455, allocations: 67.81 kB / 429.8 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002236/0.1458, allocations: 127.6 kB / 429.9 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001572/0.1459, allocations: 45.84 kB / 429.9 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000103/0.146, allocations: 47.8 kB / 430 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.759e-05/0.1461, allocations: 63.64 kB / 430.1 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.704e-05/0.1462, allocations: 8 kB / 430.1 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.295e-05/0.1462, allocations: 12 kB / 430.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.398e-05/0.1462, allocations: 35.89 kB / 430.1 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.641e-05/0.1463, allocations: 71.61 kB / 430.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002495/0.1466, allocations: 147.2 kB / 430.3 MB, free: 1.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1466, allocations: 0 / 430.3 MB, free: 1.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1466, allocations: 3.938 kB / 430.3 MB, free: 1.477 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.716e-06/0.1466, allocations: 0 / 430.3 MB, free: 1.477 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.0007492/0.1474, allocations: 462.7 kB / 430.8 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.1474, allocations: 8.031 kB / 430.8 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.886e-05/0.1474, allocations: 46.69 kB / 430.8 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.203e-05/0.1475, allocations: 28.8 kB / 430.9 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003859/0.1479, allocations: 212.1 kB / 431.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.885e-05/0.1479, allocations: 12.36 kB / 431.1 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.434e-05/0.1479, allocations: 16.38 kB / 431.1 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005431/0.1485, allocations: 257.1 kB / 431.3 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.1485, allocations: 7.984 kB / 431.4 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.1485, allocations: 4 kB / 431.4 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.1485, allocations: 4 kB / 431.4 MB, free: 332 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002752/0.1488, allocations: 87.88 kB / 431.4 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007909/0.1496, allocations: 0.5961 MB / 432 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003854/0.15, allocations: 143.7 kB / 432.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001768/0.1502, allocations: 74.77 kB / 432.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.873e-05/0.1502, allocations: 0 / 432.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.605e-05/0.1502, allocations: 38.56 kB / 432.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.212e-06/0.1502, allocations: 0 / 432.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006101/0.1508, allocations: 193.2 kB / 432.5 MB, free: 15.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.225e-05/0.1509, allocations: 110.8 kB / 432.6 MB, free: 14.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001604/0.1511, allocations: 154.2 kB / 432.7 MB, free: 14.78 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.1511, allocations: 29.7 kB / 432.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.649e-05/0.1512, allocations: 116.6 kB / 432.9 MB, free: 14.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.081e-05/0.1512, allocations: 31.78 kB / 432.9 MB, free: 14.6 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.293e-05/0.1513, allocations: 33.7 kB / 432.9 MB, free: 14.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.1514, allocations: 326.8 kB / 433.3 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.1516, allocations: 40.28 kB / 433.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002031/0.1518, allocations: 132.2 kB / 433.4 MB, free: 14.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003327/0.1521, allocations: 185.5 kB / 433.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.1521, allocations: 7.922 kB / 433.6 MB, free: 13.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004091/0.1525, allocations: 201.1 kB / 433.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.1525, allocations: 8 kB / 433.8 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.1525, allocations: 4.469 kB / 433.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.758e-05/0.1526, allocations: 4 kB / 433.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001628/0.1527, allocations: 55.91 kB / 433.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.105e-05/0.1527, allocations: 4 kB / 433.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001079/0.1528, allocations: 19.88 kB / 433.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.1529, allocations: 12 kB / 433.9 MB, free: 13.47 MB / 366.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.0001324/0.153, allocations: 134.6 kB / 434.1 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001657/0.1532, allocations: 89.53 kB / 434.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.927e-05/0.1532, allocations: 32.7 kB / 434.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.1532, allocations: 4.234 kB / 434.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.1533, allocations: 0 / 434.2 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/0.1533, allocations: 7.984 kB / 434.2 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003267/0.1536, allocations: 217.5 kB / 434.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1536, allocations: 0 / 434.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001917/0.1538, allocations: 39.92 kB / 434.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1538, allocations: 0 / 434.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.1538, allocations: 4 kB / 434.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.1538, allocations: 0 / 434.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.1538, allocations: 3.984 kB / 434.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006349/0.1544, allocations: 385.7 kB / 434.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.864e-05/0.1545, allocations: 105 kB / 434.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.823e-05/0.1546, allocations: 8 kB / 434.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.1547, allocations: 12 kB / 434.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.049e-05/0.1548, allocations: 11.92 kB / 435 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/0.1548, allocations: 4 kB / 435 MB, free: 12.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001115/0.1549, allocations: 123.2 kB / 435.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1549, allocations: 0 / 435.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003415/0.1552, allocations: 27.94 kB / 435.1 MB, free: 12.18 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 (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.0009756/0.1562, allocations: 0.9207 MB / 436 MB, free: 11.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003606/0.1566, allocations: 128.2 kB / 436.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.1566, allocations: 4 kB / 436.2 MB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001057/0.1567, allocations: 23.98 kB / 436.2 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005507/0.1572, allocations: 63.91 kB / 436.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002868/0.1601, allocations: 2.115 MB / 438.4 MB, free: 8.723 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004394/0.1605, allocations: 0.724 MB / 439.1 MB, free: 7.973 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.348e-05/0.1606, allocations: 9.422 kB / 439.1 MB, free: 7.965 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.021e-05/0.1607, allocations: 43.42 kB / 439.1 MB, free: 7.922 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1607, allocations: 0 / 439.1 MB, free: 7.922 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03106/0.1917, allocations: 2.995 MB / 442.1 MB, free: 5.121 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.5/8.692, allocations: 3.781 kB / 442.1 MB, free: 5.117 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.662178297061473] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 8.766193346586078 9.022735256 8.87397745 Calling exit ...