Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001861/0.001861, 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.002255/0.002255, allocations: 197.2 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.4/1.4, 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.002024/0.002024, allocations: 63.89 kB / 358.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2594, allocations: 50.54 MB / 409.1 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01026/0.2697, allocations: 8.174 MB / 417.3 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005211/0.275, allocations: 2.733 MB / 420 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00111/0.2761, allocations: 27.94 kB / 420 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00177/0.2779, allocations: 0.5356 MB / 420.6 MB, free: 5.816 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001671/0.2796, allocations: 436.5 kB / 421 MB, free: 5.387 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000978/0.2806, allocations: 362.6 kB / 421.3 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002061/0.2827, allocations: 1.488 MB / 422.8 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009188/0.2836, allocations: 0.6243 MB / 423.4 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008052/0.2844, allocations: 0.5563 MB / 424 MB, free: 2.328 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007374/0.2852, allocations: 0.6026 MB / 424.6 MB, free: 1.723 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001807/0.2854, allocations: 140 kB / 424.7 MB, free: 1.586 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003455/0.2857, allocations: 179.9 kB / 424.9 MB, free: 1.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002331/0.286, allocations: 286.9 kB / 425.2 MB, free: 1.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006155/0.2866, allocations: 0.6647 MB / 425.9 MB, free: 472 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00205/0.2887, allocations: 1.724 MB / 427.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2887, allocations: 0 / 427.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.2887, allocations: 0 / 427.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.882e-05/0.2887, allocations: 0 / 427.6 MB, free: 14.73 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002549/0.2913, allocations: 1.545 MB / 429.1 MB, free: 13.13 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.2913, allocations: 8.031 kB / 429.1 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001912/0.2915, allocations: 152.3 kB / 429.3 MB, free: 12.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005946/0.2921, allocations: 195.9 kB / 429.5 MB, free: 12.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001283/0.2934, allocations: 0.8022 MB / 430.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.688e-05/0.2935, allocations: 74 kB / 430.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.2936, allocations: 104 kB / 430.5 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001567/0.2952, allocations: 0.9584 MB / 431.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.267e-05/0.2952, allocations: 4 kB / 431.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.132e-05/0.2953, allocations: 43.94 kB / 431.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.227e-05/0.2954, allocations: 24 kB / 431.5 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001206/0.2966, allocations: 0.6363 MB / 432.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005375/0.302, allocations: 4.097 MB / 436.2 MB, free: 5.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00102/0.303, allocations: 439.2 kB / 436.6 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003045/0.3033, allocations: 160.8 kB / 436.8 MB, free: 5.133 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.338e-05/0.3034, allocations: 7.984 kB / 436.8 MB, free: 5.125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.791e-05/0.3034, allocations: 38.56 kB / 436.9 MB, free: 5.078 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.925e-06/0.3034, allocations: 0 / 436.9 MB, free: 5.078 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002537/0.306, allocations: 1.333 MB / 438.2 MB, free: 3.676 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.3061, allocations: 136.5 kB / 438.3 MB, free: 3.512 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001207/0.3073, allocations: 0.8937 MB / 439.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.243e-05/0.3074, allocations: 33.7 kB / 439.2 MB, free: 2.555 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004892/0.3079, allocations: 0.6047 MB / 439.8 MB, free: 1.941 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.308, allocations: 154.8 kB / 440 MB, free: 1.789 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001951/0.3082, allocations: 142.6 kB / 440.1 MB, free: 1.645 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.3083, allocations: 330 kB / 440.5 MB, free: 1.316 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003391/0.3087, allocations: 176.8 kB / 440.6 MB, free: 1.141 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005767/0.3093, allocations: 498.5 kB / 441.1 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009528/0.3102, allocations: 0.6828 MB / 441.8 MB, free: 15.67 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.3102, allocations: 8 kB / 441.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0013/0.3116, allocations: 0.7471 MB / 442.6 MB, free: 14.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.3116, allocations: 12 kB / 442.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.3116, allocations: 8 kB / 442.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001628/0.3118, allocations: 41.47 kB / 442.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005587/0.3123, allocations: 171.7 kB / 442.8 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00116/0.3135, allocations: 1.386 MB / 444.2 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005608/0.3141, allocations: 39.94 kB / 444.2 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.818e-05/0.3142, allocations: 36 kB / 444.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006002/0.3148, allocations: 350.1 kB / 444.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006085/0.3154, allocations: 494.6 kB / 445.1 MB, free: 12.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008665/0.3163, allocations: 0.664 MB / 445.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.717e-06/0.3163, allocations: 0 / 445.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001141/0.3174, allocations: 0.7276 MB / 446.5 MB, free: 10.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.3174, allocations: 11.94 kB / 446.5 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.3175, allocations: 12 kB / 446.5 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001011/0.3176, allocations: 40.78 kB / 446.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004999/0.3181, allocations: 163.7 kB / 446.7 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001063/0.3191, allocations: 1.383 MB / 448.1 MB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005406/0.3197, allocations: 36.16 kB / 448.1 MB, free: 8.762 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.208e-05/0.3198, allocations: 35.98 kB / 448.1 MB, free: 8.727 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000225/0.32, allocations: 239.8 kB / 448.4 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001296/0.3201, allocations: 99.33 kB / 448.5 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008681/0.321, allocations: 431.5 kB / 448.9 MB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.321, allocations: 4 kB / 448.9 MB, free: 7.953 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.321, allocations: 4 kB / 448.9 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.321, allocations: 7.922 kB / 448.9 MB, free: 7.941 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002051/0.3231, allocations: 1.376 MB / 450.3 MB, free: 6.488 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.3231, allocations: 0 / 450.3 MB, free: 6.488 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003648/0.3235, allocations: 79.89 kB / 450.4 MB, free: 6.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.772e-05/0.3236, allocations: 17.08 kB / 450.4 MB, free: 6.391 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.908e-05/0.3236, allocations: 23.92 kB / 450.4 MB, free: 6.367 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001016/0.3246, allocations: 1.376 MB / 451.8 MB, free: 4.852 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.3247, allocations: 4 kB / 451.8 MB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001127/0.3258, allocations: 0.7029 MB / 452.5 MB, free: 4.105 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003002/0.3261, allocations: 208.4 kB / 452.7 MB, free: 3.883 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001018/0.3262, allocations: 16 kB / 452.7 MB, free: 3.867 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003862/0.3266, allocations: 27.97 kB / 452.7 MB, free: 3.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.366e-05/0.3267, allocations: 23.97 kB / 452.8 MB, free: 3.816 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.678e-05/0.3267, allocations: 12 kB / 452.8 MB, free: 3.805 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008831/0.3276, allocations: 0.6054 MB / 453.4 MB, free: 3.188 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3276, allocations: 0 / 453.4 MB, free: 3.188 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001168/0.3288, allocations: 355.9 kB / 453.7 MB, free: 2.84 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00156/0.3303, allocations: 1.298 MB / 455 MB, free: 1.492 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001731/0.3321, allocations: 0.974 MB / 456 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/0.3321, allocations: 4 kB / 456 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004243/0.3325, allocations: 282.4 kB / 456.3 MB, free: 208 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001257/0.3338, allocations: 250.9 kB / 456.5 MB, free: 15.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01122/0.345, allocations: 7.619 MB / 464.1 MB, free: 7.883 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007655/0.3459, allocations: 1.029 MB / 465.2 MB, free: 6.824 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005437/0.3464, allocations: 123.3 kB / 465.3 MB, free: 6.699 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005107/0.3469, allocations: 399.3 kB / 465.7 MB, free: 6.309 MB / 382.1 MB Notification: Performance of SimCode: time 1.022e-06/0.3469, allocations: 0 / 465.7 MB, free: 6.309 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05433/0.4013, allocations: 19.81 MB / 485.5 MB, free: 2.809 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.7, allocations: 4.297 kB / 485.5 MB, free: 2.805 MB / 398.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1)