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_OpenCircuit.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_OpenCircuit,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_OpenCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001327/0.001327, allocations: 122.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.001317/0.001317, allocations: 202 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.434/1.434, allocations: 227.7 MB / 247.2 MB, free: 10.2 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.001953/0.001954, allocations: 59.89 kB / 358.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2592, allocations: 50.55 MB / 409.1 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit): time 0.03632/0.2956, allocations: 30.98 MB / 440.1 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01962/0.3153, allocations: 8.88 MB / 449 MB, free: 9.363 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006382/0.3217, allocations: 191.4 kB / 449.1 MB, free: 9.176 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01287/0.3347, allocations: 4.917 MB / 454.1 MB, free: 4.246 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01061/0.3453, allocations: 2.976 MB / 457 MB, free: 1.258 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005442/0.3508, allocations: 1.629 MB / 458.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01378/0.3645, allocations: 8.8 MB / 467.5 MB, free: 6.805 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01981/0.3844, allocations: 12.87 MB / 480.3 MB, free: 9.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007976/0.3924, allocations: 4.226 MB / 484.6 MB, free: 5.602 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00929/0.4018, allocations: 4.823 MB / 489.4 MB, free: 0.7617 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003932/0.4058, allocations: 1.164 MB / 490.5 MB, free: 15.59 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005617/0.4114, allocations: 1.542 MB / 492.1 MB, free: 14.05 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003775/0.4152, allocations: 2.416 MB / 494.5 MB, free: 11.63 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008188/0.4234, allocations: 4.68 MB / 499.2 MB, free: 6.934 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02078/0.4442, allocations: 15.88 MB / 0.503 GB, free: 7.004 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.4443, allocations: 0 / 0.503 GB, free: 7.004 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4443, allocations: 4 kB / 0.503 GB, free: 7 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003811/0.4447, allocations: 0 / 0.503 GB, free: 7 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1994 * Number of variables: 1994 Notification: Performance of Generate backend data structure: time 0.03001/0.4747, allocations: 9.971 MB / 0.5127 GB, free: 12.92 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.805e-05/0.4748, allocations: 8.031 kB / 0.5127 GB, free: 12.91 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003494/0.4783, allocations: 1.148 MB / 0.5139 GB, free: 11.75 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03015/0.5084, allocations: 5.236 MB / 0.519 GB, free: 6.508 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01451/0.523, allocations: 5.142 MB / 0.524 GB, free: 1.285 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007872/0.5238, allocations: 0.5338 MB / 0.5245 GB, free: 0.75 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004368/0.5282, allocations: 0.7069 MB / 0.5252 GB, free: 44 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03241/0.5607, allocations: 11.35 MB / 0.5363 GB, free: 4.605 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004007/0.5611, allocations: 27.84 kB / 0.5363 GB, free: 4.578 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002735/0.5639, allocations: 296 kB / 0.5366 GB, free: 4.289 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005954/0.5645, allocations: 447 kB / 0.537 GB, free: 3.852 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2408/0.8053, allocations: 10.86 MB / 0.5476 GB, free: 112.2 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05398/0.8593, allocations: 38.59 MB / 0.5853 GB, free: 82.46 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01352/0.8729, allocations: 28.32 MB / 0.613 GB, free: 50.32 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003735/0.8766, allocations: 2.686 MB / 0.6156 GB, free: 47.63 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01062/0.8873, allocations: 8.47 MB / 0.6239 GB, free: 39.11 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.8874, allocations: 58.81 kB / 0.6239 GB, free: 39.05 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 4.218e-06/0.8874, allocations: 0 / 0.6239 GB, free: 39.05 MB / 462.1 MB Notification: Performance of matching and sorting (n=233): time 0.01721/0.9046, allocations: 10.49 MB / 0.6342 GB, free: 28.84 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001532/0.9062, allocations: 1.999 MB / 0.6361 GB, free: 26.67 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004488/0.9107, allocations: 3.85 MB / 0.6399 GB, free: 22.85 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003008/0.911, allocations: 61.7 kB / 0.6399 GB, free: 22.79 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001509/0.9125, allocations: 3.683 MB / 0.6435 GB, free: 19.16 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006976/0.9132, allocations: 0.8747 MB / 0.6444 GB, free: 18.29 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001133/0.9144, allocations: 0.9614 MB / 0.6453 GB, free: 17.32 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.113e-05/0.9144, allocations: 309 kB / 0.6456 GB, free: 17.02 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002229/0.9166, allocations: 1.895 MB / 0.6475 GB, free: 15.11 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003136/0.9198, allocations: 4.403 MB / 0.6518 GB, free: 9.477 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006188/0.926, allocations: 6.796 MB / 0.6584 GB, free: 1.473 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.961e-05/0.9261, allocations: 27.75 kB / 0.6584 GB, free: 1.449 MB / 462.1 MB Notification: Performance of matching and sorting (n=627) (initialization): time 0.0129/0.939, allocations: 7.031 MB / 0.6653 GB, free: 10.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.673e-05/0.9391, allocations: 44 kB / 0.6654 GB, free: 10.36 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000168/0.9393, allocations: 84.09 kB / 0.6654 GB, free: 10.28 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002187/0.9415, allocations: 0.7421 MB / 0.6662 GB, free: 9.527 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004032/0.9455, allocations: 1.12 MB / 0.6673 GB, free: 8.406 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008802/0.9543, allocations: 5.64 MB / 0.6728 GB, free: 2.621 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00503/0.9594, allocations: 311.4 kB / 0.6731 GB, free: 2.316 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009079/0.9603, allocations: 276 kB / 0.6733 GB, free: 2.047 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 393 * 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 (590): * Single equations (assignments): 587 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004955/0.9653, allocations: 2.528 MB / 0.6758 GB, free: 15.51 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001092/0.9664, allocations: 405.4 kB / 0.6762 GB, free: 15.11 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008426/0.9748, allocations: 4.275 MB / 0.6804 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.511e-05/0.9749, allocations: 27.94 kB / 0.6804 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.449e-05/0.9749, allocations: 4 kB / 0.6804 GB, free: 10.77 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-05/0.975, allocations: 15.95 kB / 0.6804 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02647/1.001, allocations: 14.32 MB / 0.6944 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.597e-05/1.002, allocations: 15.94 kB / 0.6944 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002021/1.004, allocations: 483.3 kB / 0.6949 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002241/1.006, allocations: 0.6902 MB / 0.6955 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002881/1.006, allocations: 75.97 kB / 0.6956 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01104/1.017, allocations: 7.499 MB / 0.7029 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002185/1.019, allocations: 1.956 MB / 0.7048 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0134/1.033, allocations: 6.793 MB / 0.7115 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002928/1.036, allocations: 0.8223 MB / 0.7123 GB, free: 9.172 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0014/1.037, allocations: 60 kB / 0.7123 GB, free: 9.113 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003231/1.04, allocations: 163.9 kB / 0.7125 GB, free: 8.953 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008821/1.041, allocations: 213.5 kB / 0.7127 GB, free: 8.742 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004552/1.042, allocations: 95.97 kB / 0.7128 GB, free: 8.648 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006372/1.048, allocations: 2.522 MB / 0.7152 GB, free: 6.113 MB / 0.5137 GB Notification: Performance of sort global known variables: time 6.22e-07/1.048, allocations: 3.938 kB / 0.7153 GB, free: 6.109 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.007079/1.055, allocations: 1.297 MB / 0.7165 GB, free: 4.812 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 1 ($STATESET1.x) * 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 (241): * Single equations (assignments): 238 * Array equations: 0 * 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): 1 system {(4,32,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01416/1.07, allocations: 7.469 MB / 0.7238 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01072/1.08, allocations: 5.173 MB / 0.7289 GB, free: 7.82 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.015e-05/1.08, allocations: 4 kB / 0.7289 GB, free: 7.816 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006094/1.087, allocations: 2.428 MB / 0.7312 GB, free: 5.348 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00654/1.093, allocations: 1 MB / 0.7322 GB, free: 4.371 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.32/1.413, allocations: 46.21 MB / 0.7773 GB, free: 185.3 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007954/1.421, allocations: 4.499 MB / 0.7817 GB, free: 183 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005674/1.427, allocations: 1.366 MB / 0.7831 GB, free: 181.7 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004693/1.432, allocations: 2.561 MB / 0.7856 GB, free: 179.1 MB / 0.545 GB Notification: Performance of SimCode: time 2.094e-06/1.432, allocations: 0 / 0.7856 GB, free: 179.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1557/1.587, allocations: 103.6 MB / 0.8868 GB, free: 76.32 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.11/22.69, allocations: 8.766 kB / 0.8868 GB, free: 76.3 MB / 0.545 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit_res.csv --start-time 0 --stop-time 0.1 --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_OpenCircuit.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_OpenCircuit.pipe 2>&1)