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.001385/0.001385, allocations: 105.3 kB / 17.06 MB, free: 6.02 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.001405/0.001405, allocations: 192 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.411/1.411, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 47.92 kB / 350.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2502, allocations: 49.44 MB / 400.3 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.04786/0.2981, allocations: 41.12 MB / 441.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02746/0.3256, allocations: 11.11 MB / 452.5 MB, free: 4.344 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008406/0.3341, allocations: 291.1 kB / 452.8 MB, free: 4.059 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02058/0.3547, allocations: 7.88 MB / 460.7 MB, free: 12.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01249/0.3672, allocations: 3.588 MB / 464.3 MB, free: 8.555 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007431/0.3747, allocations: 2.274 MB / 466.5 MB, free: 6.289 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0185/0.3932, allocations: 12.45 MB / 479 MB, free: 9.789 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0387/0.4319, allocations: 23.52 MB / 0.4907 GB, free: 2.102 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01098/0.4429, allocations: 6.342 MB / 0.4969 GB, free: 11.74 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01314/0.4561, allocations: 7.151 MB / 0.5039 GB, free: 4.562 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005796/0.462, allocations: 1.824 MB / 0.5057 GB, free: 2.738 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008594/0.4706, allocations: 2.238 MB / 0.5079 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007111/0.4777, allocations: 3.639 MB / 0.5114 GB, free: 12.85 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01462/0.4924, allocations: 7.093 MB / 0.5184 GB, free: 5.73 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4684/0.9608, allocations: 24.06 MB / 0.5419 GB, free: 53.98 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.9609, allocations: 0.5 kB / 0.5419 GB, free: 53.98 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.9609, allocations: 0.5 kB / 0.5419 GB, free: 53.98 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006797/0.9616, allocations: 0.6562 kB / 0.5419 GB, free: 53.98 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.04121/1.003, allocations: 14.47 MB / 0.556 GB, free: 49.72 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/1.003, allocations: 9.719 kB / 0.556 GB, free: 49.72 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005836/1.009, allocations: 1.748 MB / 0.5577 GB, free: 49.58 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02964/1.038, allocations: 5.219 MB / 0.5628 GB, free: 48.89 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01634/1.055, allocations: 7.724 MB / 0.5703 GB, free: 47.71 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007324/1.056, allocations: 0.8316 MB / 0.5712 GB, free: 47.68 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003941/1.059, allocations: 1.094 MB / 0.5722 GB, free: 47.68 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03841/1.098, allocations: 16.6 MB / 0.5884 GB, free: 36.01 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005663/1.099, allocations: 23.89 kB / 0.5885 GB, free: 35.98 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003846/1.102, allocations: 457.1 kB / 0.5889 GB, free: 35.55 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005245/1.103, allocations: 0.5773 MB / 0.5895 GB, free: 34.96 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03027/1.133, allocations: 14.76 MB / 0.6039 GB, free: 20.19 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1009/1.234, allocations: 55.73 MB / 0.6583 GB, free: 11.79 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02418/1.258, allocations: 20.84 MB / 0.6787 GB, free: 4.375 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006256/1.265, allocations: 3.279 MB / 0.6819 GB, free: 1.094 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01986/1.285, allocations: 9.447 MB / 0.6911 GB, free: 7.633 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.082e-05/1.285, allocations: 68.84 kB / 0.6911 GB, free: 7.559 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=313): time 5.64e-06/1.285, allocations: 0 / 0.6911 GB, free: 7.559 MB / 0.5294 GB Notification: Performance of matching and sorting (n=340): time 0.04023/1.325, allocations: 16.91 MB / 0.7077 GB, free: 6.531 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.7e-05/1.325, allocations: 112.4 kB / 0.7078 GB, free: 6.406 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009602/1.335, allocations: 5.166 MB / 0.7128 GB, free: 1.25 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.00059/1.335, allocations: 81.7 kB / 0.7129 GB, free: 1.164 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004557/1.34, allocations: 5.35 MB / 0.7181 GB, free: 11.8 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001601/1.341, allocations: 1.25 MB / 0.7193 GB, free: 10.57 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002528/1.344, allocations: 1.259 MB / 0.7206 GB, free: 9.301 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 0.0001261/1.344, allocations: 309.1 kB / 0.7209 GB, free: 8.996 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00498/1.349, allocations: 2.628 MB / 0.7234 GB, free: 6.363 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007993/1.357, allocations: 5.442 MB / 0.7287 GB, free: 15.64 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01303/1.37, allocations: 8.499 MB / 0.737 GB, free: 6.203 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.129e-05/1.37, allocations: 24 kB / 0.7371 GB, free: 6.18 MB / 0.5763 GB Notification: Performance of matching and sorting (n=816) (initialization): time 0.01892/1.389, allocations: 9.241 MB / 0.7461 GB, free: 13.49 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 9.253e-05/1.389, allocations: 44 kB / 0.7461 GB, free: 13.45 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001721/1.39, allocations: 96 kB / 0.7462 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002568/1.392, allocations: 0.9173 MB / 0.7471 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005766/1.398, allocations: 1.476 MB / 0.7486 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01435/1.412, allocations: 10.53 MB / 0.7588 GB, free: 208 kB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2251/1.637, allocations: 410.1 kB / 0.7592 GB, free: 234.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001236/1.639, allocations: 337.9 kB / 0.7596 GB, free: 234.8 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.006662/1.645, allocations: 3.75 MB / 0.7632 GB, free: 234.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001237/1.647, allocations: 0.5252 MB / 0.7637 GB, free: 234.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009824/1.656, allocations: 5.869 MB / 0.7695 GB, free: 233 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00442/1.661, allocations: 3.047 MB / 0.7724 GB, free: 231.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-05/1.661, allocations: 11.84 kB / 0.7724 GB, free: 231.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.177e-05/1.661, allocations: 16.17 kB / 0.7725 GB, free: 231.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02512/1.686, allocations: 14.57 MB / 0.7867 GB, free: 225.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.163e-05/1.686, allocations: 3.938 kB / 0.7867 GB, free: 225.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002583/1.689, allocations: 0.5919 MB / 0.7873 GB, free: 225.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002319/1.691, allocations: 0.8978 MB / 0.7881 GB, free: 225.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004817/1.692, allocations: 74.83 kB / 0.7882 GB, free: 225.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01227/1.704, allocations: 14.02 MB / 0.8019 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/1.704, allocations: 6.562 kB / 0.8019 GB, free: 214.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01247/1.716, allocations: 8.521 MB / 0.8102 GB, free: 209.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00244/1.719, allocations: 1.015 MB / 0.8112 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001087/1.72, allocations: 68.25 kB / 0.8113 GB, free: 209.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002735/1.723, allocations: 193.8 kB / 0.8115 GB, free: 208.9 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005664/1.723, allocations: 264.6 kB / 0.8117 GB, free: 208.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002206/1.724, allocations: 103.3 kB / 0.8118 GB, free: 208.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005257/1.729, allocations: 3.423 MB / 0.8152 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.31e-07/1.729, allocations: 0 / 0.8152 GB, free: 205.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007579/1.737, allocations: 1.776 MB / 0.8169 GB, free: 204.1 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.01286/1.749, allocations: 9.242 MB / 0.8259 GB, free: 195.5 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01053/1.76, allocations: 6.888 MB / 0.8327 GB, free: 188.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.088e-05/1.76, allocations: 3.828 kB / 0.8327 GB, free: 188.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00533/1.765, allocations: 3.387 MB / 0.836 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.006635/1.772, allocations: 1.174 MB / 0.8371 GB, free: 184 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09457/1.867, allocations: 61.47 MB / 0.8971 GB, free: 118.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0119/1.879, allocations: 6.548 MB / 0.9035 GB, free: 112.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005501/1.884, allocations: 1.834 MB / 0.9053 GB, free: 110.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005904/1.89, allocations: 4.034 MB / 0.9093 GB, free: 106.2 MB / 0.5919 GB Notification: Performance of SimCode: time 1.252e-06/1.89, allocations: 0 / 0.9093 GB, free: 106.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4187/2.309, allocations: 139.5 MB / 1.046 GB, free: 218.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.01/24.32, allocations: 21.3 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