Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001357/0.001357, allocations: 121.7 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001424/0.001424, allocations: 202 kB / 18.74 MB, free: 4.332 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.491/1.491, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.001935/0.001935, allocations: 59.91 kB / 358.5 MB, free: 13.26 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2768/0.2787, allocations: 50.54 MB / 409 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004003/0.2828, allocations: 2.345 MB / 411.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001646/0.2845, allocations: 0.7988 MB / 412.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001532/0.2847, allocations: 8 kB / 412.2 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003355/0.285, allocations: 59.55 kB / 412.3 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002066/0.2852, allocations: 55.56 kB / 412.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005411/0.2858, allocations: 155.7 kB / 412.5 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004499/0.2862, allocations: 379.5 kB / 412.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002162/0.2865, allocations: 95.38 kB / 412.9 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003135/0.2868, allocations: 171.4 kB / 413.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002437/0.287, allocations: 167.3 kB / 413.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.706e-05/0.2871, allocations: 32 kB / 413.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.398e-05/0.2872, allocations: 32 kB / 413.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.2873, allocations: 99.7 kB / 413.4 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000169/0.2875, allocations: 139.3 kB / 413.6 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004673/0.2879, allocations: 329.7 kB / 413.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.288, allocations: 0 / 413.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.288, allocations: 0 / 413.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.288, allocations: 4 kB / 413.9 MB, free: 12.52 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001333/0.2893, allocations: 0.6159 MB / 414.5 MB, free: 11.85 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.2894, allocations: 11.97 kB / 414.5 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.482e-05/0.2895, allocations: 70.72 kB / 414.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.459e-05/0.2896, allocations: 36.75 kB / 414.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004888/0.2901, allocations: 272.4 kB / 414.9 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002283/0.2903, allocations: 142.2 kB / 415 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.199e-05/0.2904, allocations: 32.33 kB / 415 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.2916, allocations: 0.5414 MB / 415.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/0.2917, allocations: 0 / 415.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.621e-05/0.2917, allocations: 12 kB / 415.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.2917, allocations: 8 kB / 415.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.2932, allocations: 0.519 MB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001747/0.295, allocations: 1.006 MB / 417.1 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001662/0.2966, allocations: 0.4947 MB / 417.6 MB, free: 8.508 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006726/0.2973, allocations: 267.2 kB / 417.9 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.471e-05/0.2974, allocations: 8.141 kB / 417.9 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.483e-05/0.2974, allocations: 46.55 kB / 417.9 MB, free: 8.172 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.395e-06/0.2975, allocations: 0 / 417.9 MB, free: 8.172 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03978/0.3372, allocations: 5.719 MB / 423.7 MB, free: 2.445 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001553/0.3374, allocations: 149 kB / 423.8 MB, free: 2.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002926/0.3377, allocations: 198.5 kB / 424 MB, free: 2.066 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.053e-05/0.3378, allocations: 37.7 kB / 424 MB, free: 2.023 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.338, allocations: 145.7 kB / 424.2 MB, free: 1.875 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002354/0.3382, allocations: 206.3 kB / 424.4 MB, free: 1.672 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003026/0.3385, allocations: 106.7 kB / 424.5 MB, free: 1.562 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.3387, allocations: 346.7 kB / 424.8 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001724/0.3404, allocations: 0.6188 MB / 425.4 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001939/0.3424, allocations: 0.7925 MB / 426.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003334/0.3457, allocations: 1.255 MB / 427.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.3458, allocations: 4.312 kB / 427.5 MB, free: 14.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00385/0.3496, allocations: 1.394 MB / 428.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.025e-05/0.3497, allocations: 11.98 kB / 428.9 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.109e-05/0.3497, allocations: 4 kB / 428.9 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.38e-05/0.3498, allocations: 15.94 kB / 428.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001353/0.3511, allocations: 211.6 kB / 429.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.006e-05/0.3512, allocations: 12.03 kB / 429.1 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009483/0.3521, allocations: 99.77 kB / 429.2 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.011e-05/0.3522, allocations: 28 kB / 429.3 MB, free: 12.61 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.0003527/0.3526, allocations: 181.6 kB / 429.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003407/0.3529, allocations: 149.4 kB / 429.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001866/0.3531, allocations: 67.31 kB / 429.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-05/0.3531, allocations: 8 kB / 429.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.585e-06/0.3531, allocations: 0 / 429.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.3532, allocations: 3.984 kB / 429.7 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005197/0.3584, allocations: 2.175 MB / 431.8 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.395e-05/0.3584, allocations: 8 kB / 431.8 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00079/0.3592, allocations: 188.4 kB / 432 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.045e-05/0.3592, allocations: 16 kB / 432 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.634e-05/0.3593, allocations: 24 kB / 432.1 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.595e-05/0.3593, allocations: 15.94 kB / 432.1 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.38e-05/0.3593, allocations: 15.94 kB / 432.1 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003507/0.3628, allocations: 1.561 MB / 433.7 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002257/0.3631, allocations: 156.8 kB / 433.8 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.006e-05/0.3632, allocations: 31.98 kB / 433.8 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006047/0.3638, allocations: 75.92 kB / 433.9 MB, free: 7.582 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000212/0.364, allocations: 95.72 kB / 434 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.53e-05/0.3641, allocations: 31.94 kB / 434 MB, free: 7.457 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001758/0.3643, allocations: 152.3 kB / 434.2 MB, free: 7.309 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3643, allocations: 0 / 434.2 MB, free: 7.309 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007601/0.365, allocations: 120.2 kB / 434.3 MB, free: 7.191 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.004127/0.3692, allocations: 2.133 MB / 436.4 MB, free: 4.898 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003464/0.3727, allocations: 1.143 MB / 437.6 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.33e-05/0.3727, allocations: 0 / 437.6 MB, free: 3.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001168/0.3739, allocations: 342.5 kB / 437.9 MB, free: 3.418 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009665/0.3749, allocations: 136.3 kB / 438.1 MB, free: 3.285 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01491/0.3898, allocations: 6.774 MB / 444.8 MB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005684/0.3904, allocations: 0.8167 MB / 445.6 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005395/0.391, allocations: 99.3 kB / 445.7 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004162/0.3914, allocations: 111.4 kB / 445.9 MB, free: 10.97 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3914, allocations: 0 / 445.9 MB, free: 10.97 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03978/0.4312, allocations: 11.23 MB / 457.1 MB, free: 15.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.196/9.627, allocations: 15.8 kB / 457.1 MB, free: 15.88 MB / 382.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_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_SuperSampled.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1)