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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00142/0.00142, allocations: 118.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001488/0.001488, allocations: 205.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.461/1.461, allocations: 227.7 MB / 247.2 MB, free: 10.14 MB / 206.1 MB 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.002114/0.002114, allocations: 63.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3092, allocations: 50.54 MB / 409 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003794/0.313, allocations: 2.155 MB / 411.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.3144, allocations: 0.686 MB / 411.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001236/0.3147, allocations: 4 kB / 411.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002881/0.3149, allocations: 43.64 kB / 411.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000148/0.3151, allocations: 47.62 kB / 412 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003834/0.3155, allocations: 123.8 kB / 412.1 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004131/0.3159, allocations: 351.1 kB / 412.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001754/0.3161, allocations: 68.3 kB / 412.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002817/0.3164, allocations: 147.5 kB / 412.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002477/0.3167, allocations: 159.4 kB / 412.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.277e-05/0.3167, allocations: 28 kB / 412.8 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.303e-05/0.3168, allocations: 32 kB / 412.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.3169, allocations: 79.8 kB / 412.9 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001349/0.317, allocations: 115.4 kB / 413.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004004/0.3174, allocations: 289.8 kB / 413.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.3175, allocations: 3.938 kB / 413.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3175, allocations: 0 / 413.3 MB, free: 13.05 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.3175, allocations: 0 / 413.3 MB, free: 13.05 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.001188/0.3187, allocations: 0.588 MB / 413.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.3187, allocations: 16.03 kB / 413.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.606e-05/0.3188, allocations: 58.73 kB / 414 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.872e-05/0.3189, allocations: 32.8 kB / 414 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004031/0.3193, allocations: 258 kB / 414.3 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002137/0.3195, allocations: 137.9 kB / 414.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.357e-05/0.3196, allocations: 23.98 kB / 414.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008918/0.3205, allocations: 371.6 kB / 414.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.3205, allocations: 3.953 kB / 414.8 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.991e-05/0.3205, allocations: 8 kB / 414.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.739e-06/0.3206, allocations: 8 kB / 414.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001456/0.322, allocations: 497.8 kB / 415.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0018/0.3238, allocations: 0.9996 MB / 416.3 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001263/0.3251, allocations: 342.3 kB / 416.6 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005255/0.3257, allocations: 177.2 kB / 416.8 MB, free: 9.363 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.565e-05/0.3257, allocations: 4.234 kB / 416.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.198e-05/0.3257, allocations: 42.8 kB / 416.9 MB, free: 9.309 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 2.224e-06/0.3258, allocations: 3.938 kB / 416.9 MB, free: 9.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.02808/0.3538, allocations: 5.797 MB / 422.7 MB, free: 3.414 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.293e-05/0.3539, allocations: 59.83 kB / 422.7 MB, free: 3.344 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002844/0.3542, allocations: 198.3 kB / 422.9 MB, free: 3.141 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.469e-05/0.3543, allocations: 33.7 kB / 423 MB, free: 3.102 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.3544, allocations: 149 kB / 423.1 MB, free: 2.953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001886/0.3546, allocations: 186.4 kB / 423.3 MB, free: 2.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002254/0.3548, allocations: 90.22 kB / 423.4 MB, free: 2.676 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.355, allocations: 346.8 kB / 423.7 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001393/0.3564, allocations: 456.8 kB / 424.2 MB, free: 1.883 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001454/0.3579, allocations: 0.5216 MB / 424.7 MB, free: 1.344 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002562/0.3604, allocations: 0.8032 MB / 425.5 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.3605, allocations: 0 / 425.5 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00306/0.3635, allocations: 0.9829 MB / 426.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.3636, allocations: 12 kB / 426.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.3636, allocations: 8 kB / 426.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/0.3636, allocations: 4 kB / 426.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001011/0.3646, allocations: 163.8 kB / 426.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.3647, allocations: 4 kB / 426.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007367/0.3654, allocations: 87.89 kB / 426.7 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-05/0.3655, allocations: 19.94 kB / 426.8 MB, free: 15.24 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.0002435/0.3657, allocations: 161.7 kB / 426.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.3658, allocations: 31.75 kB / 426.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001279/0.366, allocations: 51.3 kB / 427 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-06/0.366, allocations: 8 kB / 427 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.366, allocations: 0 / 427 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.366, allocations: 0 / 427 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004372/0.3704, allocations: 1.884 MB / 428.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.294e-05/0.3704, allocations: 8 kB / 428.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006969/0.3711, allocations: 151.7 kB / 429 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.522e-05/0.3712, allocations: 11.94 kB / 429.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.457e-05/0.3712, allocations: 23.98 kB / 429.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.256e-05/0.3712, allocations: 11.94 kB / 429.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.159e-05/0.3713, allocations: 12.22 kB / 429.1 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002999/0.3743, allocations: 1.229 MB / 430.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002095/0.3745, allocations: 144.9 kB / 430.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.507e-05/0.3746, allocations: 23.98 kB / 430.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005437/0.3751, allocations: 71.92 kB / 430.6 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/0.3753, allocations: 87.72 kB / 430.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.011e-05/0.3754, allocations: 20 kB / 430.7 MB, free: 11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001864/0.3756, allocations: 148.3 kB / 430.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3756, allocations: 4 kB / 430.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004817/0.3761, allocations: 95.94 kB / 430.9 MB, free: 10.76 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.003419/0.3795, allocations: 1.785 MB / 432.7 MB, free: 8.844 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002536/0.3821, allocations: 0.8649 MB / 433.6 MB, free: 7.977 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.3821, allocations: 0 / 433.6 MB, free: 7.977 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001071/0.3832, allocations: 329.7 kB / 433.9 MB, free: 7.656 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006473/0.3838, allocations: 64.14 kB / 433.9 MB, free: 7.594 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01159/0.3954, allocations: 5.241 MB / 439.2 MB, free: 2.035 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004981/0.396, allocations: 0.7801 MB / 440 MB, free: 1.227 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004375/0.3964, allocations: 83.19 kB / 440 MB, free: 1.148 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002911/0.3967, allocations: 91.42 kB / 440.1 MB, free: 1.059 MB / 350.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3967, allocations: 0 / 440.1 MB, free: 1.059 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03493/0.4317, allocations: 8.34 MB / 448.5 MB, free: 8.875 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.854/9.286, allocations: 19.23 kB / 448.5 MB, free: 8.859 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 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)