Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001794/0.001794, 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.002406/0.002406, 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.554/1.554, allocations: 230.6 MB / 258.3 MB, free: 8.043 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.Continuous,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous",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.00196/0.00196, allocations: 68.77 kB / 378.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3194/0.3214, allocations: 53.37 MB / 431.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003705/0.3251, allocations: 2.187 MB / 434.1 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001392/0.3265, allocations: 0.686 MB / 434.8 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001192/0.3266, allocations: 7.938 kB / 434.8 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002946/0.3269, allocations: 43.62 kB / 434.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000156/0.327, allocations: 55.62 kB / 434.9 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000378/0.3274, allocations: 127.8 kB / 435 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004055/0.3278, allocations: 335.2 kB / 435.3 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001703/0.328, allocations: 60.5 kB / 435.4 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003018/0.3283, allocations: 151.5 kB / 435.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002514/0.3286, allocations: 163.4 kB / 435.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.137e-05/0.3286, allocations: 32 kB / 435.7 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.143e-05/0.3287, allocations: 28 kB / 435.8 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.3288, allocations: 79.8 kB / 435.8 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.3289, allocations: 123.4 kB / 436 MB, free: 2.809 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003844/0.3293, allocations: 287.7 kB / 436.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3293, allocations: 4 kB / 436.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3293, allocations: 0 / 436.2 MB, free: 2.527 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.3293, allocations: 0 / 436.2 MB, free: 2.527 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001166/0.3305, allocations: 0.5088 MB / 436.7 MB, free: 1.988 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.3305, allocations: 11.97 kB / 436.8 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.474e-05/0.3306, allocations: 70.72 kB / 436.8 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.822e-05/0.3306, allocations: 28.8 kB / 436.9 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003857/0.331, allocations: 190.7 kB / 437 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003181/0.3313, allocations: 347.5 kB / 437.4 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.755e-05/0.3314, allocations: 24 kB / 437.4 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008204/0.3322, allocations: 362.6 kB / 437.8 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/0.3323, allocations: 7.953 kB / 437.8 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.091e-05/0.3323, allocations: 8 kB / 437.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.258e-06/0.3323, allocations: 8 kB / 437.8 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00132/0.3336, allocations: 0.4898 MB / 438.3 MB, free: 356 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001887/0.3355, allocations: 0.9498 MB / 439.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001144/0.3366, allocations: 319.1 kB / 439.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000472/0.3371, allocations: 169.2 kB / 439.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.472e-05/0.3372, allocations: 4.234 kB / 439.7 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.3372, allocations: 34.8 kB / 439.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.833e-06/0.3372, allocations: 0 / 439.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.0264/0.3636, allocations: 5.663 MB / 445.4 MB, free: 9.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.827e-05/0.3636, allocations: 55.84 kB / 445.5 MB, free: 9.023 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000284/0.3639, allocations: 195.8 kB / 445.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.816e-05/0.364, allocations: 33.69 kB / 445.7 MB, free: 8.785 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.3641, allocations: 156.9 kB / 445.8 MB, free: 8.629 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001746/0.3643, allocations: 182.4 kB / 446 MB, free: 8.449 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002218/0.3645, allocations: 94.3 kB / 446.1 MB, free: 8.352 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.3647, allocations: 334.8 kB / 446.4 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001287/0.3659, allocations: 469 kB / 446.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001318/0.3673, allocations: 0.5224 MB / 447.4 MB, free: 7.023 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002307/0.3696, allocations: 0.8023 MB / 448.2 MB, free: 6.207 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.3696, allocations: 0 / 448.2 MB, free: 6.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002699/0.3723, allocations: 0.9814 MB / 449.2 MB, free: 5.219 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.3723, allocations: 7.938 kB / 449.2 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.3723, allocations: 0 / 449.2 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.3723, allocations: 8.125 kB / 449.2 MB, free: 5.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.3733, allocations: 167.7 kB / 449.4 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.399e-05/0.3734, allocations: 7.984 kB / 449.4 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006608/0.374, allocations: 83.89 kB / 449.5 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.292e-05/0.3741, allocations: 20 kB / 449.5 MB, free: 4.93 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002501/0.3743, allocations: 161.7 kB / 449.6 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.792e-05/0.3744, allocations: 31.75 kB / 449.7 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001167/0.3745, allocations: 47.31 kB / 449.7 MB, free: 4.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.3745, allocations: 4 kB / 449.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.3745, allocations: 0 / 449.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.3745, allocations: 11.92 kB / 449.7 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004215/0.3788, allocations: 1.85 MB / 451.6 MB, free: 2.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-05/0.3788, allocations: 8 kB / 451.6 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006739/0.3794, allocations: 147.7 kB / 451.7 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-05/0.3795, allocations: 15.94 kB / 451.8 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.178e-05/0.3795, allocations: 16 kB / 451.8 MB, free: 2.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-05/0.3795, allocations: 12 kB / 451.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.135e-05/0.3795, allocations: 11.94 kB / 451.8 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002819/0.3823, allocations: 1.228 MB / 453 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001796/0.3825, allocations: 71.78 kB / 453.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.205e-05/0.3826, allocations: 16 kB / 453.1 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000559/0.3831, allocations: 75.86 kB / 453.2 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002029/0.3833, allocations: 87.7 kB / 453.3 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.339e-05/0.3834, allocations: 28 kB / 453.3 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002006/0.3836, allocations: 155.5 kB / 453.4 MB, free: 0.668 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3836, allocations: 3.938 kB / 453.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000514/0.3841, allocations: 96 kB / 453.5 MB, free: 0.5703 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.003257/0.3874, allocations: 1.788 MB / 455.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002279/0.3896, allocations: 0.7824 MB / 456.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.3896, allocations: 0 / 456.1 MB, free: 13.87 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009315/0.3906, allocations: 313.2 kB / 456.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006542/0.3912, allocations: 60.53 kB / 456.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01183/0.4031, allocations: 5.246 MB / 461.7 MB, free: 7.934 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006629/0.4037, allocations: 0.7801 MB / 462.5 MB, free: 7.129 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000501/0.4042, allocations: 83.19 kB / 462.6 MB, free: 7.051 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003261/0.4046, allocations: 99.41 kB / 462.7 MB, free: 6.953 MB / 366.1 MB Notification: Performance of SimCode: time 2.315e-06/0.4046, allocations: 3.938 kB / 462.7 MB, free: 6.949 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04314/0.4477, allocations: 8.786 MB / 471.5 MB, free: 14.27 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.929/9.377, allocations: 9.594 kB / 471.5 MB, free: 14.27 MB / 382.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous_fmu --startTime=0 --stopTime=4 --stepSize=0.000798722 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_Continuous.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.92565971519798] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 9.456687275785953 9.485593977 9.151061969 Calling exit ...