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.001771/0.001771, allocations: 109 kB / 21.23 MB, free: 0.6641 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.002135/0.002135, allocations: 213.9 kB / 24.54 MB, free: 4.02 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.467/1.467, allocations: 230.6 MB / 258.3 MB, free: 8.016 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.001995/0.001995, allocations: 68.55 kB / 378.5 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2869/0.2889, allocations: 53.36 MB / 431.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.00393/0.2928, allocations: 2.428 MB / 434.3 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001786/0.2946, allocations: 0.8766 MB / 435.2 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002078/0.2948, allocations: 15.88 kB / 435.2 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003072/0.2951, allocations: 55.55 kB / 435.3 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002274/0.2953, allocations: 63.48 kB / 435.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000668/0.296, allocations: 203.5 kB / 435.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004759/0.2965, allocations: 395.5 kB / 435.9 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001917/0.2967, allocations: 75.86 kB / 436 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003345/0.297, allocations: 179.4 kB / 436.2 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002805/0.2973, allocations: 187.2 kB / 436.4 MB, free: 2.414 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.59e-05/0.2973, allocations: 32 kB / 436.4 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.753e-05/0.2974, allocations: 40 kB / 436.4 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001244/0.2975, allocations: 107.6 kB / 436.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001671/0.2977, allocations: 167 kB / 436.7 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004727/0.2982, allocations: 371.2 kB / 437.1 MB, free: 1.715 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.2982, allocations: 0 / 437.1 MB, free: 1.715 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.2982, allocations: 0 / 437.1 MB, free: 1.715 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.156e-05/0.2982, allocations: 0 / 437.1 MB, free: 1.715 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001294/0.2995, allocations: 0.6065 MB / 437.7 MB, free: 1.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.2995, allocations: 8.031 kB / 437.7 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.409e-05/0.2996, allocations: 70.72 kB / 437.7 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.117e-05/0.2997, allocations: 44.7 kB / 437.8 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004209/0.3001, allocations: 257.3 kB / 438 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003258/0.3004, allocations: 351.9 kB / 438.4 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.504e-05/0.3005, allocations: 28.38 kB / 438.4 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/0.3017, allocations: 0.5737 MB / 439 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.3017, allocations: 4 kB / 439 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.552e-05/0.3017, allocations: 12 kB / 439 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.215e-05/0.3018, allocations: 8 kB / 439 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001286/0.303, allocations: 0.5019 MB / 439.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.3047, allocations: 0.9686 MB / 440.5 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001523/0.3062, allocations: 486.5 kB / 440.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005746/0.3068, allocations: 231.4 kB / 441.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.865e-05/0.3068, allocations: 7.984 kB / 441.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.563e-05/0.3069, allocations: 46.5 kB / 441.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.084e-06/0.3069, allocations: 0 / 441.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03735/0.3442, allocations: 5.777 MB / 447 MB, free: 7.473 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/0.3443, allocations: 152.9 kB / 447.2 MB, free: 7.293 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003309/0.3447, allocations: 253.9 kB / 447.4 MB, free: 7.039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.203e-05/0.3448, allocations: 41.7 kB / 447.4 MB, free: 6.992 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.3449, allocations: 149.7 kB / 447.6 MB, free: 6.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002019/0.3451, allocations: 198.3 kB / 447.8 MB, free: 6.645 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002917/0.3454, allocations: 118.6 kB / 447.9 MB, free: 6.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.3455, allocations: 346.8 kB / 448.2 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001497/0.347, allocations: 0.6149 MB / 448.9 MB, free: 5.559 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001647/0.3487, allocations: 0.7924 MB / 449.6 MB, free: 4.691 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002889/0.3516, allocations: 1.251 MB / 450.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.3516, allocations: 0 / 450.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003431/0.355, allocations: 1.406 MB / 452.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.107e-05/0.355, allocations: 10.66 kB / 452.3 MB, free: 1.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.74e-05/0.3551, allocations: 8 kB / 452.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.749e-05/0.3551, allocations: 8 kB / 452.3 MB, free: 1.926 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/0.3564, allocations: 207.7 kB / 452.5 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.345e-05/0.3564, allocations: 16.23 kB / 452.5 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009165/0.3574, allocations: 95.88 kB / 452.6 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/0.3575, allocations: 35.92 kB / 452.7 MB, free: 1.578 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.0003578/0.3578, allocations: 185.6 kB / 452.9 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003386/0.3582, allocations: 177.2 kB / 453 MB, free: 1.207 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001798/0.3583, allocations: 71.61 kB / 453.1 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/0.3583, allocations: 8 kB / 453.1 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.3584, allocations: 4 kB / 453.1 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.3584, allocations: 3.984 kB / 453.1 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004806/0.3632, allocations: 2.152 MB / 455.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.487e-05/0.3632, allocations: 8.328 kB / 455.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007544/0.3639, allocations: 179.7 kB / 455.5 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-05/0.364, allocations: 20.47 kB / 455.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.647e-05/0.364, allocations: 35.98 kB / 455.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.038e-05/0.364, allocations: 19.88 kB / 455.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.568e-05/0.3641, allocations: 19.92 kB / 455.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0032/0.3673, allocations: 1.553 MB / 457.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00026/0.3675, allocations: 111.7 kB / 457.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.806e-05/0.3676, allocations: 31.98 kB / 457.2 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005435/0.3681, allocations: 71.92 kB / 457.3 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000206/0.3683, allocations: 99.64 kB / 457.4 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.093e-05/0.3684, allocations: 28 kB / 457.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001947/0.3686, allocations: 185.2 kB / 457.6 MB, free: 12.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3686, allocations: 4 kB / 457.6 MB, free: 12.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006535/0.3692, allocations: 127.9 kB / 457.7 MB, free: 12.16 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.003401/0.3726, allocations: 2.137 MB / 459.9 MB, free: 9.875 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002627/0.3753, allocations: 1.03 MB / 460.9 MB, free: 8.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.3753, allocations: 0 / 460.9 MB, free: 8.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009322/0.3762, allocations: 330.3 kB / 461.2 MB, free: 8.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000961/0.3772, allocations: 147.1 kB / 461.4 MB, free: 8.375 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01329/0.3905, allocations: 6.91 MB / 468.3 MB, free: 0.9648 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005434/0.391, allocations: 0.8245 MB / 469.1 MB, free: 116 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005298/0.3915, allocations: 104.1 kB / 469.2 MB, free: 8 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004063/0.3919, allocations: 123.4 kB / 469.3 MB, free: 15.88 MB / 382.1 MB Notification: Performance of SimCode: time 1.493e-06/0.3919, allocations: 0 / 469.3 MB, free: 15.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04571/0.4377, allocations: 12.28 MB / 481.6 MB, free: 3.719 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.435/8.872, allocations: 2.234 kB / 481.6 MB, free: 3.719 MB / 382.1 MB " [Timeout remaining time 651] (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: 11.32194496691227] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 8.946453474927694 8.96063348 8.659490385 Calling exit ...