Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_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.00188/0.001881, allocations: 121.5 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002315/0.002315, allocations: 199.9 kB / 18.73 MB, free: 4.301 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.52/1.52, allocations: 227.7 MB / 247.2 MB, free: 10.26 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.002035/0.002035, allocations: 59.89 kB / 358.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2772/0.2792, allocations: 50.55 MB / 409.1 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.05024/0.3295, allocations: 41.77 MB / 450.9 MB, free: 7.414 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02729/0.3569, allocations: 11.39 MB / 462.3 MB, free: 11.99 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009256/0.3662, allocations: 303.1 kB / 462.6 MB, free: 11.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02077/0.387, allocations: 7.905 MB / 470.5 MB, free: 3.766 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01546/0.4025, allocations: 3.567 MB / 474 MB, free: 188 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008914/0.4114, allocations: 2.312 MB / 476.4 MB, free: 13.88 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02011/0.4316, allocations: 12.56 MB / 488.9 MB, free: 1.273 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0431/0.4747, allocations: 23.51 MB / 0.5004 GB, free: 9.59 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01199/0.4868, allocations: 6.35 MB / 0.5066 GB, free: 3.223 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01284/0.4997, allocations: 7.272 MB / 0.5137 GB, free: 11.93 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005459/0.5052, allocations: 1.828 MB / 0.5155 GB, free: 10.1 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007572/0.5128, allocations: 2.257 MB / 0.5177 GB, free: 7.84 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006652/0.5195, allocations: 3.647 MB / 0.5213 GB, free: 4.184 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01546/0.535, allocations: 7.093 MB / 0.5282 GB, free: 13.06 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2943/0.8293, allocations: 24.11 MB / 0.5517 GB, free: 53.96 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.8293, allocations: 3.688 kB / 0.5517 GB, free: 53.96 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.8294, allocations: 0 / 0.5517 GB, free: 53.96 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008545/0.8302, allocations: 5.938 kB / 0.5517 GB, free: 53.96 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.04749/0.8777, allocations: 14.51 MB / 0.5659 GB, free: 48.61 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.8778, allocations: 7 kB / 0.5659 GB, free: 48.61 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007733/0.8855, allocations: 1.748 MB / 0.5676 GB, free: 48.19 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03062/0.9162, allocations: 5.219 MB / 0.5727 GB, free: 46.14 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0182/0.9344, allocations: 7.768 MB / 0.5803 GB, free: 43.21 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008802/0.9353, allocations: 0.8292 MB / 0.5811 GB, free: 42.84 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005604/0.941, allocations: 1.091 MB / 0.5822 GB, free: 42.47 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04773/0.9887, allocations: 16.63 MB / 0.5984 GB, free: 28.39 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006571/0.9894, allocations: 27.27 kB / 0.5985 GB, free: 28.36 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006063/0.9955, allocations: 461.1 kB / 0.5989 GB, free: 27.92 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005359/0.9961, allocations: 0.5773 MB / 0.5995 GB, free: 27.34 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.032/1.028, allocations: 14.78 MB / 0.6139 GB, free: 12.54 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1174/1.146, allocations: 57.39 MB / 0.6699 GB, free: 2.109 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02684/1.172, allocations: 21.17 MB / 0.6906 GB, free: 10.33 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007087/1.18, allocations: 3.317 MB / 0.6939 GB, free: 7.008 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02338/1.203, allocations: 9.997 MB / 0.7036 GB, free: 12.89 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.849e-05/1.203, allocations: 72.92 kB / 0.7037 GB, free: 12.82 MB / 0.545 GB Notification: Performance of pre-optimization done (n=313): time 9.007e-06/1.203, allocations: 0 / 0.7037 GB, free: 12.82 MB / 0.545 GB Notification: Performance of matching and sorting (n=340): time 0.04547/1.249, allocations: 16.97 MB / 0.7203 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.014e-05/1.249, allocations: 120.4 kB / 0.7204 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01036/1.259, allocations: 5.183 MB / 0.7254 GB, free: 6.422 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007744/1.26, allocations: 81.7 kB / 0.7255 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.005082/1.265, allocations: 5.361 MB / 0.7307 GB, free: 0.9688 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002393/1.267, allocations: 1.254 MB / 0.732 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00344/1.271, allocations: 1.271 MB / 0.7332 GB, free: 14.45 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001434/1.271, allocations: 305.1 kB / 0.7335 GB, free: 14.15 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005621/1.277, allocations: 2.64 MB / 0.7361 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008543/1.285, allocations: 5.444 MB / 0.7414 GB, free: 4.77 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01379/1.299, allocations: 8.51 MB / 0.7497 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001261/1.299, allocations: 28 kB / 0.7497 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=816) (initialization): time 0.0214/1.321, allocations: 9.275 MB / 0.7588 GB, free: 2.578 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.000136/1.321, allocations: 44 kB / 0.7588 GB, free: 2.535 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000257/1.321, allocations: 96 kB / 0.7589 GB, free: 2.441 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003028/1.324, allocations: 0.9084 MB / 0.7598 GB, free: 1.527 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006183/1.33, allocations: 1.479 MB / 0.7613 GB, free: 160 kB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2619/1.592, allocations: 10.52 MB / 0.7715 GB, free: 223.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005973/1.598, allocations: 405.1 kB / 0.7719 GB, free: 223.5 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001386/1.6, allocations: 335.9 kB / 0.7722 GB, free: 223.4 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 431 * 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 (767): * Single equations (assignments): 762 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(8,26,67.2%), (2,8,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007543/1.607, allocations: 3.751 MB / 0.7759 GB, free: 221.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001588/1.609, allocations: 0.5276 MB / 0.7764 GB, free: 221.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01212/1.621, allocations: 5.882 MB / 0.7822 GB, free: 219.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005421/1.627, allocations: 3.065 MB / 0.7852 GB, free: 218.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-05/1.627, allocations: 12.59 kB / 0.7852 GB, free: 218.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.69e-05/1.627, allocations: 17.91 kB / 0.7852 GB, free: 218.1 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02871/1.656, allocations: 14.61 MB / 0.7994 GB, free: 212 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.893e-05/1.656, allocations: 9.188 kB / 0.7995 GB, free: 212 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00268/1.658, allocations: 0.5927 MB / 0.8 GB, free: 212 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002392/1.661, allocations: 0.8997 MB / 0.8009 GB, free: 211.8 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000643/1.661, allocations: 80.38 kB / 0.801 GB, free: 211.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01241/1.674, allocations: 14.03 MB / 0.8147 GB, free: 200.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/1.674, allocations: 12.42 kB / 0.8147 GB, free: 200.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01412/1.688, allocations: 8.536 MB / 0.823 GB, free: 193.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003002/1.691, allocations: 1.002 MB / 0.824 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001834/1.693, allocations: 71.33 kB / 0.8241 GB, free: 192.4 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003933/1.697, allocations: 196.9 kB / 0.8243 GB, free: 192.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001084/1.698, allocations: 259.3 kB / 0.8245 GB, free: 192.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004247/1.699, allocations: 102.6 kB / 0.8246 GB, free: 192 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00682/1.705, allocations: 3.441 MB / 0.828 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 6.41e-07/1.705, allocations: 4 kB / 0.828 GB, free: 189.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008752/1.714, allocations: 1.772 MB / 0.8297 GB, free: 187.4 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.zeroInductor.i0,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.short.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * 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 (298): * Single equations (assignments): 292 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,8,100.0%), (1,4,100.0%), (1,8,100.0%), (3,4,77.8%), (8,26,64.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0157/1.73, allocations: 9.273 MB / 0.8388 GB, free: 178.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01182/1.742, allocations: 6.89 MB / 0.8455 GB, free: 171.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.474e-05/1.742, allocations: 1.531 kB / 0.8455 GB, free: 171.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006299/1.748, allocations: 3.391 MB / 0.8488 GB, free: 167.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009025/1.757, allocations: 1.193 MB / 0.85 GB, free: 166.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1105/1.868, allocations: 61.48 MB / 0.91 GB, free: 101.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01313/1.881, allocations: 6.569 MB / 0.9164 GB, free: 94.79 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.006484/1.887, allocations: 1.838 MB / 0.9182 GB, free: 92.95 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007167/1.895, allocations: 4.057 MB / 0.9222 GB, free: 88.89 MB / 0.5919 GB Notification: Performance of SimCode: time 1.252e-06/1.895, allocations: 0 / 0.9222 GB, free: 88.89 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.491/2.386, allocations: 138.9 MB / 1.058 GB, free: 195.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.54/24.93, allocations: 12.78 kB / 1.058 GB, free: 195.4 MB / 0.5919 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.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_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1)