Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001661/0.001661, allocations: 121.6 kB / 17.78 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.001821/0.001821, allocations: 199.9 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.402/1.402, 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.00194/0.00194, allocations: 63.89 kB / 358.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.263, allocations: 50.54 MB / 409.1 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.02444/0.2875, allocations: 20.92 MB / 430 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01317/0.3007, allocations: 6.183 MB / 436.2 MB, free: 6.137 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004494/0.3052, allocations: 135.5 kB / 436.3 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004974/0.3103, allocations: 1.37 MB / 437.7 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007445/0.3178, allocations: 1.895 MB / 439.6 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004378/0.3222, allocations: 1.267 MB / 440.9 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01021/0.3324, allocations: 6.169 MB / 447 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007726/0.3402, allocations: 5.442 MB / 452.5 MB, free: 5.723 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005075/0.3453, allocations: 2.839 MB / 455.3 MB, free: 2.875 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005861/0.3512, allocations: 3.511 MB / 458.8 MB, free: 15.35 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001687/0.3529, allocations: 0.7812 MB / 459.6 MB, free: 14.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003028/0.3559, allocations: 1.078 MB / 460.7 MB, free: 13.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002229/0.3582, allocations: 1.952 MB / 462.6 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005004/0.3632, allocations: 3.364 MB / 466 MB, free: 8.156 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01317/0.3764, allocations: 10.38 MB / 476.4 MB, free: 13.74 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/0.3765, allocations: 0 / 476.4 MB, free: 13.74 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.568e-06/0.3765, allocations: 4 kB / 476.4 MB, free: 13.74 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003301/0.3768, allocations: 0 / 476.4 MB, free: 13.74 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01912/0.3959, allocations: 6.77 MB / 483.1 MB, free: 6.879 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/0.396, allocations: 8.031 kB / 483.2 MB, free: 6.871 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001682/0.3977, allocations: 0.7 MB / 483.9 MB, free: 6.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005114/0.4028, allocations: 1.032 MB / 484.9 MB, free: 5.125 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009155/0.412, allocations: 3.609 MB / 488.5 MB, free: 1.441 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004924/0.4126, allocations: 390.6 kB / 488.9 MB, free: 1.059 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001864/0.4144, allocations: 0.5115 MB / 489.4 MB, free: 0.5469 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01486/0.4293, allocations: 6.783 MB / 496.2 MB, free: 9.695 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001162/0.4295, allocations: 7.953 kB / 496.2 MB, free: 9.688 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005056/0.43, allocations: 208 kB / 496.4 MB, free: 9.484 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002604/0.4302, allocations: 246.1 kB / 496.6 MB, free: 9.242 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01186/0.4421, allocations: 5.767 MB / 0.4906 GB, free: 3.465 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04355/0.4857, allocations: 20.98 MB / 0.5111 GB, free: 13.97 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0106/0.4963, allocations: 8.817 MB / 0.5197 GB, free: 4.156 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00449/0.5009, allocations: 2.198 MB / 0.5219 GB, free: 1.953 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01327/0.5142, allocations: 6.211 MB / 0.5279 GB, free: 11.54 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.035e-05/0.5143, allocations: 52.56 kB / 0.528 GB, free: 11.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=205): time 5.2e-06/0.5143, allocations: 8 kB / 0.528 GB, free: 11.47 MB / 462.1 MB Notification: Performance of matching and sorting (n=222): time 0.02345/0.5378, allocations: 10.51 MB / 0.5383 GB, free: 0.7109 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.026e-05/0.5379, allocations: 73.41 kB / 0.5383 GB, free: 0.6289 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2238/0.7617, allocations: 2.916 MB / 0.5412 GB, free: 120.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000422/0.7622, allocations: 66.42 kB / 0.5412 GB, free: 120.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001556/0.7638, allocations: 2.436 MB / 0.5436 GB, free: 119.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007135/0.7645, allocations: 0.8028 MB / 0.5444 GB, free: 119 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007025/0.7652, allocations: 0.5297 MB / 0.5449 GB, free: 118.8 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.662e-05/0.7652, allocations: 304.9 kB / 0.5452 GB, free: 118.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001772/0.767, allocations: 1.271 MB / 0.5464 GB, free: 118 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001998/0.769, allocations: 2.172 MB / 0.5486 GB, free: 116.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00392/0.773, allocations: 3.672 MB / 0.5522 GB, free: 114.1 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.477e-05/0.773, allocations: 7.875 kB / 0.5522 GB, free: 114.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006337/0.7793, allocations: 4.482 MB / 0.5565 GB, free: 112.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.225e-05/0.7794, allocations: 15.59 kB / 0.5566 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.45e-05/0.7794, allocations: 27.5 kB / 0.5566 GB, free: 112.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001065/0.7805, allocations: 0.5367 MB / 0.5571 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00222/0.7827, allocations: 0.6889 MB / 0.5578 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006644/0.7894, allocations: 10.35 MB / 0.5679 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002759/0.7922, allocations: 176.2 kB / 0.568 GB, free: 102.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002906/0.7925, allocations: 135.6 kB / 0.5682 GB, free: 102.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (345): * Single equations (assignments): 338 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * 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): 5 systems {(3,11,100.0%), (1,6,100.0%), (1,1,100.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.002479/0.795, allocations: 1.513 MB / 0.5697 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007325/0.7957, allocations: 333.9 kB / 0.57 GB, free: 101 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00577/0.8015, allocations: 3.907 MB / 0.5738 GB, free: 97.32 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.571e-05/0.8016, allocations: 24.56 kB / 0.5738 GB, free: 97.29 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.321e-05/0.8016, allocations: 8 kB / 0.5738 GB, free: 97.29 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-05/0.8016, allocations: 11.95 kB / 0.5738 GB, free: 97.27 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01182/0.8134, allocations: 8.515 MB / 0.5821 GB, free: 88.63 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.067e-05/0.8135, allocations: 4 kB / 0.5821 GB, free: 88.62 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001499/0.815, allocations: 380.7 kB / 0.5825 GB, free: 88.25 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001702/0.8167, allocations: 0.7468 MB / 0.5832 GB, free: 87.49 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001649/0.8169, allocations: 63.95 kB / 0.5833 GB, free: 87.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01187/0.8288, allocations: 16.77 MB / 0.5997 GB, free: 69.57 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/0.8288, allocations: 7.938 kB / 0.5997 GB, free: 69.56 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008187/0.837, allocations: 5.593 MB / 0.6052 GB, free: 63.83 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00198/0.8391, allocations: 0.6667 MB / 0.6058 GB, free: 63.14 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000648/0.8397, allocations: 52 kB / 0.6059 GB, free: 63.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001552/0.8413, allocations: 131.9 kB / 0.606 GB, free: 62.96 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004767/0.8418, allocations: 169.6 kB / 0.6061 GB, free: 62.79 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001296/0.8419, allocations: 67.97 kB / 0.6062 GB, free: 62.73 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002763/0.8447, allocations: 1.976 MB / 0.6081 GB, free: 60.75 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8447, allocations: 0 / 0.6081 GB, free: 60.75 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003538/0.8482, allocations: 0.9396 MB / 0.6091 GB, free: 59.82 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.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 (182): * Single equations (assignments): 174 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007572/0.8558, allocations: 6.316 MB / 0.6152 GB, free: 53.37 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005221/0.8611, allocations: 3.98 MB / 0.6191 GB, free: 49.29 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.8611, allocations: 4 kB / 0.6191 GB, free: 49.29 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003412/0.8645, allocations: 2.686 MB / 0.6217 GB, free: 46.51 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003704/0.8683, allocations: 0.8654 MB / 0.6226 GB, free: 45.67 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04527/0.9136, allocations: 33.47 MB / 0.6553 GB, free: 10.93 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002875/0.9165, allocations: 3.299 MB / 0.6585 GB, free: 7.59 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002558/0.9191, allocations: 0.7619 MB / 0.6592 GB, free: 6.824 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002181/0.9213, allocations: 1.948 MB / 0.6611 GB, free: 4.875 MB / 462.1 MB Notification: Performance of SimCode: time 1.061e-06/0.9213, allocations: 0 / 0.6611 GB, free: 4.875 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1737/1.095, allocations: 82.08 MB / 0.7413 GB, free: 3.578 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.92/18.01, allocations: 12.17 kB / 0.7413 GB, free: 3.566 MB / 0.5294 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1)