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.001898/0.001898, allocations: 107.3 kB / 16.92 MB, free: 6.145 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.00215/0.00215, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.169/2.169, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 42.59 kB / 300.8 MB, free: 5.738 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1147/0.116, allocations: 49.43 MB / 350.2 MB, free: 4.293 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.3579/0.4739, allocations: 41.12 MB / 391.3 MB, free: 4.156 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.03426/0.5083, allocations: 11.12 MB / 402.4 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01599/0.5243, allocations: 292.8 kB / 402.7 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03063/0.5551, allocations: 7.884 MB / 410.6 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01697/0.5721, allocations: 3.582 MB / 414.2 MB, free: 3.977 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01365/0.5857, allocations: 2.277 MB / 416.5 MB, free: 2.117 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.03409/0.6198, allocations: 12.36 MB / 428.8 MB, free: 7.238 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0705/0.6905, allocations: 23.64 MB / 452.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01658/0.7071, allocations: 6.33 MB / 458.8 MB, free: 9.082 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01619/0.7234, allocations: 7.159 MB / 465.9 MB, free: 1.898 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007739/0.7312, allocations: 1.828 MB / 467.8 MB, free: 72 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01177/0.743, allocations: 2.253 MB / 470 MB, free: 13.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009273/0.7523, allocations: 3.639 MB / 473.7 MB, free: 10.17 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02056/0.7729, allocations: 7.089 MB / 480.8 MB, free: 3.051 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05037/0.8234, allocations: 23.86 MB / 0.4928 GB, free: 11.12 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.278e-05/0.8235, allocations: 4 kB / 0.4928 GB, free: 11.12 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.846e-06/0.8235, allocations: 0 / 0.4928 GB, free: 11.12 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0007891/0.8243, allocations: 0 / 0.4928 GB, free: 11.12 MB / 414.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.07324/0.8976, allocations: 14.21 MB / 0.5067 GB, free: 12.8 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.127e-05/0.8977, allocations: 16.03 kB / 0.5067 GB, free: 12.78 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.012/0.9097, allocations: 1.749 MB / 0.5084 GB, free: 11.02 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05918/0.969, allocations: 5.153 MB / 0.5134 GB, free: 5.848 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5057/1.475, allocations: 7.471 MB / 0.5207 GB, free: 118.3 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001502/1.476, allocations: 0.8376 MB / 0.5215 GB, free: 118.2 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005611/1.482, allocations: 1.094 MB / 0.5226 GB, free: 118.1 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06837/1.55, allocations: 16.61 MB / 0.5388 GB, free: 111.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006899/1.551, allocations: 17.66 kB / 0.5388 GB, free: 111.5 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004197/1.555, allocations: 462.1 kB / 0.5393 GB, free: 111.2 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007818/1.556, allocations: 0.5741 MB / 0.5398 GB, free: 111.1 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03696/1.593, allocations: 14.75 MB / 0.5543 GB, free: 104.1 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1236/1.717, allocations: 56.25 MB / 0.6092 GB, free: 46.99 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01908/1.736, allocations: 20.85 MB / 0.6295 GB, free: 23.55 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005468/1.741, allocations: 3.304 MB / 0.6328 GB, free: 20.23 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01919/1.761, allocations: 9.438 MB / 0.642 GB, free: 10.74 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.621e-05/1.761, allocations: 77.5 kB / 0.6421 GB, free: 10.65 MB / 430.1 MB Notification: Performance of pre-optimization done (n=313): time 6.643e-06/1.761, allocations: 0 / 0.6421 GB, free: 10.65 MB / 430.1 MB Notification: Performance of matching and sorting (n=340): time 0.03579/1.797, allocations: 16.66 MB / 0.6583 GB, free: 9.789 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.936e-05/1.797, allocations: 124.3 kB / 0.6584 GB, free: 9.648 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01222/1.809, allocations: 5.15 MB / 0.6635 GB, free: 4.508 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006572/1.81, allocations: 81.7 kB / 0.6636 GB, free: 4.422 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004132/1.814, allocations: 5.172 MB / 0.6686 GB, free: 15.22 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002143/1.816, allocations: 1.192 MB / 0.6698 GB, free: 14.04 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004309/1.82, allocations: 1.254 MB / 0.671 GB, free: 12.77 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/1.821, allocations: 309.1 kB / 0.6713 GB, free: 12.47 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005693/1.826, allocations: 2.624 MB / 0.6739 GB, free: 9.84 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008815/1.835, allocations: 5.44 MB / 0.6792 GB, free: 3.07 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01494/1.85, allocations: 8.499 MB / 0.6875 GB, free: 9.242 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001296/1.85, allocations: 28 kB / 0.6875 GB, free: 9.215 MB / 478.1 MB Notification: Performance of matching and sorting (n=816) (initialization): time 0.2767/2.127, allocations: 9.213 MB / 0.6965 GB, free: 143.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001395/2.127, allocations: 45.44 kB / 0.6965 GB, free: 143.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002097/2.127, allocations: 95.09 kB / 0.6966 GB, free: 143.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003127/2.131, allocations: 0.919 MB / 0.6975 GB, free: 143.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006242/2.137, allocations: 1.472 MB / 0.699 GB, free: 143.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01333/2.15, allocations: 10.54 MB / 0.7093 GB, free: 138.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006053/2.156, allocations: 397.2 kB / 0.7096 GB, free: 138.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001311/2.158, allocations: 341.7 kB / 0.71 GB, free: 138.3 MB / 478.1 MB 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.008252/2.166, allocations: 3.742 MB / 0.7136 GB, free: 136.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002219/2.168, allocations: 0.5068 MB / 0.7141 GB, free: 136.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01442/2.182, allocations: 5.878 MB / 0.7198 GB, free: 134.2 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005368/2.188, allocations: 3.046 MB / 0.7228 GB, free: 133 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.919e-05/2.188, allocations: 11.84 kB / 0.7228 GB, free: 133 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.83e-05/2.188, allocations: 15.28 kB / 0.7228 GB, free: 133 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0317/2.22, allocations: 14.56 MB / 0.7371 GB, free: 127 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-05/2.22, allocations: 7.875 kB / 0.7371 GB, free: 127 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004714/2.225, allocations: 0.5921 MB / 0.7377 GB, free: 127 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004219/2.229, allocations: 0.9038 MB / 0.7385 GB, free: 126.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005833/2.229, allocations: 81.94 kB / 0.7386 GB, free: 126.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02076/2.25, allocations: 14.04 MB / 0.7523 GB, free: 116 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/2.25, allocations: 3.969 kB / 0.7523 GB, free: 116 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02159/2.272, allocations: 8.477 MB / 0.7606 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004355/2.276, allocations: 0.984 MB / 0.7616 GB, free: 111.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002065/2.278, allocations: 66.34 kB / 0.7616 GB, free: 111.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005945/2.284, allocations: 195.1 kB / 0.7618 GB, free: 111.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001433/2.286, allocations: 257.5 kB / 0.7621 GB, free: 111.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005094/2.286, allocations: 102.7 kB / 0.7622 GB, free: 111.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.009832/2.296, allocations: 3.425 MB / 0.7655 GB, free: 109.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.183e-06/2.296, allocations: 0 / 0.7655 GB, free: 109.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01598/2.312, allocations: 1.779 MB / 0.7672 GB, free: 107.3 MB / 478.1 MB 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.02165/2.334, allocations: 9.212 MB / 0.7762 GB, free: 97.98 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02526/2.359, allocations: 8.715 MB / 0.7848 GB, free: 89.25 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.701e-05/2.359, allocations: 448 / 0.7848 GB, free: 89.25 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00814/2.368, allocations: 3.377 MB / 0.7881 GB, free: 85.81 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01096/2.379, allocations: 1.181 MB / 0.7892 GB, free: 84.66 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1677/2.546, allocations: 76.39 MB / 0.8638 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01962/2.566, allocations: 6.555 MB / 0.8702 GB, free: 10.02 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.01331/2.579, allocations: 1.838 MB / 0.872 GB, free: 8.18 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0134/2.593, allocations: 4.03 MB / 0.8759 GB, free: 4.148 MB / 494.1 MB Notification: Performance of SimCode: time 2.635e-06/2.593, allocations: 0 / 0.8759 GB, free: 4.148 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6278/3.221, allocations: 141.8 MB / 1.014 GB, free: 53.48 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.96/24.18, allocations: 4.828 kB / 1.014 GB, free: 53.47 MB / 494.1 MB (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