Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.SubClocked,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001656/0.001656, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001948/0.001948, allocations: 198 kB / 18.73 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.507/1.507, allocations: 227.7 MB / 247.2 MB, free: 10.16 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.002143/0.002144, allocations: 71.88 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3057/0.3079, allocations: 50.54 MB / 409.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004096/0.312, allocations: 2.357 MB / 411.4 MB, free: 15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001667/0.3137, allocations: 0.8338 MB / 412.2 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002065/0.314, allocations: 7.938 kB / 412.3 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003098/0.3143, allocations: 51.58 kB / 412.3 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002129/0.3145, allocations: 59.55 kB / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000559/0.3151, allocations: 175.6 kB / 412.5 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004549/0.3156, allocations: 387.5 kB / 412.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000221/0.3158, allocations: 103.8 kB / 413 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000339/0.3162, allocations: 155.5 kB / 413.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002758/0.3164, allocations: 187.2 kB / 413.3 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.829e-05/0.3165, allocations: 35.94 kB / 413.4 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.675e-05/0.3166, allocations: 36 kB / 413.4 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001178/0.3167, allocations: 95.77 kB / 413.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001477/0.3169, allocations: 139.2 kB / 413.6 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004402/0.3173, allocations: 341.6 kB / 414 MB, free: 12.41 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3173, allocations: 0 / 414 MB, free: 12.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3173, allocations: 0 / 414 MB, free: 12.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.3173, allocations: 0 / 414 MB, free: 12.41 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.00129/0.3186, allocations: 0.6275 MB / 414.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.3187, allocations: 8.031 kB / 414.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.92e-05/0.3188, allocations: 74.72 kB / 414.7 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.225e-05/0.3189, allocations: 48.7 kB / 414.7 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004529/0.3193, allocations: 276.4 kB / 415 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002162/0.3196, allocations: 134.3 kB / 415.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.791e-05/0.3196, allocations: 24.38 kB / 415.2 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.3209, allocations: 0.5782 MB / 415.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.6e-05/0.321, allocations: 4 kB / 415.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.448e-05/0.321, allocations: 8 kB / 415.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.321, allocations: 8 kB / 415.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001453/0.3225, allocations: 0.4996 MB / 416.3 MB, free: 9.996 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001721/0.3242, allocations: 1.014 MB / 417.3 MB, free: 8.902 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001649/0.3259, allocations: 0.5176 MB / 417.8 MB, free: 8.352 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006516/0.3266, allocations: 263.4 kB / 418 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.398e-05/0.3266, allocations: 11.98 kB / 418.1 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.562e-05/0.3267, allocations: 38.56 kB / 418.1 MB, free: 8.023 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.465e-06/0.3267, allocations: 0 / 418.1 MB, free: 8.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03979/0.3665, allocations: 5.73 MB / 423.8 MB, free: 2.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001416/0.3667, allocations: 145 kB / 424 MB, free: 2.113 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002667/0.3669, allocations: 204.2 kB / 424.2 MB, free: 1.902 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.814e-05/0.367, allocations: 37.7 kB / 424.2 MB, free: 1.859 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.3671, allocations: 137.8 kB / 424.3 MB, free: 1.719 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002276/0.3674, allocations: 198.4 kB / 424.5 MB, free: 1.523 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003033/0.3677, allocations: 118.6 kB / 424.7 MB, free: 1.402 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.3679, allocations: 346.8 kB / 425 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001698/0.3696, allocations: 0.6148 MB / 425.6 MB, free: 452 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001966/0.3715, allocations: 0.7965 MB / 426.4 MB, free: 15.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003318/0.3749, allocations: 1.243 MB / 427.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.316e-06/0.3749, allocations: 4 kB / 427.6 MB, free: 14.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004083/0.379, allocations: 1.398 MB / 429 MB, free: 12.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.6e-05/0.3791, allocations: 8 kB / 429.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.041e-05/0.3791, allocations: 12 kB / 429.1 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.876e-05/0.3792, allocations: 11.94 kB / 429.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/0.3805, allocations: 211.6 kB / 429.3 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.147e-05/0.3805, allocations: 11.98 kB / 429.3 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009672/0.3815, allocations: 99.81 kB / 429.4 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.776e-05/0.3816, allocations: 32 kB / 429.4 MB, free: 12.45 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.0003633/0.382, allocations: 181.6 kB / 429.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004197/0.3824, allocations: 157.6 kB / 429.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001907/0.3826, allocations: 63.3 kB / 429.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.3826, allocations: 8 kB / 429.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.3827, allocations: 4.094 kB / 429.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/0.3827, allocations: 11.92 kB / 429.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005317/0.388, allocations: 2.164 MB / 432 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.812e-05/0.3881, allocations: 8 kB / 432 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008055/0.3889, allocations: 183.7 kB / 432.2 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.061e-05/0.3889, allocations: 16.53 kB / 432.2 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.676e-05/0.389, allocations: 31.98 kB / 432.2 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.093e-05/0.389, allocations: 19.92 kB / 432.3 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.609e-05/0.389, allocations: 15.94 kB / 432.3 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00357/0.3926, allocations: 1.565 MB / 433.8 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002639/0.3929, allocations: 156.8 kB / 434 MB, free: 7.516 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.905e-05/0.393, allocations: 31.98 kB / 434 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005848/0.3936, allocations: 71.92 kB / 434.1 MB, free: 7.414 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002117/0.3938, allocations: 99.72 kB / 434.2 MB, free: 7.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.446e-05/0.3938, allocations: 32 kB / 434.2 MB, free: 7.285 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001535/0.394, allocations: 136.1 kB / 434.4 MB, free: 7.152 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.394, allocations: 4 kB / 434.4 MB, free: 7.148 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007515/0.3948, allocations: 127.9 kB / 434.5 MB, free: 7.023 MB / 350.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.004017/0.3988, allocations: 2.113 MB / 436.6 MB, free: 4.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003155/0.402, allocations: 1.136 MB / 437.7 MB, free: 3.613 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.111e-05/0.402, allocations: 4 kB / 437.7 MB, free: 3.609 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001092/0.4031, allocations: 342.4 kB / 438.1 MB, free: 3.277 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00101/0.4042, allocations: 148.4 kB / 438.2 MB, free: 3.133 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01471/0.4189, allocations: 6.794 MB / 445 MB, free: 11.85 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005154/0.4194, allocations: 0.809 MB / 445.8 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005814/0.42, allocations: 99.31 kB / 445.9 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004271/0.4205, allocations: 119.4 kB / 446 MB, free: 10.79 MB / 366.1 MB Notification: Performance of SimCode: time 1.413e-06/0.4205, allocations: 0 / 446 MB, free: 10.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04129/0.4618, allocations: 11.3 MB / 457.3 MB, free: 15.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.079/9.541, allocations: 8 kB / 457.3 MB, free: 15.63 MB / 382.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_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_SubClocked.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1)