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.SMR_CurrentSource.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.SMR_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001382/0.001387, allocations: 118.7 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.001372/0.001372, allocations: 198 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.469/1.469, allocations: 227.7 MB / 247.2 MB, free: 10.23 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.001976/0.001976, allocations: 71.89 kB / 358.6 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2707/0.2727, allocations: 50.54 MB / 409.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04794/0.3207, allocations: 40.08 MB / 449.2 MB, free: 9.113 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02591/0.3466, allocations: 10.63 MB / 459.8 MB, free: 14.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008408/0.3551, allocations: 303 kB / 460.1 MB, free: 14.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02152/0.3766, allocations: 8.538 MB / 468.7 MB, free: 5.586 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01396/0.3906, allocations: 3.414 MB / 472.1 MB, free: 2.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00786/0.3985, allocations: 2.357 MB / 474.4 MB, free: 15.81 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01911/0.4176, allocations: 12.96 MB / 487.4 MB, free: 2.801 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04397/0.4617, allocations: 25.31 MB / 0.5007 GB, free: 9.336 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01354/0.4753, allocations: 6.798 MB / 0.5073 GB, free: 2.52 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01616/0.4915, allocations: 7.833 MB / 0.515 GB, free: 10.66 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007039/0.4986, allocations: 1.953 MB / 0.5169 GB, free: 8.703 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009206/0.5078, allocations: 2.363 MB / 0.5192 GB, free: 6.344 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007946/0.5158, allocations: 3.955 MB / 0.5231 GB, free: 2.379 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01624/0.5321, allocations: 7.56 MB / 0.5304 GB, free: 10.79 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5263/1.058, allocations: 25.97 MB / 0.5558 GB, free: 55.41 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/1.059, allocations: 1.906 kB / 0.5558 GB, free: 55.41 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.633e-06/1.059, allocations: 0 / 0.5558 GB, free: 55.41 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009002/1.059, allocations: 0 / 0.5558 GB, free: 55.41 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: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.05/1.109, allocations: 15.33 MB / 0.5708 GB, free: 48.57 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/1.11, allocations: 11.59 kB / 0.5708 GB, free: 48.57 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008746/1.118, allocations: 1.712 MB / 0.5725 GB, free: 48.15 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03412/1.152, allocations: 6.126 MB / 0.5784 GB, free: 45.71 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01574/1.168, allocations: 8.106 MB / 0.5864 GB, free: 41.45 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007405/1.169, allocations: 0.9002 MB / 0.5872 GB, free: 41.05 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005431/1.174, allocations: 1.198 MB / 0.5884 GB, free: 40.64 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0468/1.221, allocations: 18.69 MB / 0.6067 GB, free: 23.35 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006313/1.222, allocations: 23.28 kB / 0.6067 GB, free: 23.33 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004649/1.227, allocations: 0.4887 MB / 0.6072 GB, free: 22.86 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005268/1.227, allocations: 0.6499 MB / 0.6078 GB, free: 22.2 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03502/1.262, allocations: 16.8 MB / 0.6242 GB, free: 5.395 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1238/1.386, allocations: 58.99 MB / 0.6818 GB, free: 9.941 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03275/1.419, allocations: 33.25 MB / 0.7143 GB, free: 4.797 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007468/1.426, allocations: 3.738 MB / 0.7179 GB, free: 1.043 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02077/1.447, allocations: 8.876 MB / 0.7266 GB, free: 8.195 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.744e-05/1.447, allocations: 73.25 kB / 0.7267 GB, free: 8.113 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=349): time 4.618e-06/1.447, allocations: 4 kB / 0.7267 GB, free: 8.109 MB / 0.5607 GB Notification: Performance of matching and sorting (n=389): time 0.04191/1.489, allocations: 17.76 MB / 0.744 GB, free: 6.27 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/1.489, allocations: 94.45 kB / 0.7441 GB, free: 6.164 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01184/1.501, allocations: 5.046 MB / 0.749 GB, free: 1.125 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0009886/1.502, allocations: 89.7 kB / 0.7491 GB, free: 1.031 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.2595/1.762, allocations: 5.641 MB / 0.7546 GB, free: 216.5 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002078/1.764, allocations: 1.425 MB / 0.756 GB, free: 215.6 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002722/1.766, allocations: 1.334 MB / 0.7573 GB, free: 215.5 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 5.755e-05/1.767, allocations: 303.8 kB / 0.7576 GB, free: 215.2 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00449/1.771, allocations: 2.914 MB / 0.7604 GB, free: 215.2 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006057/1.777, allocations: 5.882 MB / 0.7662 GB, free: 210.5 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01106/1.788, allocations: 9.458 MB / 0.7754 GB, free: 203.5 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001621/1.788, allocations: 28.47 kB / 0.7755 GB, free: 203.5 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.0171/1.805, allocations: 9.9 MB / 0.7851 GB, free: 199.5 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 8.43e-05/1.806, allocations: 45.88 kB / 0.7852 GB, free: 199.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002123/1.806, allocations: 101.2 kB / 0.7853 GB, free: 199.5 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002306/1.808, allocations: 0.9412 MB / 0.7862 GB, free: 199.2 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00539/1.814, allocations: 1.584 MB / 0.7877 GB, free: 199.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01059/1.824, allocations: 10.2 MB / 0.7977 GB, free: 190 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006519/1.831, allocations: 399.8 kB / 0.7981 GB, free: 189.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001448/1.832, allocations: 354.5 kB / 0.7984 GB, free: 189.4 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007884/1.84, allocations: 4.248 MB / 0.8026 GB, free: 185.7 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001361/1.841, allocations: 0.5393 MB / 0.8031 GB, free: 185.2 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009817/1.851, allocations: 6.49 MB / 0.8094 GB, free: 179.7 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-05/1.851, allocations: 43.98 kB / 0.8095 GB, free: 179.6 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.391e-05/1.851, allocations: 8 kB / 0.8095 GB, free: 179.6 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-05/1.851, allocations: 22.69 kB / 0.8095 GB, free: 179.6 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02525/1.877, allocations: 15.74 MB / 0.8249 GB, free: 165.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/1.877, allocations: 8.062 kB / 0.8249 GB, free: 165.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002876/1.88, allocations: 0.7489 MB / 0.8256 GB, free: 165.2 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00197/1.882, allocations: 0.7878 MB / 0.8264 GB, free: 164.4 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002895/1.882, allocations: 91.95 kB / 0.8265 GB, free: 164.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008346/1.89, allocations: 9.356 MB / 0.8356 GB, free: 154.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/1.89, allocations: 0 / 0.8356 GB, free: 154.5 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0128/1.903, allocations: 9.553 MB / 0.8449 GB, free: 144.9 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00266/1.906, allocations: 1.087 MB / 0.846 GB, free: 143.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001165/1.907, allocations: 76 kB / 0.8461 GB, free: 143.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002592/1.91, allocations: 215.8 kB / 0.8463 GB, free: 143.5 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005595/1.91, allocations: 266.7 kB / 0.8465 GB, free: 143.2 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002514/1.91, allocations: 117.2 kB / 0.8466 GB, free: 143.1 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004854/1.915, allocations: 3.363 MB / 0.8499 GB, free: 139.7 MB / 0.5763 GB Notification: Performance of sort global known variables: time 6.81e-07/1.915, allocations: 0 / 0.8499 GB, free: 139.7 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.007488/1.923, allocations: 1.879 MB / 0.8517 GB, free: 137.9 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * 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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(1,1,100.0%), (8,38,59.4%), (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.01259/1.935, allocations: 10.28 MB / 0.8618 GB, free: 127.5 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01025/1.946, allocations: 7.686 MB / 0.8693 GB, free: 119.7 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 7.754e-06/1.946, allocations: 4 kB / 0.8693 GB, free: 119.7 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004751/1.95, allocations: 3.583 MB / 0.8728 GB, free: 116.1 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006326/1.957, allocations: 1.293 MB / 0.8741 GB, free: 114.8 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1047/2.062, allocations: 65.17 MB / 0.9377 GB, free: 45.78 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01126/2.073, allocations: 7.333 MB / 0.9449 GB, free: 38.41 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.00703/2.08, allocations: 2.149 MB / 0.947 GB, free: 36.26 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00791/2.088, allocations: 4.354 MB / 0.9512 GB, free: 31.91 MB / 0.5763 GB Notification: Performance of SimCode: time 1.062e-06/2.088, allocations: 0 / 0.9512 GB, free: 31.91 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4704/2.558, allocations: 146.9 MB / 1.095 GB, free: 106.7 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.49/25.05, allocations: 13.14 kB / 1.095 GB, free: 106.7 MB / 0.5763 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_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_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1)