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.001219/0.001219, allocations: 113.8 kB / 17.06 MB, free: 5.996 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.001273/0.001273, allocations: 194.9 kB / 18.01 MB, free: 5.07 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.352/1.352, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009667/0.0009667, allocations: 43.94 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3436/0.3446, allocations: 49.43 MB / 400.3 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.03068/0.3753, allocations: 28.6 MB / 428.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0187/0.3941, allocations: 8.388 MB / 437.3 MB, free: 3.691 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007435/0.4016, allocations: 211.4 kB / 437.5 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01959/0.4212, allocations: 8.228 MB / 445.7 MB, free: 11.24 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.011/0.4322, allocations: 2.844 MB / 448.5 MB, free: 8.383 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006344/0.4386, allocations: 1.858 MB / 450.4 MB, free: 6.527 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01502/0.4536, allocations: 9.966 MB / 460.4 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03931/0.493, allocations: 21.35 MB / 481.7 MB, free: 7.039 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009926/0.503, allocations: 5.369 MB / 487.1 MB, free: 1.656 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01139/0.5144, allocations: 6.035 MB / 493.1 MB, free: 11.6 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00479/0.5192, allocations: 1.543 MB / 494.6 MB, free: 10.05 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006802/0.526, allocations: 1.898 MB / 496.5 MB, free: 8.16 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006102/0.5322, allocations: 2.985 MB / 499.5 MB, free: 5.168 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01407/0.5463, allocations: 5.845 MB / 0.4935 GB, free: 15.3 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02967/0.576, allocations: 20.67 MB / 0.5137 GB, free: 10.57 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.034e-05/0.5761, allocations: 4 kB / 0.5137 GB, free: 10.56 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.285e-06/0.5761, allocations: 0 / 0.5137 GB, free: 10.56 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006955/0.5768, allocations: 0 / 0.5137 GB, free: 10.56 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.04297/0.6198, allocations: 12.05 MB / 0.5255 GB, free: 14.4 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.084e-05/0.6198, allocations: 15.89 kB / 0.5255 GB, free: 14.38 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006726/0.6266, allocations: 1.536 MB / 0.527 GB, free: 12.84 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03223/0.6588, allocations: 5.675 MB / 0.5325 GB, free: 7.148 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01661/0.6755, allocations: 6.326 MB / 0.5387 GB, free: 0.7656 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006852/0.6762, allocations: 0.7063 MB / 0.5394 GB, free: 60 kB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2155/0.8917, allocations: 0.922 MB / 0.5403 GB, free: 119.5 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0347/0.9265, allocations: 15.09 MB / 0.555 GB, free: 114.1 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000312/0.9268, allocations: 14.11 kB / 0.5551 GB, free: 114.1 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002153/0.929, allocations: 391.4 kB / 0.5554 GB, free: 113.8 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004079/0.9294, allocations: 0.5231 MB / 0.5559 GB, free: 113.7 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02495/0.9544, allocations: 13.75 MB / 0.5694 GB, free: 102.3 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07447/1.029, allocations: 47.28 MB / 0.6155 GB, free: 54.47 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01652/1.045, allocations: 28.61 MB / 0.6435 GB, free: 22.18 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004689/1.05, allocations: 3.081 MB / 0.6465 GB, free: 19.09 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005004/1.051, allocations: 232.2 kB / 0.6467 GB, free: 18.83 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.508e-05/1.051, allocations: 81.48 kB / 0.6468 GB, free: 18.75 MB / 462.1 MB Notification: Performance of pre-optimization done (n=384): time 8.246e-06/1.051, allocations: 0 / 0.6468 GB, free: 18.75 MB / 462.1 MB Notification: Performance of matching and sorting (n=392): time 0.03839/1.089, allocations: 14.89 MB / 0.6613 GB, free: 3.805 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.515e-05/1.089, allocations: 98.48 kB / 0.6614 GB, free: 3.695 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007986/1.097, allocations: 3.599 MB / 0.6649 GB, free: 104 kB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000719/1.098, allocations: 93.7 kB / 0.665 GB, free: 4 kB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004226/1.102, allocations: 4.187 MB / 0.6691 GB, free: 11.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002322/1.105, allocations: 1.412 MB / 0.6705 GB, free: 10.41 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004278/1.109, allocations: 1.168 MB / 0.6716 GB, free: 9.234 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/1.109, allocations: 301.1 kB / 0.6719 GB, free: 8.938 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006458/1.116, allocations: 2.588 MB / 0.6744 GB, free: 6.344 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008557/1.124, allocations: 5.094 MB / 0.6794 GB, free: 80 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01195/1.136, allocations: 8.337 MB / 0.6876 GB, free: 6.555 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.991e-05/1.136, allocations: 24 kB / 0.6876 GB, free: 6.531 MB / 494.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01761/1.154, allocations: 8.657 MB / 0.696 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001327/1.154, allocations: 40 kB / 0.6961 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001618/1.154, allocations: 84 kB / 0.6962 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002614/1.157, allocations: 0.8503 MB / 0.697 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00512/1.162, allocations: 1.369 MB / 0.6983 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01189/1.174, allocations: 7.689 MB / 0.7058 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00491/1.179, allocations: 331.5 kB / 0.7062 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001207/1.18, allocations: 308 kB / 0.7064 GB, free: 3.051 MB / 0.4981 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.007377/1.188, allocations: 3.521 MB / 0.7099 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001421/1.189, allocations: 421.3 kB / 0.7103 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01225/1.201, allocations: 5.992 MB / 0.7161 GB, free: 9.074 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.01e-05/1.201, allocations: 40 kB / 0.7162 GB, free: 9.035 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.872e-05/1.201, allocations: 8 kB / 0.7162 GB, free: 9.027 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.209e-05/1.201, allocations: 19.92 kB / 0.7162 GB, free: 9.008 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03149/1.233, allocations: 14.96 MB / 0.7308 GB, free: 9.988 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.49e-05/1.233, allocations: 4 kB / 0.7308 GB, free: 9.984 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002997/1.236, allocations: 0.6904 MB / 0.7315 GB, free: 9.293 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00231/1.238, allocations: 0.7098 MB / 0.7322 GB, free: 8.582 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005068/1.239, allocations: 91.97 kB / 0.7323 GB, free: 8.492 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01024/1.249, allocations: 6.705 MB / 0.7388 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/1.249, allocations: 4 kB / 0.7388 GB, free: 1.656 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2454/1.495, allocations: 8.772 MB / 0.7474 GB, free: 176.5 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00226/1.497, allocations: 0.9051 MB / 0.7483 GB, free: 176.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006092/1.498, allocations: 75.53 kB / 0.7483 GB, free: 176.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0018/1.499, allocations: 180.8 kB / 0.7485 GB, free: 176.1 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004333/1.5, allocations: 265.4 kB / 0.7488 GB, free: 176.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001937/1.5, allocations: 114.8 kB / 0.7489 GB, free: 176 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003251/1.503, allocations: 2.416 MB / 0.7512 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.51e-07/1.503, allocations: 0.5625 kB / 0.7512 GB, free: 175.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005405/1.509, allocations: 1.548 MB / 0.7528 GB, free: 175 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.01128/1.52, allocations: 9.513 MB / 0.762 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009174/1.529, allocations: 6.531 MB / 0.7684 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/1.529, allocations: 3.844 kB / 0.7684 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003797/1.533, allocations: 2.952 MB / 0.7713 GB, free: 167.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004525/1.538, allocations: 0.9592 MB / 0.7722 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08357/1.621, allocations: 52.68 MB / 0.8237 GB, free: 117.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009256/1.631, allocations: 5.975 MB / 0.8295 GB, free: 111 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005298/1.636, allocations: 1.877 MB / 0.8313 GB, free: 109.1 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005294/1.641, allocations: 3.213 MB / 0.8345 GB, free: 105.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.373e-06/1.641, allocations: 0.875 kB / 0.8345 GB, free: 105.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3854/2.027, allocations: 119.7 MB / 0.9514 GB, free: 166 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.8/20.83, allocations: 7.812 kB / 0.9514 GB, free: 166 MB / 0.5294 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