Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001724/0.001724, allocations: 122.5 kB / 18.51 MB, free: 4.539 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.002086/0.002086, allocations: 215.2 kB / 21.46 MB, free: 1.59 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.566/1.566, allocations: 230.5 MB / 254.8 MB, free: 15.23 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.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",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.002733/0.002733, allocations: 71.83 kB / 373.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.1649, allocations: 53.32 MB / 427 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.005322/0.1702, allocations: 2.027 MB / 429 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001591/0.1718, allocations: 0.5687 MB / 429.6 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001704/0.172, allocations: 3.938 kB / 429.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.1721, allocations: 19.8 kB / 429.6 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001991/0.1723, allocations: 23.78 kB / 429.6 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004236/0.1728, allocations: 59.81 kB / 429.7 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002669/0.173, allocations: 115.6 kB / 429.8 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002068/0.1732, allocations: 53.34 kB / 429.9 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.1734, allocations: 43.86 kB / 429.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/0.1735, allocations: 63.7 kB / 430 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.232e-05/0.1735, allocations: 8 kB / 430 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.77e-05/0.1735, allocations: 12 kB / 430 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.663e-05/0.1736, allocations: 27.91 kB / 430 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.878e-05/0.1737, allocations: 63.66 kB / 430.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000294/0.174, allocations: 123.4 kB / 430.2 MB, free: 1.633 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.689e-06/0.174, allocations: 4 kB / 430.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.174, allocations: 0 / 430.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.174, allocations: 0 / 430.2 MB, free: 1.629 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0008874/0.1749, allocations: 442.8 kB / 430.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.175, allocations: 8.031 kB / 430.6 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.918e-05/0.175, allocations: 42.75 kB / 430.7 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.49e-05/0.1751, allocations: 16.84 kB / 430.7 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003637/0.1754, allocations: 219.4 kB / 430.9 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.297e-05/0.1755, allocations: 12.36 kB / 430.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.207e-05/0.1755, allocations: 12.38 kB / 430.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007072/0.1762, allocations: 251.2 kB / 431.2 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/0.1762, allocations: 4 kB / 431.2 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.311e-05/0.1763, allocations: 8 kB / 431.2 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.1763, allocations: 4 kB / 431.2 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003645/0.1766, allocations: 87.88 kB / 431.3 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001065/0.1777, allocations: 0.6037 MB / 431.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004937/0.1782, allocations: 135.9 kB / 432 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002285/0.1784, allocations: 70.62 kB / 432.1 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.31e-05/0.1785, allocations: 8 kB / 432.1 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.986e-05/0.1785, allocations: 34.56 kB / 432.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 2.494e-06/0.1785, allocations: 3.938 kB / 432.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0008037/0.1793, allocations: 181.7 kB / 432.3 MB, free: 15.28 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001582/0.1795, allocations: 123 kB / 432.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001707/0.1797, allocations: 128.2 kB / 432.5 MB, free: 15 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.897e-05/0.1797, allocations: 29.7 kB / 432.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.1798, allocations: 116 kB / 432.7 MB, free: 14.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.806e-05/0.1798, allocations: 19.86 kB / 432.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.1799, allocations: 37.7 kB / 432.7 MB, free: 14.78 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002072/0.1802, allocations: 322.8 kB / 433.1 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.1803, allocations: 35.97 kB / 433.1 MB, free: 14.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002821/0.1806, allocations: 140.1 kB / 433.2 MB, free: 14.24 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000464/0.1811, allocations: 193.5 kB / 433.4 MB, free: 14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.1811, allocations: 7.938 kB / 433.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005695/0.1816, allocations: 193.7 kB / 433.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.14e-05/0.1817, allocations: 4 kB / 433.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.1817, allocations: 4 kB / 433.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.712e-05/0.1817, allocations: 4 kB / 433.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002542/0.182, allocations: 47.91 kB / 433.7 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.943e-05/0.182, allocations: 7.938 kB / 433.7 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001691/0.1822, allocations: 19.94 kB / 433.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.564e-05/0.1822, allocations: 12 kB / 433.7 MB, free: 13.7 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.0002244/0.1824, allocations: 145.6 kB / 433.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002241/0.1826, allocations: 81.88 kB / 433.9 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001263/0.1828, allocations: 24.69 kB / 434 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.1828, allocations: 0 / 434 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.355e-05/0.1828, allocations: 4 kB / 434 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1828, allocations: 0 / 434 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005449/0.1833, allocations: 209.4 kB / 434.2 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.1833, allocations: 3.938 kB / 434.2 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002552/0.1836, allocations: 35.97 kB / 434.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.1836, allocations: 0 / 434.2 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.142e-05/0.1836, allocations: 12 kB / 434.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.1836, allocations: 0 / 434.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1836, allocations: 0 / 434.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007053/0.1843, allocations: 379.4 kB / 434.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.934e-05/0.1844, allocations: 96.97 kB / 434.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.944e-05/0.1844, allocations: 4 kB / 434.7 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.1846, allocations: 12.09 kB / 434.7 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.287e-05/0.1847, allocations: 7.922 kB / 434.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.1847, allocations: 4 kB / 434.7 MB, free: 12.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.958e-05/0.1848, allocations: 101.5 kB / 434.8 MB, free: 12.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1848, allocations: 4 kB / 434.8 MB, free: 12.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003616/0.1851, allocations: 24 kB / 434.8 MB, free: 12.46 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.001029/0.1861, allocations: 0.9176 MB / 435.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004091/0.1866, allocations: 123.8 kB / 435.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.1866, allocations: 0 / 435.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001352/0.1867, allocations: 28.86 kB / 435.9 MB, free: 11.37 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006025/0.1873, allocations: 48 kB / 436 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003167/0.1905, allocations: 2.067 MB / 438 MB, free: 9.082 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006559/0.1911, allocations: 0.7084 MB / 438.7 MB, free: 8.348 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.905e-05/0.1912, allocations: 17.08 kB / 438.7 MB, free: 8.332 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.1913, allocations: 35.42 kB / 438.8 MB, free: 8.297 MB / 366.1 MB Notification: Performance of SimCode: time 2.044e-06/0.1913, allocations: 0 / 438.8 MB, free: 8.297 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03284/0.2242, allocations: 2.82 MB / 441.6 MB, free: 5.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.588/8.812, allocations: 10.66 kB / 441.6 MB, free: 5.652 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000593942 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.798813918139786] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 8.887570798397064 9.148169205 8.971588113 Calling exit ...