Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001894/0.001894, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.002321/0.002321, allocations: 212 kB / 24.54 MB, free: 4.016 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.485/1.485, allocations: 230.6 MB / 258.3 MB, free: 8.059 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.SubClocked,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",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.002036/0.002036, allocations: 64.78 kB / 378.5 MB, free: 3.277 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.2692, allocations: 53.37 MB / 431.9 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.00411/0.2733, allocations: 2.397 MB / 434.3 MB, free: 4.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001775/0.2751, allocations: 0.8533 MB / 435.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001918/0.2752, allocations: 7.938 kB / 435.2 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003297/0.2756, allocations: 55.58 kB / 435.2 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000218/0.2758, allocations: 63.48 kB / 435.3 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005627/0.2764, allocations: 170.4 kB / 435.4 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000449/0.2768, allocations: 391.5 kB / 435.8 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001989/0.277, allocations: 76.34 kB / 435.9 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003273/0.2773, allocations: 167.5 kB / 436.1 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002789/0.2776, allocations: 183.2 kB / 436.2 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.429e-05/0.2777, allocations: 39.94 kB / 436.3 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.429e-05/0.2777, allocations: 36 kB / 436.3 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.2778, allocations: 95.67 kB / 436.4 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001519/0.278, allocations: 151.2 kB / 436.6 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004541/0.2784, allocations: 335.5 kB / 436.9 MB, free: 1.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.2785, allocations: 4 kB / 436.9 MB, free: 1.926 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2785, allocations: 3.938 kB / 436.9 MB, free: 1.922 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.694e-06/0.2785, allocations: 0 / 436.9 MB, free: 1.922 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001211/0.2797, allocations: 0.5444 MB / 437.4 MB, free: 1.348 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.2797, allocations: 8.031 kB / 437.4 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001142/0.2798, allocations: 70.72 kB / 437.5 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.66e-05/0.2799, allocations: 40.7 kB / 437.6 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004662/0.2804, allocations: 226.5 kB / 437.8 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003283/0.2807, allocations: 347.9 kB / 438.1 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.911e-05/0.2808, allocations: 28.38 kB / 438.1 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001176/0.2819, allocations: 0.562 MB / 438.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.282, allocations: 0 / 438.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.432e-05/0.282, allocations: 12 kB / 438.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.518e-05/0.282, allocations: 8 kB / 438.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001267/0.2833, allocations: 0.5113 MB / 439.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00161/0.2849, allocations: 0.953 MB / 440.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001477/0.2864, allocations: 478.5 kB / 440.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000592/0.2869, allocations: 247.5 kB / 440.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.311e-05/0.287, allocations: 7.938 kB / 440.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.287, allocations: 38.56 kB / 440.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.833e-06/0.287, allocations: 0 / 440.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03705/0.3241, allocations: 5.742 MB / 446.7 MB, free: 7.836 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001319/0.3242, allocations: 145 kB / 446.8 MB, free: 7.664 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002711/0.3245, allocations: 204.7 kB / 447 MB, free: 7.453 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.98e-05/0.3246, allocations: 37.7 kB / 447.1 MB, free: 7.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.3247, allocations: 141.8 kB / 447.2 MB, free: 7.266 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002083/0.3249, allocations: 198.3 kB / 447.4 MB, free: 7.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000287/0.3252, allocations: 118.6 kB / 447.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001608/0.3253, allocations: 342.8 kB / 447.8 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001504/0.3269, allocations: 0.6188 MB / 448.5 MB, free: 5.984 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001633/0.3285, allocations: 0.7963 MB / 449.3 MB, free: 5.113 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002848/0.3313, allocations: 1.247 MB / 450.5 MB, free: 3.789 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.3313, allocations: 4 kB / 450.5 MB, free: 3.785 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003385/0.3347, allocations: 1.394 MB / 451.9 MB, free: 2.383 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.919e-05/0.3348, allocations: 8 kB / 451.9 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.3348, allocations: 8 kB / 451.9 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.738e-05/0.3348, allocations: 8 kB / 451.9 MB, free: 2.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/0.3361, allocations: 215.8 kB / 452.1 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.989e-05/0.3361, allocations: 11.98 kB / 452.1 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008768/0.337, allocations: 99.8 kB / 452.2 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.355e-05/0.3371, allocations: 27.98 kB / 452.3 MB, free: 2.012 MB / 350.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.0003303/0.3374, allocations: 185.6 kB / 452.5 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003188/0.3377, allocations: 157.3 kB / 452.6 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001602/0.3379, allocations: 63.3 kB / 452.7 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.059e-05/0.3379, allocations: 8 kB / 452.7 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.3379, allocations: 240 / 452.7 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.835e-06/0.3379, allocations: 7.984 kB / 452.7 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004668/0.3426, allocations: 2.14 MB / 454.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-05/0.3426, allocations: 12.22 kB / 454.8 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007305/0.3433, allocations: 183.7 kB / 455 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.654e-05/0.3434, allocations: 15.98 kB / 455 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.575e-05/0.3434, allocations: 24 kB / 455.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-05/0.3434, allocations: 19.94 kB / 455.1 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.304e-05/0.3434, allocations: 15.88 kB / 455.1 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003018/0.3465, allocations: 1.557 MB / 456.6 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002061/0.3467, allocations: 91.58 kB / 456.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.221e-05/0.3467, allocations: 31.98 kB / 456.8 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000558/0.3473, allocations: 79.98 kB / 456.8 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000193/0.3475, allocations: 95.64 kB / 456.9 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.618e-05/0.3475, allocations: 35.98 kB / 457 MB, free: 12.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001378/0.3477, allocations: 141.2 kB / 457.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3477, allocations: 0 / 457.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006514/0.3483, allocations: 123.9 kB / 457.2 MB, free: 12.71 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.003397/0.3517, allocations: 2.117 MB / 459.4 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002638/0.3544, allocations: 1.025 MB / 460.4 MB, free: 9.406 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.306e-06/0.3544, allocations: 5.375 kB / 460.4 MB, free: 9.402 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009397/0.3553, allocations: 333.8 kB / 460.7 MB, free: 9.078 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009079/0.3562, allocations: 139.6 kB / 460.8 MB, free: 8.941 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01303/0.3693, allocations: 6.777 MB / 467.6 MB, free: 1.672 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005399/0.3698, allocations: 0.8128 MB / 468.4 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005399/0.3703, allocations: 95.33 kB / 468.5 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003898/0.3707, allocations: 119.4 kB / 468.6 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of SimCode: time 7.21e-07/0.3707, allocations: 3.938 kB / 468.6 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04439/0.4151, allocations: 11.93 MB / 480.6 MB, free: 4.773 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.384/8.799, allocations: 14.08 kB / 480.6 MB, free: 4.766 MB / 382.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_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_SubClocked.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.303011671174318] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 8.877971604000777 8.901597645 8.61964234 Calling exit ...