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.SMEE_DOL.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.SMEE_DOL,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001712/0.001711, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001812/0.001812, allocations: 203.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.484/1.484, allocations: 227.7 MB / 247.2 MB, free: 10.18 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.002908/0.002909, allocations: 63.91 kB / 358.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.2986, allocations: 50.54 MB / 409.1 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL): time 0.02104/0.3197, allocations: 17.28 MB / 426.4 MB, free: 4 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01321/0.333, allocations: 5.701 MB / 432.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003826/0.3368, allocations: 103.6 kB / 432.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004593/0.3415, allocations: 1.272 MB / 433.4 MB, free: 8.906 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007482/0.349, allocations: 1.576 MB / 435 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003729/0.3528, allocations: 1.095 MB / 436.1 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008694/0.3615, allocations: 5.222 MB / 441.3 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006037/0.3676, allocations: 4.327 MB / 445.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003721/0.3713, allocations: 2.173 MB / 447.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005107/0.3765, allocations: 2.642 MB / 450.5 MB, free: 7.738 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001871/0.3784, allocations: 0.6172 MB / 451.1 MB, free: 7.121 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002818/0.3812, allocations: 0.8513 MB / 451.9 MB, free: 6.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001757/0.383, allocations: 1.426 MB / 453.4 MB, free: 4.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006657/0.3897, allocations: 2.653 MB / 456 MB, free: 2.176 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01289/0.4026, allocations: 8.156 MB / 464.2 MB, free: 9.988 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.4027, allocations: 0 / 464.2 MB, free: 9.988 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4027, allocations: 0 / 464.2 MB, free: 9.988 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002233/0.4029, allocations: 0 / 464.2 MB, free: 9.988 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.01724/0.4202, allocations: 5.528 MB / 469.7 MB, free: 4.375 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.081e-05/0.4202, allocations: 8.031 kB / 469.7 MB, free: 4.367 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001477/0.4217, allocations: 0.6066 MB / 470.3 MB, free: 3.746 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005806/0.4275, allocations: 1.025 MB / 471.3 MB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00788/0.4355, allocations: 3.025 MB / 474.4 MB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003168/0.4358, allocations: 307.9 kB / 474.7 MB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001332/0.4372, allocations: 403.9 kB / 475.1 MB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01143/0.4486, allocations: 5.221 MB / 480.3 MB, free: 9.633 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.432e-05/0.4487, allocations: 8 kB / 480.3 MB, free: 9.625 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004969/0.4492, allocations: 164 kB / 480.4 MB, free: 9.465 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001942/0.4494, allocations: 172 kB / 480.6 MB, free: 9.293 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009026/0.4585, allocations: 4.466 MB / 485.1 MB, free: 4.809 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03221/0.4907, allocations: 16.74 MB / 0.4901 GB, free: 3.582 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008833/0.4996, allocations: 8.698 MB / 0.4986 GB, free: 9.809 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004585/0.5042, allocations: 2.123 MB / 0.5006 GB, free: 7.684 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009769/0.514, allocations: 5.777 MB / 0.5063 GB, free: 1.574 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.368e-05/0.5141, allocations: 55.86 kB / 0.5063 GB, free: 1.512 MB / 430.1 MB Notification: Performance of pre-optimization done (n=157): time 3.447e-06/0.5141, allocations: 0 / 0.5063 GB, free: 1.512 MB / 430.1 MB Notification: Performance of matching and sorting (n=160): time 0.01327/0.5274, allocations: 6.38 MB / 0.5126 GB, free: 10.98 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.642e-05/0.5275, allocations: 72.66 kB / 0.5126 GB, free: 10.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004048/0.5315, allocations: 2.319 MB / 0.5149 GB, free: 8.551 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002985/0.5319, allocations: 49.7 kB / 0.5149 GB, free: 8.496 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001622/0.5335, allocations: 1.909 MB / 0.5168 GB, free: 6.566 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006482/0.5342, allocations: 0.5849 MB / 0.5174 GB, free: 5.977 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006505/0.5348, allocations: 395.9 kB / 0.5177 GB, free: 5.582 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.535, allocations: 305.1 kB / 0.518 GB, free: 5.281 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00156/0.5365, allocations: 0.8553 MB / 0.5189 GB, free: 4.422 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002101/0.5386, allocations: 1.567 MB / 0.5204 GB, free: 2.527 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003887/0.5425, allocations: 2.586 MB / 0.5229 GB, free: 15.62 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-05/0.5426, allocations: 8 kB / 0.5229 GB, free: 15.62 MB / 462.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.005385/0.548, allocations: 2.991 MB / 0.5259 GB, free: 12.59 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.12e-05/0.548, allocations: 12 kB / 0.5259 GB, free: 12.58 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.768e-05/0.5481, allocations: 27.98 kB / 0.5259 GB, free: 12.55 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004696/0.5485, allocations: 178 kB / 0.5261 GB, free: 12.38 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001955/0.5505, allocations: 0.5343 MB / 0.5266 GB, free: 11.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00272/0.5532, allocations: 2.437 MB / 0.529 GB, free: 9.25 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001934/0.5552, allocations: 115.8 kB / 0.5291 GB, free: 9.137 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001876/0.5554, allocations: 95.98 kB / 0.5292 GB, free: 9.043 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (266): * Single equations (assignments): 264 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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 {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002272/0.5577, allocations: 1.205 MB / 0.5303 GB, free: 7.828 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005904/0.5583, allocations: 258.4 kB / 0.5306 GB, free: 7.574 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004779/0.5631, allocations: 2.527 MB / 0.5331 GB, free: 4.988 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.907e-05/0.5631, allocations: 16 kB / 0.5331 GB, free: 4.973 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.5631, allocations: 4 kB / 0.5331 GB, free: 4.969 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-05/0.5631, allocations: 7.969 kB / 0.5331 GB, free: 4.961 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2788/0.842, allocations: 5.912 MB / 0.5389 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.085e-05/0.842, allocations: 1.531 kB / 0.5389 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001511/0.8435, allocations: 281 kB / 0.5391 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001048/0.8446, allocations: 364.7 kB / 0.5395 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000148/0.8448, allocations: 39.77 kB / 0.5395 GB, free: 121.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00594/0.8507, allocations: 7.387 MB / 0.5467 GB, free: 115.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.8507, allocations: 0 / 0.5467 GB, free: 115.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005105/0.8559, allocations: 3.682 MB / 0.5503 GB, free: 114.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001228/0.8571, allocations: 0.5107 MB / 0.5508 GB, free: 114 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004682/0.8576, allocations: 32.73 kB / 0.5509 GB, free: 114 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001248/0.8589, allocations: 88.75 kB / 0.5509 GB, free: 114 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005048/0.8594, allocations: 119.6 kB / 0.5511 GB, free: 114 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001109/0.8595, allocations: 49.92 kB / 0.5511 GB, free: 114 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002785/0.8623, allocations: 1.57 MB / 0.5526 GB, free: 113.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.8623, allocations: 0 / 0.5526 GB, free: 113.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002493/0.8648, allocations: 0.6798 MB / 0.5533 GB, free: 113.3 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 126 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,8,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00566/0.8705, allocations: 4.304 MB / 0.5575 GB, free: 111.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003616/0.8741, allocations: 2.334 MB / 0.5598 GB, free: 110.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/0.8742, allocations: 0 / 0.5598 GB, free: 110.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001917/0.8761, allocations: 1.483 MB / 0.5612 GB, free: 109.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002845/0.8789, allocations: 0.612 MB / 0.5618 GB, free: 109 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03364/0.9126, allocations: 24.43 MB / 0.5857 GB, free: 84.46 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001971/0.9146, allocations: 2.685 MB / 0.5883 GB, free: 81.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001891/0.9165, allocations: 0.5474 MB / 0.5888 GB, free: 81.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001601/0.9181, allocations: 1.485 MB / 0.5903 GB, free: 79.72 MB / 462.1 MB Notification: Performance of SimCode: time 1.002e-06/0.9182, allocations: 0 / 0.5903 GB, free: 79.72 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1015/1.02, allocations: 59.94 MB / 0.6488 GB, free: 20.41 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.05/16.07, allocations: 4.219 kB / 0.6488 GB, free: 20.41 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.csv --start-time 0 --stop-time 3 --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_SMEE_DOL.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1)