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.001382/0.001382, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001475/0.001475, allocations: 193.4 kB / 18 MB, free: 5.172 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.433/1.433, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 47.92 kB / 350.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2938, allocations: 49.44 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03397/0.3278, allocations: 28.58 MB / 428.9 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01869/0.3466, allocations: 8.384 MB / 437.3 MB, free: 3.688 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005583/0.3522, allocations: 211.4 kB / 437.5 MB, free: 3.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01983/0.372, allocations: 8.164 MB / 445.6 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01048/0.3825, allocations: 2.789 MB / 448.4 MB, free: 8.496 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00613/0.3887, allocations: 1.862 MB / 450.3 MB, free: 6.637 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01482/0.4035, allocations: 9.959 MB / 460.2 MB, free: 12.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03599/0.4395, allocations: 21.35 MB / 481.6 MB, free: 7.145 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01065/0.4503, allocations: 5.346 MB / 486.9 MB, free: 1.785 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01075/0.4611, allocations: 6.039 MB / 493 MB, free: 11.73 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003906/0.465, allocations: 1.539 MB / 494.5 MB, free: 10.19 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00556/0.4706, allocations: 1.902 MB / 496.4 MB, free: 8.285 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004206/0.4748, allocations: 2.985 MB / 499.4 MB, free: 5.293 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009664/0.4845, allocations: 5.841 MB / 0.4934 GB, free: 15.43 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02491/0.5094, allocations: 20.67 MB / 0.5136 GB, free: 10.7 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.5095, allocations: 0 / 0.5136 GB, free: 10.7 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5095, allocations: 0 / 0.5136 GB, free: 10.7 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0004959/0.51, allocations: 4 kB / 0.5136 GB, free: 10.69 MB / 446.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.03684/0.5468, allocations: 12.05 MB / 0.5254 GB, free: 14.53 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.613e-05/0.5469, allocations: 8.031 kB / 0.5254 GB, free: 14.52 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005948/0.5529, allocations: 1.551 MB / 0.5269 GB, free: 12.96 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03177/0.5847, allocations: 5.675 MB / 0.5324 GB, free: 7.27 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0167/0.6014, allocations: 6.322 MB / 0.5386 GB, free: 0.8906 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001369/0.6028, allocations: 0.7025 MB / 0.5393 GB, free: 192 kB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.3764/0.9792, allocations: 0.9211 MB / 0.5402 GB, free: 117.3 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03379/1.013, allocations: 15.09 MB / 0.5549 GB, free: 111.6 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002897/1.013, allocations: 17.42 kB / 0.5549 GB, free: 111.6 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001747/1.015, allocations: 388.3 kB / 0.5553 GB, free: 111.3 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003616/1.016, allocations: 0.5189 MB / 0.5558 GB, free: 111.2 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02299/1.039, allocations: 13.75 MB / 0.5692 GB, free: 100.2 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06016/1.099, allocations: 47.27 MB / 0.6154 GB, free: 52.64 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01399/1.113, allocations: 28.62 MB / 0.6433 GB, free: 20.34 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003873/1.117, allocations: 3.081 MB / 0.6464 GB, free: 17.25 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002922/1.117, allocations: 240 kB / 0.6466 GB, free: 16.99 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/1.117, allocations: 73.58 kB / 0.6467 GB, free: 16.91 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 4.799e-06/1.117, allocations: 0 / 0.6467 GB, free: 16.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.02393/1.141, allocations: 14.88 MB / 0.6612 GB, free: 2.332 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.702e-05/1.141, allocations: 94.48 kB / 0.6613 GB, free: 2.227 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004527/1.146, allocations: 3.6 MB / 0.6648 GB, free: 14.69 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004276/1.146, allocations: 93.7 kB / 0.6649 GB, free: 14.59 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003239/1.149, allocations: 4.189 MB / 0.669 GB, free: 10.54 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001499/1.151, allocations: 1.405 MB / 0.6703 GB, free: 9.156 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001788/1.153, allocations: 1.172 MB / 0.6715 GB, free: 7.973 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/1.153, allocations: 305.1 kB / 0.6718 GB, free: 7.672 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004357/1.157, allocations: 2.588 MB / 0.6743 GB, free: 5.078 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006675/1.164, allocations: 5.09 MB / 0.6793 GB, free: 14.82 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01197/1.176, allocations: 8.34 MB / 0.6874 GB, free: 5.289 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.599e-05/1.176, allocations: 24 kB / 0.6874 GB, free: 5.266 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01753/1.193, allocations: 8.661 MB / 0.6959 GB, free: 12.57 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001009/1.194, allocations: 40 kB / 0.6959 GB, free: 12.54 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001328/1.194, allocations: 84 kB / 0.696 GB, free: 12.45 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002749/1.196, allocations: 0.8463 MB / 0.6969 GB, free: 11.61 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005139/1.202, allocations: 1.373 MB / 0.6982 GB, free: 10.23 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01284/1.214, allocations: 7.683 MB / 0.7057 GB, free: 2.41 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004394/1.219, allocations: 331.5 kB / 0.706 GB, free: 2.086 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001192/1.22, allocations: 304 kB / 0.7063 GB, free: 1.789 MB / 0.4982 GB 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.009084/1.229, allocations: 3.521 MB / 0.7097 GB, free: 14.25 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001589/1.231, allocations: 425.3 kB / 0.7101 GB, free: 13.84 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01393/1.245, allocations: 5.988 MB / 0.716 GB, free: 7.809 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.004e-05/1.245, allocations: 40 kB / 0.716 GB, free: 7.77 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-05/1.245, allocations: 11.98 kB / 0.716 GB, free: 7.758 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.773e-05/1.245, allocations: 19.92 kB / 0.7161 GB, free: 7.738 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0321/1.277, allocations: 14.96 MB / 0.7307 GB, free: 8.723 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.709e-05/1.277, allocations: 4 kB / 0.7307 GB, free: 8.719 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002859/1.28, allocations: 0.6943 MB / 0.7314 GB, free: 8.023 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002389/1.282, allocations: 0.7097 MB / 0.732 GB, free: 7.312 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003852/1.283, allocations: 87.97 kB / 0.7321 GB, free: 7.227 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0109/1.294, allocations: 6.717 MB / 0.7387 GB, free: 392 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.653e-06/1.294, allocations: 4 kB / 0.7387 GB, free: 388 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2176/1.511, allocations: 8.775 MB / 0.7473 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001866/1.513, allocations: 0.9017 MB / 0.7481 GB, free: 174.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006446/1.514, allocations: 77.55 kB / 0.7482 GB, free: 174 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001792/1.516, allocations: 184.2 kB / 0.7484 GB, free: 174 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004539/1.516, allocations: 261.9 kB / 0.7486 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002065/1.516, allocations: 118.6 kB / 0.7488 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003137/1.52, allocations: 2.416 MB / 0.7511 GB, free: 173 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.71e-07/1.52, allocations: 0 / 0.7511 GB, free: 173 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004955/1.525, allocations: 1.545 MB / 0.7526 GB, free: 172.9 MB / 0.5294 GB 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.01175/1.536, allocations: 9.507 MB / 0.7619 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008938/1.545, allocations: 6.53 MB / 0.7683 GB, free: 166.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.687e-05/1.545, allocations: 3.938 kB / 0.7683 GB, free: 166.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005782/1.551, allocations: 2.949 MB / 0.7712 GB, free: 165 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006271/1.557, allocations: 0.957 MB / 0.7721 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07763/1.635, allocations: 52.68 MB / 0.8235 GB, free: 113.8 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005877/1.641, allocations: 5.97 MB / 0.8294 GB, free: 107.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00433/1.645, allocations: 1.881 MB / 0.8312 GB, free: 105.9 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004178/1.65, allocations: 3.213 MB / 0.8344 GB, free: 102.7 MB / 0.5294 GB Notification: Performance of SimCode: time 1.062e-06/1.65, allocations: 0 / 0.8344 GB, free: 102.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3652/2.015, allocations: 119.7 MB / 0.9513 GB, free: 168.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.25/21.27, allocations: 10.11 kB / 0.9513 GB, free: 168.4 MB / 0.545 GB (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