Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001305/0.001305, allocations: 114.9 kB / 17.84 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0014/0.0014, allocations: 205.2 kB / 18.79 MB, free: 4.141 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.463/1.463, allocations: 230.4 MB / 250 MB, free: 9.121 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.002145/0.002145, allocations: 67.83 kB / 366.9 MB, free: 7.543 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2854/0.2876, allocations: 53.3 MB / 420.2 MB, free: 8.285 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01403/0.3016, allocations: 11.58 MB / 431.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008666/0.3103, allocations: 3.928 MB / 435.7 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002565/0.3128, allocations: 63.75 kB / 435.7 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002841/0.3157, allocations: 0.8842 MB / 436.6 MB, free: 7.777 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003857/0.3195, allocations: 0.9784 MB / 437.6 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001564/0.3211, allocations: 0.5304 MB / 438.1 MB, free: 6.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00483/0.3259, allocations: 3.226 MB / 441.4 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002717/0.3287, allocations: 1.848 MB / 443.2 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002492/0.3311, allocations: 1.448 MB / 444.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003011/0.3342, allocations: 1.86 MB / 446.5 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007187/0.3349, allocations: 388 kB / 446.9 MB, free: 13.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001499/0.3364, allocations: 0.6323 MB / 447.5 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001266/0.3376, allocations: 1.075 MB / 448.6 MB, free: 11.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002433/0.3401, allocations: 1.734 MB / 450.3 MB, free: 9.953 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006246/0.3463, allocations: 5.068 MB / 455.4 MB, free: 4.867 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3463, allocations: 0 / 455.4 MB, free: 4.867 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3463, allocations: 3.938 kB / 455.4 MB, free: 4.863 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001015/0.3464, allocations: 3.938 kB / 455.4 MB, free: 4.859 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.007586/0.354, allocations: 3.574 MB / 459 MB, free: 1.215 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.3541, allocations: 8.031 kB / 459 MB, free: 1.207 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004875/0.3545, allocations: 366.8 kB / 459.3 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001611/0.3562, allocations: 462.7 kB / 459.8 MB, free: 396 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003417/0.3596, allocations: 1.867 MB / 461.7 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001757/0.3597, allocations: 200.9 kB / 461.9 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004108/0.3602, allocations: 248 kB / 462.1 MB, free: 14.02 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005996/0.3661, allocations: 3.247 MB / 465.4 MB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.831e-05/0.3662, allocations: 11.94 kB / 465.4 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002347/0.3665, allocations: 104 kB / 465.5 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001553/0.3666, allocations: 116.9 kB / 465.6 MB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005184/0.3718, allocations: 2.697 MB / 468.3 MB, free: 7.758 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01914/0.3909, allocations: 10.3 MB / 478.6 MB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002404/0.3933, allocations: 1.685 MB / 480.3 MB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001856/0.3952, allocations: 0.9868 MB / 481.2 MB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003199/0.3955, allocations: 207.2 kB / 481.4 MB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.158e-05/0.3956, allocations: 43.56 kB / 481.5 MB, free: 10.05 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 3.226e-06/0.3956, allocations: 0 / 481.5 MB, free: 10.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=134): time 0.01885/0.4144, allocations: 7.445 MB / 488.9 MB, free: 2.488 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.527e-05/0.4145, allocations: 64.72 kB / 489 MB, free: 2.414 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003247/0.4177, allocations: 1.897 MB / 490.9 MB, free: 0.5195 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001372/0.4178, allocations: 45.7 kB / 490.9 MB, free: 480 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001158/0.419, allocations: 1.283 MB / 492.2 MB, free: 15.17 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004734/0.4195, allocations: 495.8 kB / 492.7 MB, free: 14.68 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005101/0.42, allocations: 295.4 kB / 493 MB, free: 14.39 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.4201, allocations: 305.1 kB / 493.3 MB, free: 14.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001518/0.4216, allocations: 0.8159 MB / 494.1 MB, free: 13.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001948/0.4236, allocations: 1.308 MB / 495.4 MB, free: 11.75 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003602/0.4272, allocations: 2.266 MB / 497.7 MB, free: 9.266 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.969e-06/0.4272, allocations: 4 kB / 497.7 MB, free: 9.262 MB / 414.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.00534/0.4325, allocations: 2.796 MB / 0.4888 GB, free: 6.43 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.255e-05/0.4326, allocations: 12 kB / 0.4888 GB, free: 6.418 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.869e-05/0.4326, allocations: 16 kB / 0.4888 GB, free: 6.402 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001054/0.4337, allocations: 426.4 kB / 0.4892 GB, free: 5.977 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001493/0.4352, allocations: 395.3 kB / 0.4896 GB, free: 5.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006845/0.442, allocations: 5.796 MB / 0.4952 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001866/0.4439, allocations: 127.8 kB / 0.4953 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001661/0.444, allocations: 79.92 kB / 0.4954 GB, free: 15.31 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 182 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,12,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001408/0.4454, allocations: 0.7823 MB / 0.4962 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004551/0.4459, allocations: 214.7 kB / 0.4964 GB, free: 14.31 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00438/0.4503, allocations: 2.391 MB / 0.4987 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.27e-05/0.4503, allocations: 12 kB / 0.4987 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.4503, allocations: 7.938 kB / 0.4987 GB, free: 11.86 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.4503, allocations: 7.984 kB / 0.4988 GB, free: 11.85 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009532/0.4599, allocations: 5.258 MB / 0.5039 GB, free: 6.438 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/0.4599, allocations: 8.031 kB / 0.5039 GB, free: 6.43 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001083/0.461, allocations: 247.6 kB / 0.5041 GB, free: 6.188 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00126/0.4622, allocations: 454.1 kB / 0.5046 GB, free: 5.734 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001056/0.4623, allocations: 35.98 kB / 0.5046 GB, free: 5.699 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008245/0.4706, allocations: 7.35 MB / 0.5118 GB, free: 13.93 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.205e-06/0.4706, allocations: 7.938 kB / 0.5118 GB, free: 13.92 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006333/0.4769, allocations: 3.572 MB / 0.5153 GB, free: 10.25 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001236/0.4781, allocations: 459.7 kB / 0.5157 GB, free: 9.781 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003455/0.4785, allocations: 32 kB / 0.5157 GB, free: 9.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/0.4797, allocations: 107.9 kB / 0.5158 GB, free: 9.645 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003055/0.48, allocations: 112.7 kB / 0.516 GB, free: 9.535 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001042/0.4801, allocations: 40.08 kB / 0.516 GB, free: 9.496 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00215/0.4823, allocations: 1.311 MB / 0.5173 GB, free: 8.195 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4823, allocations: 0 / 0.5173 GB, free: 8.195 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002687/0.485, allocations: 0.5469 MB / 0.5178 GB, free: 7.648 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * 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 (115): * Single equations (assignments): 110 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (2,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.007123/0.4921, allocations: 4.237 MB / 0.5219 GB, free: 3.297 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004559/0.4966, allocations: 2.341 MB / 0.5242 GB, free: 0.9102 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.545e-06/0.4967, allocations: 4 kB / 0.5242 GB, free: 0.9062 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002811/0.4995, allocations: 1.456 MB / 0.5257 GB, free: 15.41 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002454/0.5019, allocations: 454.5 kB / 0.5261 GB, free: 14.97 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2625/0.7644, allocations: 20.54 MB / 0.5461 GB, free: 114.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001507/0.7659, allocations: 2.017 MB / 0.5481 GB, free: 113.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001254/0.7672, allocations: 429.9 kB / 0.5485 GB, free: 113.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001073/0.7682, allocations: 1.004 MB / 0.5495 GB, free: 113 MB / 462.1 MB Notification: Performance of SimCode: time 1.423e-06/0.7682, allocations: 0 / 0.5495 GB, free: 113 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1283/0.8966, allocations: 49.54 MB / 0.5979 GB, free: 69.11 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.89/14.79, allocations: 4.062 kB / 0.5979 GB, free: 69.11 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1)