Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.001386/0.001385, allocations: 121.4 kB / 18.45 MB, free: 4.59 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.001581/0.001581, allocations: 214.5 kB / 21.41 MB, free: 1.641 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.545/1.545, allocations: 227.7 MB / 251.9 MB, free: 15.86 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.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",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.003017/0.003017, allocations: 75.83 kB / 365.2 MB, free: 216 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1635/0.1666, allocations: 50.54 MB / 415.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.006773/0.1734, allocations: 2.391 MB / 418.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003245/0.1767, allocations: 0.8572 MB / 419 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003171/0.1771, allocations: 11.94 kB / 419 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004968/0.1776, allocations: 51.52 kB / 419.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004155/0.1781, allocations: 71.48 kB / 419.1 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.1793, allocations: 199.5 kB / 419.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008116/0.1801, allocations: 395.4 kB / 419.7 MB, free: 9.641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003738/0.1805, allocations: 111.5 kB / 419.8 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005096/0.181, allocations: 171.4 kB / 420 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004261/0.1815, allocations: 179.2 kB / 420.2 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.544e-05/0.1816, allocations: 36 kB / 420.2 MB, free: 9.148 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.813e-05/0.1817, allocations: 32 kB / 420.2 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001963/0.1819, allocations: 99.72 kB / 420.3 MB, free: 9.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000262/0.1822, allocations: 163.1 kB / 420.5 MB, free: 8.859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007503/0.1829, allocations: 382.3 kB / 420.9 MB, free: 8.484 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.039e-05/0.183, allocations: 0 / 420.9 MB, free: 8.484 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.9e-06/0.183, allocations: 0 / 420.9 MB, free: 8.484 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.189e-05/0.183, allocations: 4 kB / 420.9 MB, free: 8.48 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.002073/0.1851, allocations: 0.6701 MB / 421.5 MB, free: 7.762 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.575e-05/0.1852, allocations: 8.031 kB / 421.5 MB, free: 7.754 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001383/0.1853, allocations: 70.73 kB / 421.6 MB, free: 7.676 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001429/0.1855, allocations: 48.69 kB / 421.7 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000897/0.1864, allocations: 315.2 kB / 422 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003407/0.1867, allocations: 142.3 kB / 422.1 MB, free: 7.125 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.46e-05/0.1868, allocations: 32.31 kB / 422.1 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001707/0.1886, allocations: 0.5659 MB / 422.7 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.469e-05/0.1886, allocations: 3.984 kB / 422.7 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.016e-05/0.1887, allocations: 12 kB / 422.7 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.1887, allocations: 8 kB / 422.7 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002055/0.1908, allocations: 0.5035 MB / 423.2 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002168/0.1929, allocations: 1.034 MB / 424.3 MB, free: 4.867 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002259/0.1952, allocations: 0.4985 MB / 424.8 MB, free: 4.332 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006891/0.1959, allocations: 259.4 kB / 425 MB, free: 4.066 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.053e-05/0.196, allocations: 11.98 kB / 425 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/0.196, allocations: 42.5 kB / 425.1 MB, free: 4.004 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.785e-06/0.196, allocations: 0 / 425.1 MB, free: 4.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03936/0.2354, allocations: 5.762 MB / 430.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001369/0.2356, allocations: 149 kB / 431 MB, free: 14.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003452/0.2359, allocations: 262.5 kB / 431.2 MB, free: 13.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.647e-05/0.236, allocations: 37.7 kB / 431.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001306/0.2362, allocations: 157.7 kB / 431.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002346/0.2364, allocations: 194.4 kB / 431.6 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003192/0.2367, allocations: 114.6 kB / 431.7 MB, free: 13.28 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.2369, allocations: 342.8 kB / 432.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001779/0.2387, allocations: 0.6188 MB / 432.7 MB, free: 12.31 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001951/0.2407, allocations: 0.7963 MB / 433.5 MB, free: 11.44 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003519/0.2442, allocations: 1.255 MB / 434.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.2442, allocations: 0 / 434.7 MB, free: 10.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004012/0.2483, allocations: 1.398 MB / 436.1 MB, free: 8.695 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.971e-05/0.2483, allocations: 8 kB / 436.1 MB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.743e-05/0.2483, allocations: 7.984 kB / 436.1 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.283e-05/0.2484, allocations: 12 kB / 436.2 MB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001395/0.2498, allocations: 207.7 kB / 436.4 MB, free: 8.465 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.318e-05/0.2498, allocations: 11.94 kB / 436.4 MB, free: 8.453 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/0.2509, allocations: 107.8 kB / 436.5 MB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/0.251, allocations: 31.98 kB / 436.5 MB, free: 8.32 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0004688/0.2514, allocations: 201.5 kB / 436.7 MB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003788/0.2518, allocations: 165.2 kB / 436.9 MB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002019/0.252, allocations: 67.61 kB / 436.9 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.2521, allocations: 8 kB / 436.9 MB, free: 7.871 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.347e-05/0.2521, allocations: 4 kB / 436.9 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.2521, allocations: 3.984 kB / 436.9 MB, free: 7.863 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005332/0.2574, allocations: 2.184 MB / 439.1 MB, free: 5.496 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.544e-05/0.2575, allocations: 12 kB / 439.1 MB, free: 5.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008275/0.2583, allocations: 183.7 kB / 439.3 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.945e-05/0.2583, allocations: 12 kB / 439.3 MB, free: 5.293 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.406e-05/0.2584, allocations: 27.98 kB / 439.4 MB, free: 5.266 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.087e-05/0.2584, allocations: 19.94 kB / 439.4 MB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.488e-05/0.2584, allocations: 16.12 kB / 439.4 MB, free: 5.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003794/0.2622, allocations: 1.568 MB / 441 MB, free: 3.508 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002993/0.2626, allocations: 176.7 kB / 441.1 MB, free: 3.316 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.762e-05/0.2627, allocations: 27.98 kB / 441.2 MB, free: 3.289 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006277/0.2633, allocations: 83.97 kB / 441.2 MB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002261/0.2635, allocations: 95.61 kB / 441.3 MB, free: 3.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.117e-05/0.2636, allocations: 28 kB / 441.4 MB, free: 3.086 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002231/0.2638, allocations: 186 kB / 441.5 MB, free: 2.906 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2638, allocations: 0 / 441.5 MB, free: 2.906 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000761/0.2646, allocations: 127.9 kB / 441.7 MB, free: 2.781 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.003996/0.2686, allocations: 2.131 MB / 443.8 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.2061/0.4747, allocations: 1.138 MB / 444.9 MB, free: 30.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.561e-05/0.4748, allocations: 0.75 kB / 444.9 MB, free: 30.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.4758, allocations: 340.6 kB / 445.3 MB, free: 30.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/0.4768, allocations: 154.7 kB / 445.4 MB, free: 30.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0122/0.4891, allocations: 6.901 MB / 452.3 MB, free: 28.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003621/0.4895, allocations: 0.8316 MB / 453.2 MB, free: 27.59 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005363/0.49, allocations: 103 kB / 453.3 MB, free: 27.56 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003683/0.4904, allocations: 121.8 kB / 453.4 MB, free: 27.55 MB / 366.1 MB Notification: Performance of SimCode: time 1.273e-06/0.4904, allocations: 7.234 kB / 453.4 MB, free: 27.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03806/0.5285, allocations: 11.64 MB / 465 MB, free: 24.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.957/9.486, allocations: 5.859 kB / 465 MB, free: 24.68 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000499563 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.11665186099708] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 9.581074574962258 9.600283479 9.413823218 Calling exit ...