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.SMPM_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.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_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.00137/0.00137, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001392/0.001392, allocations: 203.8 kB / 18.74 MB, free: 4.332 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.418/1.418, 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.002414/0.002414, allocations: 59.91 kB / 358.6 MB, free: 13.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2699/0.2723, allocations: 50.55 MB / 409.1 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.04799/0.3203, allocations: 41.81 MB / 450.9 MB, free: 7.359 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02655/0.3469, allocations: 11.21 MB / 462.1 MB, free: 12.11 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00821/0.3552, allocations: 322.9 kB / 462.5 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02133/0.3766, allocations: 8.778 MB / 471.2 MB, free: 2.996 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01404/0.3906, allocations: 3.553 MB / 474.8 MB, free: 15.43 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008294/0.399, allocations: 2.443 MB / 477.2 MB, free: 12.99 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01955/0.4185, allocations: 13.42 MB / 490.7 MB, free: 15.52 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04563/0.4642, allocations: 25.63 MB / 0.5042 GB, free: 5.738 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01201/0.4763, allocations: 6.966 MB / 0.511 GB, free: 14.75 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01424/0.4905, allocations: 8.024 MB / 0.5188 GB, free: 6.703 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006256/0.4968, allocations: 1.992 MB / 0.5208 GB, free: 4.711 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008523/0.5054, allocations: 2.406 MB / 0.5231 GB, free: 2.305 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007223/0.5126, allocations: 4.033 MB / 0.5271 GB, free: 14.26 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0142/0.5269, allocations: 7.774 MB / 0.5346 GB, free: 6.453 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.459/0.9859, allocations: 26.55 MB / 0.5606 GB, free: 54.23 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.986, allocations: 4.844 kB / 0.5606 GB, free: 54.23 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.986, allocations: 0 / 0.5606 GB, free: 54.23 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009222/0.9869, allocations: 0 / 0.5606 GB, free: 54.23 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: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.0512/1.038, allocations: 15.77 MB / 0.576 GB, free: 47.2 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/1.038, allocations: 10.22 kB / 0.576 GB, free: 47.2 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007918/1.046, allocations: 1.75 MB / 0.5777 GB, free: 46.76 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03295/1.079, allocations: 6.205 MB / 0.5838 GB, free: 44.29 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01786/1.097, allocations: 8.32 MB / 0.5919 GB, free: 39.11 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008676/1.098, allocations: 0.9336 MB / 0.5928 GB, free: 38.68 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005805/1.104, allocations: 1.222 MB / 0.594 GB, free: 38.27 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04569/1.149, allocations: 19.05 MB / 0.6126 GB, free: 19.65 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004277/1.15, allocations: 31.27 kB / 0.6126 GB, free: 19.62 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00387/1.154, allocations: 0.5078 MB / 0.6131 GB, free: 19.13 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005018/1.154, allocations: 0.6543 MB / 0.6138 GB, free: 18.48 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03559/1.19, allocations: 17.07 MB / 0.6304 GB, free: 1.406 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1258/1.316, allocations: 60.83 MB / 0.6898 GB, free: 3.992 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03361/1.349, allocations: 33.52 MB / 0.7226 GB, free: 14.59 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007817/1.357, allocations: 3.816 MB / 0.7263 GB, free: 10.76 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01951/1.377, allocations: 9.123 MB / 0.7352 GB, free: 1.668 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.054e-05/1.377, allocations: 69.41 kB / 0.7353 GB, free: 1.59 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=361): time 6.553e-06/1.377, allocations: 0 / 0.7353 GB, free: 1.59 MB / 0.5607 GB Notification: Performance of matching and sorting (n=403): time 0.3167/1.694, allocations: 17.98 MB / 0.7528 GB, free: 215.2 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.584e-05/1.694, allocations: 92.86 kB / 0.7529 GB, free: 215.1 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01231/1.706, allocations: 5.265 MB / 0.7581 GB, free: 214.8 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0008622/1.707, allocations: 93.08 kB / 0.7581 GB, free: 214.8 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003631/1.711, allocations: 5.821 MB / 0.7638 GB, free: 212.8 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001789/1.712, allocations: 1.47 MB / 0.7653 GB, free: 211.6 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003816/1.716, allocations: 1.365 MB / 0.7666 GB, free: 211 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.48e-05/1.716, allocations: 307.5 kB / 0.7669 GB, free: 210.7 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004878/1.721, allocations: 2.976 MB / 0.7698 GB, free: 209.5 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00743/1.729, allocations: 6.015 MB / 0.7757 GB, free: 204.5 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01139/1.74, allocations: 9.69 MB / 0.7851 GB, free: 197.3 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001276/1.74, allocations: 31.25 kB / 0.7852 GB, free: 197.3 MB / 0.5763 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01938/1.76, allocations: 10.13 MB / 0.795 GB, free: 193.1 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 8.946e-05/1.76, allocations: 51.34 kB / 0.7951 GB, free: 193.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001883/1.76, allocations: 99.19 kB / 0.7952 GB, free: 193.1 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002434/1.762, allocations: 0.9417 MB / 0.7961 GB, free: 192.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006071/1.769, allocations: 1.638 MB / 0.7977 GB, free: 192.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01075/1.779, allocations: 10.21 MB / 0.8077 GB, free: 182.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007409/1.787, allocations: 420.5 kB / 0.8081 GB, free: 182.4 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0019/1.789, allocations: 370.6 kB / 0.8084 GB, free: 182 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * 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.01147/1.8, allocations: 4.308 MB / 0.8126 GB, free: 178.3 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001914/1.802, allocations: 0.5665 MB / 0.8132 GB, free: 177.7 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01163/1.814, allocations: 6.667 MB / 0.8197 GB, free: 172.1 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.514e-05/1.814, allocations: 44 kB / 0.8198 GB, free: 172.1 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.471e-05/1.814, allocations: 11.94 kB / 0.8198 GB, free: 172.1 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.136e-05/1.814, allocations: 23.39 kB / 0.8198 GB, free: 172.1 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03381/1.848, allocations: 16.27 MB / 0.8357 GB, free: 156.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.941e-05/1.848, allocations: 4 kB / 0.8357 GB, free: 156.7 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003221/1.851, allocations: 0.784 MB / 0.8364 GB, free: 155.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002125/1.853, allocations: 0.7919 MB / 0.8372 GB, free: 155.1 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004661/1.854, allocations: 95.97 kB / 0.8373 GB, free: 155 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00873/1.862, allocations: 9.342 MB / 0.8464 GB, free: 145.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/1.862, allocations: 7.938 kB / 0.8464 GB, free: 145.3 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01358/1.876, allocations: 9.846 MB / 0.8561 GB, free: 135.3 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003414/1.88, allocations: 1.13 MB / 0.8572 GB, free: 134.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001585/1.881, allocations: 76 kB / 0.8572 GB, free: 134.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003132/1.884, allocations: 231.7 kB / 0.8574 GB, free: 133.9 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006423/1.885, allocations: 274.8 kB / 0.8577 GB, free: 133.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002706/1.885, allocations: 124 kB / 0.8578 GB, free: 133.5 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005886/1.891, allocations: 3.511 MB / 0.8613 GB, free: 130 MB / 0.5763 GB Notification: Performance of sort global known variables: time 5.81e-07/1.891, allocations: 0 / 0.8613 GB, free: 130 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.009219/1.9, allocations: 1.941 MB / 0.8632 GB, free: 128 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.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 (384): * Single equations (assignments): 379 * 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.01435/1.915, allocations: 10.59 MB / 0.8735 GB, free: 117.3 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01118/1.926, allocations: 7.852 MB / 0.8812 GB, free: 109.4 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 9.958e-06/1.926, allocations: 4 kB / 0.8812 GB, free: 109.4 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005391/1.931, allocations: 3.653 MB / 0.8847 GB, free: 105.7 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008628/1.94, allocations: 1.407 MB / 0.8861 GB, free: 104.3 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1132/2.053, allocations: 67.42 MB / 0.9519 GB, free: 32.93 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01554/2.069, allocations: 7.425 MB / 0.9592 GB, free: 25.46 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.2586/2.328, allocations: 2.196 MB / 0.9613 GB, free: 219.4 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00785/2.335, allocations: 4.525 MB / 0.9658 GB, free: 218.8 MB / 0.5763 GB Notification: Performance of SimCode: time 1.623e-06/2.336, allocations: 0 / 0.9658 GB, free: 218.8 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2274/2.563, allocations: 153 MB / 1.115 GB, free: 87.09 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.19/26.75, allocations: 13.27 kB / 1.115 GB, free: 87.08 MB / 0.5763 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_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_SMPM_CurrentSource.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)