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.001874/0.001874, 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.002333/0.002333, allocations: 213.2 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.532/1.532, allocations: 230.6 MB / 258.3 MB, free: 8.074 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.002574/0.002574, allocations: 68.77 kB / 378.5 MB, free: 3.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3051, allocations: 53.37 MB / 431.9 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004277/0.3094, allocations: 2.427 MB / 434.3 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001887/0.3113, allocations: 0.8805 MB / 435.2 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002166/0.3115, allocations: 15.88 kB / 435.2 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003329/0.3118, allocations: 55.56 kB / 435.3 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002633/0.3121, allocations: 59.5 kB / 435.3 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007417/0.3128, allocations: 203.6 kB / 435.5 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005571/0.3134, allocations: 399.4 kB / 435.9 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002132/0.3136, allocations: 73.98 kB / 436 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003615/0.314, allocations: 179.4 kB / 436.2 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002962/0.3143, allocations: 187.2 kB / 436.4 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.939e-05/0.3143, allocations: 32 kB / 436.4 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.197e-05/0.3144, allocations: 36 kB / 436.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001564/0.3145, allocations: 111.6 kB / 436.5 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001671/0.3147, allocations: 159.1 kB / 436.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005599/0.3153, allocations: 374.3 kB / 437.1 MB, free: 1.895 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.025e-05/0.3153, allocations: 4 kB / 437.1 MB, free: 1.891 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3153, allocations: 4 kB / 437.1 MB, free: 1.887 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.3153, allocations: 4 kB / 437.1 MB, free: 1.883 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.001521/0.3168, allocations: 0.5971 MB / 437.7 MB, free: 1.254 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.177e-05/0.3169, allocations: 8.031 kB / 437.7 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.898e-05/0.317, allocations: 70.72 kB / 437.7 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.542e-05/0.3171, allocations: 44.7 kB / 437.8 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006017/0.3177, allocations: 257.3 kB / 438 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003794/0.318, allocations: 359.8 kB / 438.4 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.537e-05/0.3181, allocations: 24.38 kB / 438.4 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.3194, allocations: 0.5698 MB / 439 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.208e-05/0.3194, allocations: 0 / 439 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.715e-05/0.3195, allocations: 12 kB / 439 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.3195, allocations: 8 kB / 439 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001386/0.3209, allocations: 0.5152 MB / 439.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001727/0.3226, allocations: 0.9569 MB / 440.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001613/0.3242, allocations: 482.5 kB / 440.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006348/0.3249, allocations: 240.8 kB / 441.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.271e-05/0.3249, allocations: 4 kB / 441.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.837e-05/0.325, allocations: 42.5 kB / 441.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.434e-06/0.325, allocations: 0 / 441.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03986/0.3648, allocations: 5.775 MB / 447 MB, free: 7.656 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001823/0.365, allocations: 148.9 kB / 447.1 MB, free: 7.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004476/0.3654, allocations: 261.9 kB / 447.4 MB, free: 7.219 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.769e-05/0.3655, allocations: 37.7 kB / 447.4 MB, free: 7.176 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001426/0.3657, allocations: 149.7 kB / 447.6 MB, free: 7.023 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002656/0.3659, allocations: 202.3 kB / 447.8 MB, free: 6.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003392/0.3663, allocations: 118.6 kB / 447.9 MB, free: 6.699 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002334/0.3665, allocations: 342.8 kB / 448.2 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001631/0.3681, allocations: 0.6149 MB / 448.8 MB, free: 5.742 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001778/0.3699, allocations: 0.8002 MB / 449.6 MB, free: 4.867 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003091/0.373, allocations: 1.247 MB / 450.9 MB, free: 3.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.007e-05/0.373, allocations: 0 / 450.9 MB, free: 3.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003751/0.3768, allocations: 1.406 MB / 452.3 MB, free: 2.129 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.473e-05/0.3768, allocations: 8 kB / 452.3 MB, free: 2.121 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.453e-05/0.3768, allocations: 8 kB / 452.3 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.404e-05/0.3769, allocations: 8.375 kB / 452.3 MB, free: 2.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/0.3783, allocations: 207.8 kB / 452.5 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.445e-05/0.3783, allocations: 11.94 kB / 452.5 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000973/0.3793, allocations: 103.8 kB / 452.6 MB, free: 1.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.832e-05/0.3794, allocations: 31.94 kB / 452.7 MB, free: 1.758 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.0004091/0.3798, allocations: 193.6 kB / 452.9 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004033/0.3802, allocations: 173.2 kB / 453 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002087/0.3804, allocations: 67.84 kB / 453.1 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.3804, allocations: 8 kB / 453.1 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/0.3804, allocations: 0 / 453.1 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.241e-05/0.3804, allocations: 11.91 kB / 453.1 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005034/0.3855, allocations: 2.151 MB / 455.3 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.632e-05/0.3855, allocations: 8.188 kB / 455.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007622/0.3862, allocations: 183.7 kB / 455.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.698e-05/0.3863, allocations: 16 kB / 455.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.274e-05/0.3863, allocations: 24 kB / 455.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.257e-05/0.3863, allocations: 23.86 kB / 455.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.279e-05/0.3864, allocations: 15.94 kB / 455.5 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003287/0.3896, allocations: 1.561 MB / 457.1 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002994/0.3899, allocations: 107.6 kB / 457.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.016e-05/0.39, allocations: 24 kB / 457.2 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005772/0.3906, allocations: 79.97 kB / 457.3 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002249/0.3908, allocations: 99.64 kB / 457.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.002e-05/0.3909, allocations: 28 kB / 457.4 MB, free: 12.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002129/0.3911, allocations: 185.2 kB / 457.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3911, allocations: 0 / 457.6 MB, free: 12.48 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007032/0.3918, allocations: 131.9 kB / 457.7 MB, free: 12.35 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.003564/0.3954, allocations: 2.137 MB / 459.9 MB, free: 10.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002852/0.3982, allocations: 1.029 MB / 460.9 MB, free: 9.023 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/0.3982, allocations: 1.375 kB / 460.9 MB, free: 9.023 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001016/0.3992, allocations: 333.9 kB / 461.2 MB, free: 8.699 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.4003, allocations: 155.2 kB / 461.4 MB, free: 8.547 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01426/0.4145, allocations: 6.902 MB / 468.3 MB, free: 1.145 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000567/0.4151, allocations: 0.8284 MB / 469.1 MB, free: 296 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005827/0.4157, allocations: 100.1 kB / 469.2 MB, free: 192 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000391/0.4161, allocations: 115.4 kB / 469.3 MB, free: 76 kB / 366.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4161, allocations: 0 / 469.3 MB, free: 76 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04384/0.4599, allocations: 12.29 MB / 481.6 MB, free: 3.895 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.354/9.814, allocations: 6.375 kB / 481.6 MB, free: 3.895 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.36434443993494] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 9.893300700932741 9.910555541 9.591514504 Calling exit ...