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.00128/0.00128, allocations: 109.4 kB / 19.8 MB, free: 2.516 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.001436/0.001436, allocations: 221.3 kB / 23 MB, free: 5.609 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.455/1.455, allocations: 230.5 MB / 256.5 MB, free: 8.438 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.0021/0.0021, allocations: 75.81 kB / 376.2 MB, free: 4.062 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3521, allocations: 53.31 MB / 429.5 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003806/0.3559, allocations: 2.183 MB / 431.7 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001365/0.3572, allocations: 0.69 MB / 432.4 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001219/0.3573, allocations: 4 kB / 432.4 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003013/0.3576, allocations: 43.64 kB / 432.4 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001611/0.3578, allocations: 59.55 kB / 432.5 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003627/0.3582, allocations: 119.8 kB / 432.6 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003897/0.3586, allocations: 335.2 kB / 432.9 MB, free: 3.988 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001745/0.3587, allocations: 60.31 kB / 433 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002807/0.359, allocations: 151.5 kB / 433.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000263/0.3593, allocations: 151.4 kB / 433.3 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.279e-05/0.3593, allocations: 39.98 kB / 433.3 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.876e-05/0.3594, allocations: 28 kB / 433.3 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001202/0.3595, allocations: 83.8 kB / 433.4 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001302/0.3596, allocations: 127.3 kB / 433.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003767/0.36, allocations: 279.3 kB / 433.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.36, allocations: 0 / 433.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.36, allocations: 0 / 433.8 MB, free: 3.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.36, allocations: 0 / 433.8 MB, free: 3.09 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.001202/0.3612, allocations: 0.5879 MB / 434.4 MB, free: 2.453 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.531e-05/0.3613, allocations: 12.03 kB / 434.4 MB, free: 2.441 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.973e-05/0.3614, allocations: 62.73 kB / 434.5 MB, free: 2.371 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.901e-05/0.3614, allocations: 40.73 kB / 434.5 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004469/0.3619, allocations: 244.6 kB / 434.8 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002166/0.3621, allocations: 137.9 kB / 434.9 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.613e-05/0.3621, allocations: 24 kB / 434.9 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008716/0.363, allocations: 367.6 kB / 435.3 MB, free: 1.508 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.292e-05/0.363, allocations: 15.89 kB / 435.3 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.011e-05/0.3631, allocations: 7.984 kB / 435.3 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.3631, allocations: 8 kB / 435.3 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001359/0.3644, allocations: 497.9 kB / 435.8 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001911/0.3664, allocations: 1.011 MB / 436.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.3676, allocations: 322.1 kB / 437.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005151/0.3681, allocations: 157.2 kB / 437.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.221e-05/0.3682, allocations: 4.234 kB / 437.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.589e-05/0.3682, allocations: 38.8 kB / 437.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.064e-06/0.3682, allocations: 0 / 437.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02716/0.3954, allocations: 5.806 MB / 443.1 MB, free: 9.484 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.638e-05/0.3954, allocations: 59.84 kB / 443.2 MB, free: 9.414 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003265/0.3958, allocations: 202.3 kB / 443.4 MB, free: 9.207 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.127e-05/0.3958, allocations: 29.7 kB / 443.4 MB, free: 9.172 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.3959, allocations: 153 kB / 443.6 MB, free: 9.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002005/0.3961, allocations: 186.4 kB / 443.7 MB, free: 8.836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002298/0.3964, allocations: 90.22 kB / 443.8 MB, free: 8.742 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.3965, allocations: 338.8 kB / 444.2 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001355/0.3979, allocations: 468.8 kB / 444.6 MB, free: 7.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001386/0.3993, allocations: 0.5177 MB / 445.1 MB, free: 7.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002435/0.4017, allocations: 0.8032 MB / 445.9 MB, free: 6.594 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.4017, allocations: 0 / 445.9 MB, free: 6.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002884/0.4046, allocations: 0.9867 MB / 446.9 MB, free: 5.602 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.241e-05/0.4046, allocations: 7.938 kB / 446.9 MB, free: 5.594 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.4047, allocations: 4 kB / 446.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/0.4047, allocations: 0 / 446.9 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.4057, allocations: 179.8 kB / 447.1 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.466e-05/0.4057, allocations: 4 kB / 447.1 MB, free: 5.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007141/0.4064, allocations: 83.89 kB / 447.2 MB, free: 5.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.859e-05/0.4065, allocations: 16 kB / 447.2 MB, free: 5.312 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.0003046/0.4068, allocations: 165.7 kB / 447.4 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.96e-05/0.4069, allocations: 31.75 kB / 447.4 MB, free: 5.109 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001577/0.407, allocations: 51.3 kB / 447.5 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.839e-06/0.407, allocations: 8 kB / 447.5 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/0.407, allocations: 3.938 kB / 447.5 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.407, allocations: 0 / 447.5 MB, free: 5.043 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004531/0.4116, allocations: 1.874 MB / 449.3 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.196e-05/0.4116, allocations: 8.188 kB / 449.3 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006599/0.4122, allocations: 147.8 kB / 449.5 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.632e-05/0.4123, allocations: 15.92 kB / 449.5 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.257e-05/0.4123, allocations: 16 kB / 449.5 MB, free: 2.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-05/0.4123, allocations: 15.94 kB / 449.5 MB, free: 2.805 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-05/0.4123, allocations: 11.94 kB / 449.5 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002987/0.4153, allocations: 1.229 MB / 450.8 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002394/0.4156, allocations: 148.9 kB / 450.9 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.565e-05/0.4156, allocations: 16 kB / 450.9 MB, free: 1.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005182/0.4161, allocations: 75.91 kB / 451 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002166/0.4164, allocations: 87.67 kB / 451.1 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.399e-05/0.4164, allocations: 24 kB / 451.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002049/0.4166, allocations: 148.3 kB / 451.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4166, allocations: 0 / 451.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005286/0.4171, allocations: 92 kB / 451.4 MB, free: 0.8359 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.003268/0.4204, allocations: 1.781 MB / 453.1 MB, free: 14.92 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002468/0.4229, allocations: 0.7897 MB / 453.9 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.012e-06/0.4229, allocations: 3.938 kB / 453.9 MB, free: 14.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009902/0.4239, allocations: 317.6 kB / 454.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006491/0.4245, allocations: 63.06 kB / 454.3 MB, free: 13.76 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/0.4358, allocations: 5.25 MB / 459.6 MB, free: 8.191 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004473/0.4362, allocations: 0.7801 MB / 460.3 MB, free: 7.383 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004486/0.4367, allocations: 83.19 kB / 460.4 MB, free: 7.305 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002985/0.437, allocations: 95.42 kB / 460.5 MB, free: 7.211 MB / 366.1 MB Notification: Performance of SimCode: time 1.373e-06/0.437, allocations: 0 / 460.5 MB, free: 7.211 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.037/0.474, allocations: 8.488 MB / 469 MB, free: 14.83 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.657/9.131, allocations: 2.656 kB / 469 MB, free: 14.83 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 --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.490166289993795] Failed to read output from testmodel.py, exit status != 0: ['time', 'load.phi', 'load.w', 'PI.x', 'PI.y'] 9.20665851002559 9.230499621 8.866615594 Calling exit ...