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.00168/0.00168, allocations: 109.4 kB / 19.8 MB, free: 2.5 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.002076/0.002076, allocations: 221.3 kB / 23 MB, free: 5.582 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.57/1.57, allocations: 230.5 MB / 256.5 MB, free: 8.184 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.001929/0.001929, allocations: 59.89 kB / 376.2 MB, free: 4.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3001/0.302, allocations: 53.31 MB / 429.5 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004222/0.3062, allocations: 2.431 MB / 431.9 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.308, allocations: 0.8767 MB / 432.8 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001912/0.3082, allocations: 7.938 kB / 432.8 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003036/0.3085, allocations: 55.56 kB / 432.9 MB, free: 4.023 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002511/0.3088, allocations: 71.48 kB / 432.9 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006785/0.3094, allocations: 195.6 kB / 433.1 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004846/0.3099, allocations: 387.5 kB / 433.5 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.3101, allocations: 75.52 kB / 433.6 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003272/0.3105, allocations: 171.4 kB / 433.8 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002803/0.3107, allocations: 195.2 kB / 433.9 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.881e-05/0.3108, allocations: 36 kB / 434 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.427e-05/0.3108, allocations: 32 kB / 434 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001423/0.311, allocations: 111.6 kB / 434.1 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001714/0.3112, allocations: 163.1 kB / 434.3 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004872/0.3117, allocations: 374.7 kB / 434.6 MB, free: 2.246 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3117, allocations: 4 kB / 434.6 MB, free: 2.242 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3117, allocations: 0 / 434.6 MB, free: 2.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.453e-05/0.3117, allocations: 0 / 434.6 MB, free: 2.242 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.001377/0.313, allocations: 0.674 MB / 435.3 MB, free: 1.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.599e-05/0.3131, allocations: 8.031 kB / 435.3 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.362e-05/0.3132, allocations: 70.73 kB / 435.4 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.606e-05/0.3133, allocations: 44.7 kB / 435.4 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005041/0.3138, allocations: 319.2 kB / 435.8 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002181/0.314, allocations: 138.3 kB / 435.9 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.616e-05/0.3141, allocations: 24.38 kB / 435.9 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001242/0.3153, allocations: 0.5782 MB / 436.5 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.758e-05/0.3153, allocations: 0 / 436.5 MB, free: 268 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.784e-05/0.3154, allocations: 19.92 kB / 436.5 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.3154, allocations: 8 kB / 436.5 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001451/0.3168, allocations: 0.5035 MB / 437 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001731/0.3186, allocations: 1.034 MB / 438.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001676/0.3202, allocations: 482.5 kB / 438.5 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006474/0.3209, allocations: 227.4 kB / 438.7 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.491e-05/0.3209, allocations: 11.98 kB / 438.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.031e-05/0.321, allocations: 50.44 kB / 438.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.555e-06/0.321, allocations: 0 / 438.8 MB, free: 13.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.0384/0.3594, allocations: 5.766 MB / 444.6 MB, free: 8.031 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001826/0.3596, allocations: 148.9 kB / 444.7 MB, free: 7.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004193/0.36, allocations: 258.5 kB / 445 MB, free: 7.594 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.337e-05/0.3601, allocations: 37.7 kB / 445 MB, free: 7.551 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001463/0.3602, allocations: 149.8 kB / 445.2 MB, free: 7.398 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002302/0.3604, allocations: 206.3 kB / 445.4 MB, free: 7.195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003271/0.3608, allocations: 114.6 kB / 445.5 MB, free: 7.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002034/0.361, allocations: 346.8 kB / 445.8 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001723/0.3627, allocations: 0.6149 MB / 446.4 MB, free: 6.113 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001885/0.3646, allocations: 0.8002 MB / 447.2 MB, free: 5.234 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003372/0.3679, allocations: 1.247 MB / 448.5 MB, free: 3.906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.046e-05/0.368, allocations: 4 kB / 448.5 MB, free: 3.902 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003851/0.3718, allocations: 1.402 MB / 449.9 MB, free: 2.496 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.125e-05/0.3718, allocations: 8 kB / 449.9 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.3718, allocations: 4 kB / 449.9 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.807e-05/0.3719, allocations: 8 kB / 449.9 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001351/0.3732, allocations: 215.6 kB / 450.1 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.157e-05/0.3732, allocations: 15.97 kB / 450.1 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009555/0.3742, allocations: 103.8 kB / 450.2 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.615e-05/0.3743, allocations: 28.36 kB / 450.2 MB, free: 2.121 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.0003589/0.3747, allocations: 185.6 kB / 450.4 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003677/0.375, allocations: 169.4 kB / 450.6 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002233/0.3752, allocations: 75.55 kB / 450.7 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.531e-05/0.3753, allocations: 11.98 kB / 450.7 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.3753, allocations: 0 / 450.7 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.3753, allocations: 7.984 kB / 450.7 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005195/0.3805, allocations: 2.179 MB / 452.9 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.645e-05/0.3805, allocations: 15.94 kB / 452.9 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007966/0.3813, allocations: 180.4 kB / 453.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.645e-05/0.3813, allocations: 16 kB / 453.1 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.948e-05/0.3814, allocations: 27.98 kB / 453.1 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.818e-05/0.3814, allocations: 19.94 kB / 453.1 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.039e-05/0.3814, allocations: 11.94 kB / 453.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00347/0.3849, allocations: 1.568 MB / 454.7 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003192/0.3852, allocations: 176.7 kB / 454.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.907e-05/0.3853, allocations: 27.98 kB / 454.9 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005962/0.3858, allocations: 71.92 kB / 455 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002213/0.3861, allocations: 99.72 kB / 455.1 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.246e-05/0.3861, allocations: 28 kB / 455.1 MB, free: 12.9 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002295/0.3864, allocations: 190 kB / 455.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3864, allocations: 0 / 455.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006926/0.387, allocations: 127.9 kB / 455.4 MB, free: 12.59 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.003987/0.391, allocations: 2.133 MB / 457.5 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00303/0.3941, allocations: 1.026 MB / 458.6 MB, free: 9.273 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.838e-06/0.3941, allocations: 0 / 458.6 MB, free: 9.273 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001115/0.3952, allocations: 334.4 kB / 458.9 MB, free: 8.949 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.3962, allocations: 149.5 kB / 459 MB, free: 8.812 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01488/0.4111, allocations: 6.932 MB / 466 MB, free: 1.383 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006318/0.4117, allocations: 0.8246 MB / 466.8 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005961/0.4123, allocations: 104.1 kB / 466.9 MB, free: 432 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004207/0.4127, allocations: 119.4 kB / 467 MB, free: 312 kB / 366.1 MB Notification: Performance of SimCode: time 1.543e-06/0.4127, allocations: 0 / 467 MB, free: 312 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04209/0.4548, allocations: 11.88 MB / 478.9 MB, free: 4.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.24/9.695, allocations: 19.28 kB / 478.9 MB, free: 4.504 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 --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.170995681983186] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 9.77012960499269 9.790771291 9.475359412 Calling exit ...