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_Mains.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_Mains,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001381/0.001381, allocations: 114.9 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001509/0.001509, allocations: 205.9 kB / 18.74 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.413/1.413, allocations: 227.7 MB / 247.2 MB, free: 10.25 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.002043/0.002043, allocations: 64.08 kB / 358.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2775, allocations: 50.54 MB / 409.1 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.04545/0.323, allocations: 37.91 MB / 447 MB, free: 11.44 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02613/0.3492, allocations: 10.28 MB / 457.3 MB, free: 1.121 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008472/0.3577, allocations: 279.1 kB / 457.6 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02321/0.381, allocations: 9.103 MB / 466.7 MB, free: 7.723 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01429/0.3953, allocations: 3.915 MB / 470.6 MB, free: 3.789 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00904/0.4044, allocations: 2.441 MB / 473 MB, free: 1.355 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02582/0.4302, allocations: 14.22 MB / 487.2 MB, free: 3.094 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04834/0.4786, allocations: 25.62 MB / 0.5008 GB, free: 9.297 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01382/0.4925, allocations: 7.188 MB / 0.5079 GB, free: 2.09 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01478/0.5073, allocations: 8.043 MB / 0.5157 GB, free: 10.02 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00712/0.5145, allocations: 2.031 MB / 0.5177 GB, free: 7.984 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0104/0.5249, allocations: 2.445 MB / 0.5201 GB, free: 5.543 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009054/0.534, allocations: 4.025 MB / 0.524 GB, free: 1.508 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01744/0.5515, allocations: 7.829 MB / 0.5317 GB, free: 9.641 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4811/1.033, allocations: 27.05 MB / 0.5581 GB, free: 56.71 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.384e-05/1.033, allocations: 0 / 0.5581 GB, free: 56.71 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.595e-06/1.033, allocations: 0 / 0.5581 GB, free: 56.71 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009503/1.034, allocations: 3.156 kB / 0.5581 GB, free: 56.71 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: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.05096/1.085, allocations: 16.18 MB / 0.5739 GB, free: 49.52 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/1.085, allocations: 7.938 kB / 0.5739 GB, free: 49.52 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007633/1.092, allocations: 1.931 MB / 0.5758 GB, free: 49.05 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03629/1.129, allocations: 6.432 MB / 0.5821 GB, free: 46.54 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01946/1.148, allocations: 8.642 MB / 0.5905 GB, free: 41.2 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006857/1.149, allocations: 0.9022 MB / 0.5914 GB, free: 40.79 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004858/1.154, allocations: 1.193 MB / 0.5926 GB, free: 40.39 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04437/1.198, allocations: 18.81 MB / 0.6109 GB, free: 21.79 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005278/1.199, allocations: 23.56 kB / 0.6109 GB, free: 21.77 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004985/1.204, allocations: 0.4904 MB / 0.6114 GB, free: 21.29 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000561/1.204, allocations: 0.6576 MB / 0.6121 GB, free: 20.63 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03223/1.237, allocations: 17.04 MB / 0.6287 GB, free: 3.59 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1162/1.353, allocations: 63.35 MB / 0.6906 GB, free: 3.504 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0322/1.385, allocations: 30.05 MB / 0.7199 GB, free: 1.961 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007485/1.393, allocations: 4.03 MB / 0.7238 GB, free: 13.93 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02101/1.414, allocations: 10.43 MB / 0.734 GB, free: 3.52 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.929e-05/1.414, allocations: 77.8 kB / 0.7341 GB, free: 3.434 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=402): time 5.63e-06/1.414, allocations: 0 / 0.7341 GB, free: 3.434 MB / 0.5607 GB Notification: Performance of matching and sorting (n=412): time 0.2931/1.707, allocations: 20.44 MB / 0.7541 GB, free: 213.9 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.093e-05/1.707, allocations: 120.9 kB / 0.7542 GB, free: 213.8 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009082/1.716, allocations: 5.192 MB / 0.7593 GB, free: 213.5 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007618/1.717, allocations: 95.48 kB / 0.7593 GB, free: 213.5 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003053/1.72, allocations: 5.55 MB / 0.7648 GB, free: 211.3 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001799/1.722, allocations: 1.496 MB / 0.7662 GB, free: 210.1 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00241/1.724, allocations: 1.265 MB / 0.7675 GB, free: 209.5 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.98e-05/1.724, allocations: 302 kB / 0.7677 GB, free: 209.2 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004427/1.729, allocations: 2.863 MB / 0.7705 GB, free: 208.1 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006166/1.735, allocations: 5.348 MB / 0.7758 GB, free: 203.8 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01066/1.746, allocations: 8.754 MB / 0.7843 GB, free: 197.7 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.119e-05/1.746, allocations: 23.66 kB / 0.7843 GB, free: 197.7 MB / 0.5763 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01686/1.763, allocations: 9.742 MB / 0.7939 GB, free: 193.6 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 6.241e-05/1.763, allocations: 43.09 kB / 0.7939 GB, free: 193.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000135/1.763, allocations: 80.19 kB / 0.794 GB, free: 193.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002716/1.765, allocations: 1.113 MB / 0.7951 GB, free: 193.3 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00503/1.771, allocations: 1.456 MB / 0.7965 GB, free: 193.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01302/1.784, allocations: 13.48 MB / 0.8096 GB, free: 180.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005369/1.789, allocations: 356.8 kB / 0.81 GB, free: 180.6 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00127/1.79, allocations: 323.3 kB / 0.8103 GB, free: 180.3 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (764): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,1,100.0%), (10,46,50.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007017/1.797, allocations: 4.235 MB / 0.8144 GB, free: 176.7 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001385/1.799, allocations: 0.5629 MB / 0.815 GB, free: 176.1 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01174/1.81, allocations: 7.098 MB / 0.8219 GB, free: 170 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006314/1.817, allocations: 4.252 MB / 0.8261 GB, free: 166.3 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.675e-05/1.817, allocations: 16 kB / 0.8261 GB, free: 166.3 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.104e-05/1.817, allocations: 23.39 kB / 0.8261 GB, free: 166.3 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02868/1.846, allocations: 17.01 MB / 0.8427 GB, free: 149.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.301e-05/1.846, allocations: 4.719 kB / 0.8427 GB, free: 149.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002846/1.849, allocations: 0.6982 MB / 0.8434 GB, free: 148.8 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00305/1.852, allocations: 1.185 MB / 0.8446 GB, free: 147.6 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000652/1.852, allocations: 99.95 kB / 0.8446 GB, free: 147.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0148/1.867, allocations: 17.39 MB / 0.8616 GB, free: 129.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.17e-06/1.867, allocations: 8.062 kB / 0.8616 GB, free: 129.3 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01408/1.881, allocations: 10.33 MB / 0.8717 GB, free: 118.8 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003063/1.884, allocations: 1.146 MB / 0.8729 GB, free: 117.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001394/1.886, allocations: 80 kB / 0.8729 GB, free: 117.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003228/1.889, allocations: 217.7 kB / 0.8731 GB, free: 117.3 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007763/1.89, allocations: 303.4 kB / 0.8734 GB, free: 117 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003022/1.89, allocations: 124 kB / 0.8735 GB, free: 116.9 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005159/1.895, allocations: 3.493 MB / 0.877 GB, free: 113.4 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.81e-07/1.895, allocations: 4 kB / 0.877 GB, free: 113.4 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.008174/1.903, allocations: 1.957 MB / 0.8789 GB, free: 111.4 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.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 (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%), (1,1,100.0%), (10,46,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01539/1.919, allocations: 11.07 MB / 0.8897 GB, free: 100.2 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01159/1.931, allocations: 7.719 MB / 0.8972 GB, free: 92.4 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.218e-05/1.931, allocations: 6.062 kB / 0.8972 GB, free: 92.39 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006356/1.937, allocations: 4.098 MB / 0.9012 GB, free: 88.22 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009099/1.946, allocations: 1.456 MB / 0.9026 GB, free: 86.81 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.107/2.053, allocations: 66.85 MB / 0.9679 GB, free: 16.68 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2385/2.292, allocations: 7.38 MB / 0.9751 GB, free: 207.9 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.006024/2.298, allocations: 2.002 MB / 0.9771 GB, free: 207.8 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006799/2.305, allocations: 4.423 MB / 0.9814 GB, free: 207.5 MB / 0.5763 GB Notification: Performance of SimCode: time 7.81e-07/2.305, allocations: 4 kB / 0.9814 GB, free: 207.5 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2236/2.528, allocations: 156.8 MB / 1.135 GB, free: 71.55 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.06/26.59, allocations: 19.97 kB / 1.135 GB, free: 71.54 MB / 0.5763 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.csv --start-time 0 --stop-time 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_Mains.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1)