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.SMPM_MTPA.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.SMPM_MTPA,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA",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.001736/0.001736, allocations: 105.8 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.002023/0.002023, 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.197/2.197, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 44.16 kB / 300.7 MB, free: 5.734 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1217, allocations: 49.44 MB / 350.2 MB, free: 4.281 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.3334/0.4551, allocations: 28.57 MB / 378.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0317/0.4869, allocations: 8.405 MB / 387.2 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01167/0.4987, allocations: 212.8 kB / 387.4 MB, free: 7.695 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0335/0.5322, allocations: 8.159 MB / 395.5 MB, free: 2.988 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02287/0.5551, allocations: 2.784 MB / 398.3 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01299/0.5682, allocations: 1.854 MB / 400.2 MB, free: 15.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02574/0.5939, allocations: 9.892 MB / 410.1 MB, free: 9.605 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06625/0.6603, allocations: 21.44 MB / 431.5 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01682/0.6771, allocations: 5.33 MB / 436.8 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01793/0.6951, allocations: 6.066 MB / 442.9 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007056/0.7023, allocations: 1.539 MB / 444.4 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01033/0.7127, allocations: 1.906 MB / 446.3 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008321/0.721, allocations: 2.989 MB / 449.3 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01827/0.7394, allocations: 5.841 MB / 455.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04141/0.7808, allocations: 20.5 MB / 475.7 MB, free: 8.234 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.305e-05/0.7809, allocations: 0 / 475.7 MB, free: 8.234 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.781, allocations: 0 / 475.7 MB, free: 8.234 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006929/0.7817, allocations: 0 / 475.7 MB, free: 8.234 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: 2599 * Number of variables: 2599 Notification: Performance of Generate backend data structure: time 0.06605/0.8477, allocations: 11.87 MB / 487.5 MB, free: 12.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.758e-05/0.8478, allocations: 15.89 kB / 487.6 MB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009127/0.857, allocations: 1.551 MB / 489.1 MB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06612/0.9232, allocations: 5.608 MB / 494.7 MB, free: 5.066 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02636/0.9496, allocations: 6.129 MB / 0.4891 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001482/0.9511, allocations: 0.7025 MB / 0.4898 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005853/0.957, allocations: 0.9334 MB / 0.4907 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06555/1.023, allocations: 15.08 MB / 0.5054 GB, free: 14.08 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004204/1.023, allocations: 11.91 kB / 0.5054 GB, free: 14.07 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003947/1.027, allocations: 399.9 kB / 0.5058 GB, free: 13.68 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006697/1.028, allocations: 0.5194 MB / 0.5063 GB, free: 13.16 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.5426/1.57, allocations: 13.74 MB / 0.5197 GB, free: 118.8 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1337/1.704, allocations: 47.7 MB / 0.5663 GB, free: 89.07 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03117/1.735, allocations: 28.59 MB / 0.5942 GB, free: 60.27 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01014/1.746, allocations: 3.08 MB / 0.5973 GB, free: 58.71 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008165/1.746, allocations: 233.3 kB / 0.5975 GB, free: 58.5 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001476/1.747, allocations: 76.61 kB / 0.5975 GB, free: 58.43 MB / 430.1 MB Notification: Performance of pre-optimization done (n=384): time 2.224e-05/1.747, allocations: 0 / 0.5975 GB, free: 58.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=392): time 0.05968/1.806, allocations: 14.77 MB / 0.612 GB, free: 44.43 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.674e-05/1.807, allocations: 94.48 kB / 0.6121 GB, free: 44.33 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009628/1.816, allocations: 3.606 MB / 0.6156 GB, free: 40.73 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001093/1.817, allocations: 89.7 kB / 0.6157 GB, free: 40.63 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00358/1.821, allocations: 4.045 MB / 0.6196 GB, free: 36.56 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002446/1.823, allocations: 1.335 MB / 0.6209 GB, free: 35.24 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003068/1.827, allocations: 1.179 MB / 0.6221 GB, free: 34.05 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.962e-05/1.827, allocations: 301.1 kB / 0.6224 GB, free: 33.75 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007342/1.834, allocations: 2.588 MB / 0.6249 GB, free: 31.16 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0103/1.844, allocations: 5.083 MB / 0.6299 GB, free: 24.91 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01806/1.863, allocations: 8.348 MB / 0.638 GB, free: 15.37 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00012/1.863, allocations: 24 kB / 0.638 GB, free: 15.35 MB / 430.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.02849/1.891, allocations: 8.631 MB / 0.6465 GB, free: 6.684 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000123/1.891, allocations: 40 kB / 0.6465 GB, free: 6.645 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000195/1.892, allocations: 84 kB / 0.6466 GB, free: 6.562 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004398/1.896, allocations: 0.8618 MB / 0.6474 GB, free: 5.703 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009927/1.906, allocations: 1.373 MB / 0.6488 GB, free: 4.328 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02118/1.927, allocations: 7.679 MB / 0.6563 GB, free: 12.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009178/1.936, allocations: 331.3 kB / 0.6566 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002123/1.939, allocations: 308 kB / 0.6569 GB, free: 11.88 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 378 * 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 (722): * Single equations (assignments): 721 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01335/1.952, allocations: 3.517 MB / 0.6603 GB, free: 8.348 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002015/1.954, allocations: 407 kB / 0.6607 GB, free: 7.945 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02186/1.976, allocations: 5.98 MB / 0.6665 GB, free: 1.93 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.775e-05/1.976, allocations: 40 kB / 0.6666 GB, free: 1.891 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.722e-05/1.976, allocations: 11.94 kB / 0.6666 GB, free: 1.879 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000124/1.976, allocations: 19.92 kB / 0.6666 GB, free: 1.859 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05961/2.036, allocations: 15.29 MB / 0.6815 GB, free: 2.387 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-05/2.036, allocations: 8 kB / 0.6815 GB, free: 2.379 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006575/2.043, allocations: 0.6904 MB / 0.6822 GB, free: 1.688 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004656/2.047, allocations: 0.7135 MB / 0.6829 GB, free: 0.9727 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001068/2.048, allocations: 91.97 kB / 0.683 GB, free: 0.8828 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02031/2.069, allocations: 6.711 MB / 0.6895 GB, free: 10.03 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.832e-05/2.069, allocations: 8 kB / 0.6896 GB, free: 10.02 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03178/2.101, allocations: 8.754 MB / 0.6981 GB, free: 1.148 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004591/2.105, allocations: 0.8824 MB / 0.699 GB, free: 244 kB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001711/2.107, allocations: 72 kB / 0.699 GB, free: 172 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.3353/2.442, allocations: 181.5 kB / 0.6992 GB, free: 155.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002051/2.445, allocations: 268.3 kB / 0.6995 GB, free: 155.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009991/2.446, allocations: 112.9 kB / 0.6996 GB, free: 155.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00906/2.455, allocations: 2.417 MB / 0.7019 GB, free: 155.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 8.01e-07/2.455, allocations: 0 / 0.7019 GB, free: 155.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01204/2.467, allocations: 1.549 MB / 0.7034 GB, free: 155.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 1 (smpmQS.phiMechanical) * 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 (377): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02949/2.496, allocations: 9.473 MB / 0.7127 GB, free: 152.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.04739/2.544, allocations: 12.86 MB / 0.7253 GB, free: 149.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.55e-05/2.544, allocations: 3.906 kB / 0.7253 GB, free: 149.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007913/2.552, allocations: 2.952 MB / 0.7281 GB, free: 148.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008312/2.56, allocations: 0.9545 MB / 0.7291 GB, free: 147.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1226/2.683, allocations: 61.11 MB / 0.7888 GB, free: 87.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00925/2.692, allocations: 5.974 MB / 0.7946 GB, free: 81.74 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.008163/2.7, allocations: 1.889 MB / 0.7964 GB, free: 79.84 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00681/2.707, allocations: 3.209 MB / 0.7996 GB, free: 76.63 MB / 478.1 MB Notification: Performance of SimCode: time 1.502e-06/2.707, allocations: 4 kB / 0.7996 GB, free: 76.63 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5897/3.297, allocations: 121.3 MB / 0.918 GB, free: 126.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.57/22.87, allocations: 11.12 kB / 0.918 GB, free: 126.7 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv --start-time 0 --stop-time 1 --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_SMPM_MTPA.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches