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.001707/0.001707, allocations: 121.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.002101/0.002101, allocations: 205 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.563/1.563, 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.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.002068/0.002068, allocations: 71.83 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1247, allocations: 53.33 MB / 427 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.00429/0.1289, allocations: 2.401 MB / 429.4 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001928/0.1309, allocations: 0.8729 MB / 430.3 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001734/0.131, allocations: 11.88 kB / 430.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000306/0.1314, allocations: 51.52 kB / 430.3 MB, free: 1.445 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002248/0.1316, allocations: 67.48 kB / 430.4 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005636/0.1321, allocations: 210.6 kB / 430.6 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004691/0.1326, allocations: 395.5 kB / 431 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.1328, allocations: 67.52 kB / 431.1 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003137/0.1331, allocations: 183.4 kB / 431.2 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002644/0.1334, allocations: 183.2 kB / 431.4 MB, free: 368 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.659e-05/0.1334, allocations: 36 kB / 431.4 MB, free: 332 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.223e-05/0.1335, allocations: 32 kB / 431.5 MB, free: 300 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.1336, allocations: 119.6 kB / 431.6 MB, free: 180 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.1338, allocations: 155.1 kB / 431.7 MB, free: 24 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2822/0.416, allocations: 367.5 kB / 432.1 MB, free: 8.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.217e-06/0.416, allocations: 0 / 432.1 MB, free: 8.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.416, allocations: 0.5625 kB / 432.1 MB, free: 8.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.939e-06/0.416, allocations: 2.25 kB / 432.1 MB, free: 8.086 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.001399/0.4174, allocations: 0.6794 MB / 432.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.738e-05/0.4175, allocations: 11.22 kB / 432.8 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.42e-05/0.4176, allocations: 70.7 kB / 432.9 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001125/0.4177, allocations: 45.61 kB / 432.9 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005492/0.4182, allocations: 313.5 kB / 433.2 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002348/0.4185, allocations: 141.8 kB / 433.4 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.79e-05/0.4185, allocations: 27.25 kB / 433.4 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.4199, allocations: 0.5668 MB / 433.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.4199, allocations: 1.094 kB / 433.9 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.809e-05/0.42, allocations: 12.69 kB / 434 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.42, allocations: 6.594 kB / 434 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001405/0.4214, allocations: 0.5083 MB / 434.5 MB, free: 7.145 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001527/0.4229, allocations: 1.029 MB / 435.5 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001687/0.4246, allocations: 484.7 kB / 436 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006463/0.4252, allocations: 232.8 kB / 436.2 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.587e-05/0.4253, allocations: 10.94 kB / 436.2 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.4253, allocations: 44.75 kB / 436.3 MB, free: 6.422 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.194e-06/0.4253, allocations: 1.312 kB / 436.3 MB, free: 6.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04025/0.4656, allocations: 5.771 MB / 442 MB, free: 5.988 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.909e-05/0.4656, allocations: 149.4 kB / 442.2 MB, free: 5.824 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003021/0.4659, allocations: 257.6 kB / 442.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.914e-05/0.466, allocations: 40.05 kB / 442.5 MB, free: 5.637 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.212e-05/0.4661, allocations: 152.9 kB / 442.6 MB, free: 5.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001971/0.4663, allocations: 201.2 kB / 442.8 MB, free: 5.348 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002897/0.4666, allocations: 115.3 kB / 442.9 MB, free: 5.285 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.275e-05/0.4667, allocations: 342 kB / 443.3 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001661/0.4683, allocations: 0.622 MB / 443.9 MB, free: 4.715 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001686/0.47, allocations: 0.7946 MB / 444.7 MB, free: 4.254 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00315/0.4732, allocations: 1.252 MB / 445.9 MB, free: 3.598 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/0.4732, allocations: 1.156 kB / 445.9 MB, free: 3.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003948/0.4771, allocations: 1.4 MB / 447.3 MB, free: 3.047 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.268e-05/0.4772, allocations: 8.234 kB / 447.3 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.764e-05/0.4772, allocations: 9.562 kB / 447.3 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.44e-05/0.4772, allocations: 9.25 kB / 447.4 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001401/0.4786, allocations: 210.9 kB / 447.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.319e-05/0.4786, allocations: 15.78 kB / 447.6 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009461/0.4796, allocations: 103.1 kB / 447.7 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.509e-05/0.4797, allocations: 25.56 kB / 447.7 MB, free: 3.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.0003166/0.48, allocations: 196.4 kB / 447.9 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003082/0.4803, allocations: 172.5 kB / 448.1 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000175/0.4805, allocations: 66.97 kB / 448.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.4805, allocations: 8.188 kB / 448.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.636e-05/0.4805, allocations: 2.875 kB / 448.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/0.4805, allocations: 5.656 kB / 448.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004666/0.4852, allocations: 2.182 MB / 450.3 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.641e-05/0.4852, allocations: 10.06 kB / 450.3 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007492/0.4859, allocations: 183.7 kB / 450.5 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.606e-05/0.486, allocations: 14.09 kB / 450.5 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.851e-05/0.486, allocations: 30.78 kB / 450.6 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.987e-05/0.486, allocations: 21.05 kB / 450.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.41e-05/0.486, allocations: 17.28 kB / 450.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00312/0.4892, allocations: 1.569 MB / 452.2 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002188/0.4894, allocations: 176.8 kB / 452.3 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.007e-05/0.4895, allocations: 33.89 kB / 452.4 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006093/0.4901, allocations: 76.27 kB / 452.4 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002152/0.4903, allocations: 94.16 kB / 452.5 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.506e-05/0.4904, allocations: 33.12 kB / 452.6 MB, free: 152 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001857/0.4905, allocations: 185.9 kB / 452.8 MB, free: 24 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4905, allocations: 0 / 452.8 MB, free: 24 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007613/0.4913, allocations: 118.9 kB / 452.9 MB, free: 8 kB / 350.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.003976/0.4953, allocations: 2.138 MB / 455 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003048/0.4983, allocations: 1.029 MB / 456 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.907e-06/0.4983, allocations: 5.625 kB / 456 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.4994, allocations: 337.4 kB / 456.4 MB, free: 13.67 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.5005, allocations: 137.4 kB / 456.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01484/0.5153, allocations: 6.907 MB / 463.4 MB, free: 8.453 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005358/0.5158, allocations: 0.8357 MB / 464.2 MB, free: 7.691 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005196/0.5163, allocations: 98.78 kB / 464.3 MB, free: 7.641 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004128/0.5168, allocations: 120.8 kB / 464.5 MB, free: 7.551 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5168, allocations: 4 kB / 464.5 MB, free: 7.547 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05894/0.5757, allocations: 11.71 MB / 476.2 MB, free: 13.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.997/9.572, allocations: 4 kB / 476.2 MB, free: 13.98 MB / 382.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.223157172091305] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 9.64985934086144 9.669771735 9.249669211 Calling exit ...