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.0014/0.0014, allocations: 120.4 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.001484/0.001484, allocations: 208.9 kB / 21.46 MB, free: 1.625 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.587/1.587, allocations: 230.5 MB / 254.7 MB, free: 14.99 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.00239/0.00239, allocations: 68.06 kB / 373.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.122/0.1244, allocations: 53.31 MB / 426.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004699/0.1291, allocations: 2.418 MB / 429.3 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002378/0.1314, allocations: 0.8728 MB / 430.1 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004248/0.1319, allocations: 15.88 kB / 430.2 MB, free: 1.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004586/0.1323, allocations: 55.56 kB / 430.2 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004697/0.1328, allocations: 63.48 kB / 430.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00088/0.1337, allocations: 203.6 kB / 430.5 MB, free: 1.234 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000706/0.1344, allocations: 391.4 kB / 430.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002636/0.1346, allocations: 75.52 kB / 430.9 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000466/0.1351, allocations: 175.4 kB / 431.1 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000347/0.1354, allocations: 183.2 kB / 431.3 MB, free: 432 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001001/0.1355, allocations: 36 kB / 431.3 MB, free: 396 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.244e-05/0.1356, allocations: 32 kB / 431.3 MB, free: 364 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001481/0.1358, allocations: 115.6 kB / 431.5 MB, free: 248 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001984/0.136, allocations: 163.1 kB / 431.6 MB, free: 84 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2526/0.3886, allocations: 362.7 kB / 432 MB, free: 8.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.566e-06/0.3886, allocations: 2.781 kB / 432 MB, free: 8.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3886, allocations: 0 / 432 MB, free: 8.09 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.299e-05/0.3886, allocations: 0.7656 kB / 432 MB, free: 8.09 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.001536/0.3901, allocations: 0.6794 MB / 432.7 MB, free: 7.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.3902, allocations: 9.156 kB / 432.7 MB, free: 7.625 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.232e-05/0.3903, allocations: 71.52 kB / 432.7 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.3904, allocations: 45.36 kB / 432.8 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005972/0.391, allocations: 309.1 kB / 433.1 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002293/0.3912, allocations: 141.4 kB / 433.2 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.343e-05/0.3913, allocations: 35.34 kB / 433.3 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.3927, allocations: 0.5672 MB / 433.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.665e-05/0.3927, allocations: 1.656 kB / 433.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.437e-05/0.3928, allocations: 12.25 kB / 433.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.64e-05/0.3928, allocations: 11.88 kB / 433.8 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001381/0.3942, allocations: 0.5045 MB / 434.4 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001862/0.396, allocations: 1.028 MB / 435.4 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00169/0.3977, allocations: 482.6 kB / 435.9 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006976/0.3984, allocations: 235.2 kB / 436.1 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.828e-05/0.3985, allocations: 10.81 kB / 436.1 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/0.3985, allocations: 45.22 kB / 436.1 MB, free: 6.426 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.855e-06/0.3985, allocations: 1.5 kB / 436.1 MB, free: 6.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04116/0.4397, allocations: 5.766 MB / 441.9 MB, free: 6.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.4398, allocations: 148.5 kB / 442 MB, free: 5.848 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004312/0.4402, allocations: 257.1 kB / 442.3 MB, free: 5.695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.4404, allocations: 37.08 kB / 442.3 MB, free: 5.656 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001159/0.4405, allocations: 151.2 kB / 442.5 MB, free: 5.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002227/0.4407, allocations: 202.1 kB / 442.7 MB, free: 5.367 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003305/0.441, allocations: 115.6 kB / 442.8 MB, free: 5.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.4411, allocations: 349.9 kB / 443.1 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001653/0.4428, allocations: 0.613 MB / 443.7 MB, free: 4.734 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001795/0.4446, allocations: 0.7968 MB / 444.5 MB, free: 4.266 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003042/0.4476, allocations: 1.247 MB / 445.8 MB, free: 3.613 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.218e-06/0.4476, allocations: 1.031 kB / 445.8 MB, free: 3.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003903/0.4515, allocations: 1.407 MB / 447.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.539e-05/0.4516, allocations: 12.19 kB / 447.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.177e-05/0.4516, allocations: 5.688 kB / 447.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.604e-05/0.4516, allocations: 8.531 kB / 447.2 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001475/0.4531, allocations: 209.7 kB / 447.4 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.553e-05/0.4531, allocations: 12.47 kB / 447.4 MB, free: 3.051 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001049/0.4542, allocations: 109.1 kB / 447.6 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.918e-05/0.4543, allocations: 25.69 kB / 447.6 MB, free: 3.023 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.0003838/0.4547, allocations: 191.1 kB / 447.8 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003656/0.455, allocations: 163.6 kB / 447.9 MB, free: 2.785 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001895/0.4552, allocations: 67.52 kB / 448 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.62e-05/0.4552, allocations: 8.812 kB / 448 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.427e-05/0.4552, allocations: 0 / 448 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.998e-06/0.4553, allocations: 6.172 kB / 448 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005022/0.4603, allocations: 2.189 MB / 450.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.202e-05/0.4603, allocations: 10.98 kB / 450.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008393/0.4611, allocations: 181.4 kB / 450.4 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.217e-05/0.4612, allocations: 14.47 kB / 450.4 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.237e-05/0.4612, allocations: 23.88 kB / 450.4 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-05/0.4612, allocations: 25.52 kB / 450.4 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.582e-05/0.4613, allocations: 21.44 kB / 450.5 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003192/0.4645, allocations: 1.573 MB / 452 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003156/0.4648, allocations: 177.1 kB / 452.2 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.404e-05/0.4649, allocations: 31.95 kB / 452.2 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006479/0.4655, allocations: 75.58 kB / 452.3 MB, free: 244 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000224/0.4657, allocations: 100.8 kB / 452.4 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.53e-05/0.4658, allocations: 29.34 kB / 452.4 MB, free: 184 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002191/0.466, allocations: 185.6 kB / 452.6 MB, free: 56 kB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.466, allocations: 0 / 452.6 MB, free: 56 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008349/0.4668, allocations: 124.1 kB / 452.7 MB, free: 36 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.004089/0.4709, allocations: 2.135 MB / 454.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003127/0.474, allocations: 1.025 MB / 455.9 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.601e-05/0.4741, allocations: 6.25 kB / 455.9 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001179/0.4752, allocations: 332.9 kB / 456.2 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001191/0.4764, allocations: 149.5 kB / 456.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01649/0.4929, allocations: 6.912 MB / 463.3 MB, free: 8.469 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006641/0.4936, allocations: 0.827 MB / 464.1 MB, free: 7.715 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006533/0.4942, allocations: 106.3 kB / 464.2 MB, free: 7.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004024/0.4946, allocations: 117.9 kB / 464.3 MB, free: 7.574 MB / 366.1 MB Notification: Performance of SimCode: time 2.084e-06/0.4946, allocations: 0 / 464.3 MB, free: 7.574 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05259/0.5472, allocations: 11.71 MB / 476 MB, free: 14.03 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.299/9.847, allocations: 7.922 kB / 476.1 MB, free: 14.02 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 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.399426504038274] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 9.925894421059638 9.948588815 9.555299842 Calling exit ...