Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001512/0.001512, allocations: 110.2 kB / 17.07 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001561/0.001561, allocations: 191 kB / 18 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 43.92 kB / 350.8 MB, free: 3.691 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2746/0.2761, allocations: 49.45 MB / 400.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.04433/0.3205, allocations: 41.11 MB / 441.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02965/0.3503, allocations: 11.11 MB / 452.5 MB, free: 4.336 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008228/0.3585, allocations: 299.1 kB / 452.8 MB, free: 4.043 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01993/0.3785, allocations: 7.932 MB / 460.7 MB, free: 12.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01451/0.393, allocations: 3.67 MB / 464.4 MB, free: 8.406 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00853/0.4016, allocations: 2.274 MB / 466.7 MB, free: 6.137 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01753/0.4191, allocations: 12.45 MB / 479.1 MB, free: 9.641 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03722/0.4564, allocations: 23.52 MB / 0.4909 GB, free: 1.945 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01025/0.4667, allocations: 6.377 MB / 0.4971 GB, free: 11.55 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01119/0.4779, allocations: 7.147 MB / 0.5041 GB, free: 4.375 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005198/0.4832, allocations: 1.828 MB / 0.5059 GB, free: 2.547 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007338/0.4905, allocations: 2.238 MB / 0.5081 GB, free: 320 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006155/0.4967, allocations: 3.643 MB / 0.5116 GB, free: 12.66 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01311/0.5099, allocations: 7.089 MB / 0.5185 GB, free: 5.543 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4432/0.9532, allocations: 24.07 MB / 0.542 GB, free: 53.84 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.978e-06/0.9532, allocations: 0.5 kB / 0.542 GB, free: 53.84 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.9532, allocations: 0 / 0.542 GB, free: 53.84 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007259/0.954, allocations: 0.5938 kB / 0.542 GB, free: 53.84 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: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.04012/0.9941, allocations: 14.46 MB / 0.5562 GB, free: 49.59 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.9942, allocations: 14.44 kB / 0.5562 GB, free: 49.58 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005551/0.9997, allocations: 1.744 MB / 0.5579 GB, free: 49.44 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02827/1.028, allocations: 5.234 MB / 0.563 GB, free: 48.75 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01634/1.044, allocations: 7.718 MB / 0.5705 GB, free: 47.57 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007533/1.045, allocations: 0.8301 MB / 0.5713 GB, free: 47.54 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004874/1.05, allocations: 1.087 MB / 0.5724 GB, free: 47.54 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04299/1.093, allocations: 16.6 MB / 0.5886 GB, free: 35.96 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004909/1.094, allocations: 19.73 kB / 0.5886 GB, free: 35.95 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004084/1.098, allocations: 461.8 kB / 0.5891 GB, free: 35.5 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004784/1.098, allocations: 0.5773 MB / 0.5896 GB, free: 34.92 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02779/1.126, allocations: 14.75 MB / 0.604 GB, free: 20.16 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09566/1.222, allocations: 55.75 MB / 0.6585 GB, free: 11.75 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02167/1.243, allocations: 20.83 MB / 0.6788 GB, free: 4.344 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006035/1.25, allocations: 3.289 MB / 0.682 GB, free: 1.059 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01972/1.269, allocations: 9.44 MB / 0.6912 GB, free: 7.605 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.284e-05/1.269, allocations: 77.11 kB / 0.6913 GB, free: 7.523 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=313): time 5.06e-06/1.269, allocations: 0 / 0.6913 GB, free: 7.523 MB / 0.5294 GB Notification: Performance of matching and sorting (n=340): time 0.03733/1.307, allocations: 16.9 MB / 0.7078 GB, free: 6.5 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.983e-05/1.307, allocations: 116.4 kB / 0.7079 GB, free: 6.371 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009143/1.316, allocations: 5.162 MB / 0.713 GB, free: 1.219 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006764/1.317, allocations: 85.7 kB / 0.7131 GB, free: 1.129 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003834/1.321, allocations: 5.342 MB / 0.7183 GB, free: 11.78 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001608/1.322, allocations: 1.253 MB / 0.7195 GB, free: 10.54 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00249/1.325, allocations: 1.263 MB / 0.7207 GB, free: 9.27 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 0.0001164/1.325, allocations: 301.1 kB / 0.721 GB, free: 8.973 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005202/1.33, allocations: 2.628 MB / 0.7236 GB, free: 6.34 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00752/1.338, allocations: 5.445 MB / 0.7289 GB, free: 15.61 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01136/1.349, allocations: 8.494 MB / 0.7372 GB, free: 6.176 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001123/1.349, allocations: 28 kB / 0.7372 GB, free: 6.148 MB / 0.5763 GB Notification: Performance of matching and sorting (n=816) (initialization): time 0.01875/1.368, allocations: 9.24 MB / 0.7462 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 9.829e-05/1.368, allocations: 48 kB / 0.7463 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001627/1.368, allocations: 92 kB / 0.7464 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002491/1.371, allocations: 0.9164 MB / 0.7473 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0056/1.376, allocations: 1.476 MB / 0.7487 GB, free: 11.03 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01266/1.389, allocations: 10.54 MB / 0.759 GB, free: 168 kB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2934/1.683, allocations: 399.2 kB / 0.7594 GB, free: 234.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001471/1.684, allocations: 337.5 kB / 0.7597 GB, free: 234.9 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 431 * 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 (767): * Single equations (assignments): 762 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 3 systems {(8,26,67.2%), (2,8,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008003/1.692, allocations: 3.749 MB / 0.7634 GB, free: 234.8 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001819/1.694, allocations: 0.5223 MB / 0.7639 GB, free: 234.8 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01228/1.706, allocations: 5.877 MB / 0.7696 GB, free: 233.2 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005564/1.712, allocations: 3.043 MB / 0.7726 GB, free: 232 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.646e-05/1.712, allocations: 12.38 kB / 0.7726 GB, free: 232 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.91e-05/1.712, allocations: 16.88 kB / 0.7726 GB, free: 232 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03193/1.744, allocations: 14.56 MB / 0.7868 GB, free: 226 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.054e-05/1.744, allocations: 11.44 kB / 0.7869 GB, free: 226 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002699/1.747, allocations: 0.588 MB / 0.7874 GB, free: 225.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002428/1.749, allocations: 0.8978 MB / 0.7883 GB, free: 225.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005889/1.75, allocations: 78.66 kB / 0.7884 GB, free: 225.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01284/1.763, allocations: 14.02 MB / 0.8021 GB, free: 214.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/1.763, allocations: 14.97 kB / 0.8021 GB, free: 214.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01293/1.776, allocations: 8.521 MB / 0.8104 GB, free: 209.7 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003399/1.779, allocations: 1.003 MB / 0.8114 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001763/1.781, allocations: 70.67 kB / 0.8115 GB, free: 209 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003527/1.784, allocations: 190.1 kB / 0.8116 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000838/1.785, allocations: 266.6 kB / 0.8119 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002746/1.786, allocations: 102.8 kB / 0.812 GB, free: 208.6 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.006163/1.792, allocations: 3.424 MB / 0.8153 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.91e-07/1.792, allocations: 3.844 kB / 0.8153 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.009341/1.801, allocations: 1.774 MB / 0.8171 GB, free: 204 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.zeroInductor.i0,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.short.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * 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 (298): * Single equations (assignments): 292 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(2,8,100.0%), (1,4,100.0%), (1,8,100.0%), (3,4,77.8%), (8,26,64.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01435/1.816, allocations: 9.242 MB / 0.8261 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01217/1.828, allocations: 6.889 MB / 0.8328 GB, free: 188.5 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.579e-05/1.828, allocations: 4 kB / 0.8328 GB, free: 188.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.006262/1.834, allocations: 3.393 MB / 0.8361 GB, free: 185.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008959/1.843, allocations: 1.163 MB / 0.8373 GB, free: 184 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1154/1.959, allocations: 61.47 MB / 0.8973 GB, free: 118.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01008/1.969, allocations: 6.552 MB / 0.9037 GB, free: 112.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00519/1.974, allocations: 1.834 MB / 0.9055 GB, free: 110.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005701/1.98, allocations: 4.026 MB / 0.9094 GB, free: 106.2 MB / 0.5919 GB Notification: Performance of SimCode: time 1.083e-06/1.98, allocations: 0 / 0.9094 GB, free: 106.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4192/2.399, allocations: 139.5 MB / 1.046 GB, free: 218.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.28/23.68, allocations: 13.56 kB / 1.046 GB, free: 218.4 MB / 0.5919 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches