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.001706/0.001707, allocations: 117.6 kB / 17.78 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.001842/0.001842, allocations: 199.9 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.444/1.444, allocations: 227.7 MB / 247.2 MB, free: 10.19 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.00189/0.00189, allocations: 63.89 kB / 358.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2738, allocations: 50.56 MB / 409.1 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.0135/0.2874, allocations: 11.51 MB / 420.6 MB, free: 5.809 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007658/0.2951, allocations: 3.912 MB / 424.5 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001785/0.2969, allocations: 67.75 kB / 424.6 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002308/0.2993, allocations: 0.8491 MB / 425.4 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003411/0.3027, allocations: 0.9394 MB / 426.4 MB, free: 20 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001427/0.3041, allocations: 0.5226 MB / 426.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004355/0.3085, allocations: 3.233 MB / 430.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003169/0.3117, allocations: 2.574 MB / 432.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002369/0.3141, allocations: 1.437 MB / 434.1 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003245/0.3173, allocations: 1.821 MB / 436 MB, free: 6.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001168/0.3185, allocations: 388 kB / 436.3 MB, free: 5.961 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001765/0.3203, allocations: 0.6051 MB / 436.9 MB, free: 5.355 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001375/0.3217, allocations: 1.075 MB / 438 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002458/0.3242, allocations: 1.723 MB / 439.7 MB, free: 2.547 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007366/0.3315, allocations: 5.076 MB / 444.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.603e-06/0.3316, allocations: 0 / 444.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3316, allocations: 0 / 444.8 MB, free: 13.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001049/0.3317, allocations: 0 / 444.8 MB, free: 13.45 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.008182/0.3399, allocations: 3.574 MB / 448.4 MB, free: 9.809 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/0.34, allocations: 8.031 kB / 448.4 MB, free: 9.801 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005254/0.3405, allocations: 366.9 kB / 448.8 MB, free: 9.434 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001717/0.3422, allocations: 462.7 kB / 449.2 MB, free: 8.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003325/0.3456, allocations: 1.867 MB / 451.1 MB, free: 7.059 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/0.3457, allocations: 197 kB / 451.3 MB, free: 6.863 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003828/0.3461, allocations: 252 kB / 451.5 MB, free: 6.617 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00571/0.3518, allocations: 3.251 MB / 454.8 MB, free: 3.289 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.043e-05/0.3519, allocations: 8 kB / 454.8 MB, free: 3.281 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002303/0.3522, allocations: 100 kB / 454.9 MB, free: 3.184 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001475/0.3523, allocations: 116.9 kB / 455 MB, free: 3.066 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004883/0.3572, allocations: 2.697 MB / 457.7 MB, free: 364 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01855/0.3758, allocations: 10.3 MB / 468 MB, free: 5.727 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00268/0.3785, allocations: 1.759 MB / 469.7 MB, free: 3.852 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00198/0.3805, allocations: 1.061 MB / 470.8 MB, free: 2.785 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003374/0.3809, allocations: 207.2 kB / 471 MB, free: 2.547 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.239e-05/0.3809, allocations: 47.56 kB / 471 MB, free: 2.492 MB / 382.1 MB Notification: Performance of pre-optimization done (n=115): time 3.246e-06/0.3809, allocations: 0 / 471 MB, free: 2.492 MB / 382.1 MB Notification: Performance of matching and sorting (n=134): time 0.01837/0.3993, allocations: 7.441 MB / 478.5 MB, free: 10.93 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.472e-05/0.3994, allocations: 64.72 kB / 478.5 MB, free: 10.86 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003001/0.4024, allocations: 1.901 MB / 480.4 MB, free: 8.957 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001498/0.4026, allocations: 45.7 kB / 480.5 MB, free: 8.906 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001113/0.4037, allocations: 1.283 MB / 481.8 MB, free: 7.609 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005231/0.4042, allocations: 487.9 kB / 482.3 MB, free: 7.129 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005157/0.4047, allocations: 299.4 kB / 482.5 MB, free: 6.828 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.4049, allocations: 309.1 kB / 482.8 MB, free: 6.523 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001499/0.4064, allocations: 0.8159 MB / 483.7 MB, free: 5.707 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001877/0.4083, allocations: 1.312 MB / 485 MB, free: 4.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003506/0.4118, allocations: 2.258 MB / 487.2 MB, free: 1.707 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.056e-05/0.4118, allocations: 4 kB / 487.2 MB, free: 1.703 MB / 398.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005276/0.4171, allocations: 2.804 MB / 490 MB, free: 14.86 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.641e-05/0.4172, allocations: 12 kB / 490.1 MB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.304e-05/0.4172, allocations: 19.88 kB / 490.1 MB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00107/0.4183, allocations: 422.5 kB / 490.5 MB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001505/0.4198, allocations: 399.3 kB / 490.9 MB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006821/0.4267, allocations: 5.792 MB / 496.7 MB, free: 7.949 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001817/0.4285, allocations: 131.8 kB / 496.8 MB, free: 7.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001966/0.4287, allocations: 71.98 kB / 496.9 MB, free: 7.75 MB / 414.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.001487/0.4302, allocations: 0.79 MB / 497.7 MB, free: 6.949 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005126/0.4307, allocations: 210.7 kB / 497.9 MB, free: 6.742 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004509/0.4352, allocations: 2.407 MB / 0.4885 GB, free: 4.293 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.772e-05/0.4353, allocations: 15.94 kB / 0.4886 GB, free: 4.277 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/0.4353, allocations: 4 kB / 0.4886 GB, free: 4.273 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.658e-05/0.4353, allocations: 7.969 kB / 0.4886 GB, free: 4.266 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009895/0.4452, allocations: 5.258 MB / 0.4937 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.4453, allocations: 8.031 kB / 0.4937 GB, free: 14.85 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.4464, allocations: 255.6 kB / 0.494 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001255/0.4477, allocations: 458.2 kB / 0.4944 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001055/0.4478, allocations: 39.98 kB / 0.4944 GB, free: 14.1 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008301/0.4561, allocations: 7.345 MB / 0.5016 GB, free: 6.34 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.776e-06/0.4561, allocations: 7.938 kB / 0.5016 GB, free: 6.332 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006363/0.4625, allocations: 3.58 MB / 0.5051 GB, free: 2.652 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00109/0.4636, allocations: 455.7 kB / 0.5055 GB, free: 2.188 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003494/0.464, allocations: 39.97 kB / 0.5056 GB, free: 2.148 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/0.4651, allocations: 103.8 kB / 0.5057 GB, free: 2.047 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002871/0.4654, allocations: 108.8 kB / 0.5058 GB, free: 1.941 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/0.4656, allocations: 51.92 kB / 0.5058 GB, free: 1.891 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002123/0.4677, allocations: 1.303 MB / 0.5071 GB, free: 0.5977 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4677, allocations: 3.938 kB / 0.5071 GB, free: 0.5938 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001951/0.4697, allocations: 0.5469 MB / 0.5076 GB, free: 48 kB / 430.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.006582/0.4762, allocations: 4.237 MB / 0.5118 GB, free: 11.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004452/0.4807, allocations: 2.439 MB / 0.5142 GB, free: 9.211 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.4808, allocations: 0 / 0.5142 GB, free: 9.211 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002678/0.4834, allocations: 1.514 MB / 0.5156 GB, free: 7.656 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002489/0.486, allocations: 445 kB / 0.5161 GB, free: 7.227 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03534/0.5213, allocations: 20.53 MB / 0.5361 GB, free: 1.898 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2088/0.7301, allocations: 2.002 MB / 0.5381 GB, free: 125.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002029/0.7322, allocations: 430.3 kB / 0.5385 GB, free: 125.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001745/0.734, allocations: 0.9999 MB / 0.5395 GB, free: 125.4 MB / 462.1 MB Notification: Performance of SimCode: time 2.455e-06/0.734, allocations: 3.75 kB / 0.5395 GB, free: 125.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08584/0.8199, allocations: 48.98 MB / 0.5873 GB, free: 85.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.68/14.5, allocations: 8.438 kB / 0.5873 GB, free: 85.89 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)