Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_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_3_2_3_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.001199/0.001199, allocations: 109.4 kB / 17.73 MB, free: 5.336 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.001166/0.001166, allocations: 196.2 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.459/1.459, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 51.92 kB / 328.1 MB, free: 3.77 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1092, allocations: 46.62 MB / 374.7 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.2675/0.3768, allocations: 29.22 MB / 403.9 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02466/0.4015, allocations: 8.527 MB / 412.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009767/0.4114, allocations: 183.3 kB / 412.6 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02214/0.4336, allocations: 8.266 MB / 420.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01494/0.4486, allocations: 3.076 MB / 423.9 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00771/0.4563, allocations: 1.904 MB / 425.9 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01724/0.4736, allocations: 10.5 MB / 436.4 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03499/0.5086, allocations: 21.46 MB / 457.8 MB, free: 12.63 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0111/0.5198, allocations: 5.614 MB / 463.4 MB, free: 7.004 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01149/0.5313, allocations: 6.369 MB / 469.8 MB, free: 0.6133 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005753/0.5371, allocations: 1.578 MB / 471.4 MB, free: 15.03 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008009/0.5452, allocations: 1.941 MB / 473.3 MB, free: 13.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006057/0.5513, allocations: 3.184 MB / 476.5 MB, free: 9.902 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01489/0.5662, allocations: 6.124 MB / 482.6 MB, free: 3.754 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0323/0.5986, allocations: 21.24 MB / 0.4921 GB, free: 14.44 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.205e-05/0.5986, allocations: 0 / 0.4921 GB, free: 14.44 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.5987, allocations: 3.938 kB / 0.4921 GB, free: 14.44 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007389/0.5994, allocations: 0 / 0.4921 GB, free: 14.44 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2782 * Number of variables: 2782 Notification: Performance of Generate backend data structure: time 0.04324/0.6427, allocations: 12.67 MB / 0.5044 GB, free: 1.66 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.335e-05/0.6427, allocations: 11.89 kB / 0.5045 GB, free: 1.648 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006611/0.6494, allocations: 1.639 MB / 0.5061 GB, free: 16 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04828/0.6977, allocations: 8.651 MB / 0.5145 GB, free: 7.328 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01676/0.7145, allocations: 5.921 MB / 0.5203 GB, free: 1.348 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001062/0.7156, allocations: 0.7426 MB / 0.521 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00528/0.7209, allocations: 0.9804 MB / 0.522 GB, free: 15.62 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04929/0.7703, allocations: 16.57 MB / 0.5382 GB, free: 14.96 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003888/0.7707, allocations: 23.89 kB / 0.5382 GB, free: 14.93 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003036/0.7738, allocations: 412 kB / 0.5386 GB, free: 14.53 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006284/0.7744, allocations: 0.6106 MB / 0.5392 GB, free: 13.92 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4409/1.215, allocations: 15.98 MB / 0.5548 GB, free: 134.1 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1026/1.318, allocations: 51.73 MB / 0.6053 GB, free: 102.5 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02749/1.346, allocations: 52.28 MB / 0.6563 GB, free: 48.21 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005471/1.351, allocations: 3.465 MB / 0.6597 GB, free: 46.44 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01774/1.369, allocations: 9.419 MB / 0.6689 GB, free: 37.24 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.004e-05/1.369, allocations: 60.69 kB / 0.669 GB, free: 37.17 MB / 478.1 MB Notification: Performance of pre-optimization done (n=270): time 5.29e-06/1.369, allocations: 0 / 0.669 GB, free: 37.17 MB / 478.1 MB Notification: Performance of matching and sorting (n=278): time 0.02688/1.396, allocations: 13.06 MB / 0.6817 GB, free: 24.4 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.344e-05/1.396, allocations: 81.59 kB / 0.6818 GB, free: 24.3 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006059/1.402, allocations: 4.071 MB / 0.6858 GB, free: 20.27 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005094/1.403, allocations: 73.7 kB / 0.6859 GB, free: 20.19 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002144/1.405, allocations: 4.808 MB / 0.6905 GB, free: 15.38 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009944/1.406, allocations: 1.043 MB / 0.6916 GB, free: 14.35 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002033/1.408, allocations: 1.238 MB / 0.6928 GB, free: 13.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.07e-05/1.408, allocations: 301.1 kB / 0.6931 GB, free: 12.8 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003525/1.411, allocations: 2.448 MB / 0.6955 GB, free: 10.35 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005134/1.417, allocations: 5.603 MB / 0.7009 GB, free: 3.211 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01111/1.428, allocations: 8.69 MB / 0.7094 GB, free: 8.945 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001117/1.428, allocations: 32 kB / 0.7094 GB, free: 8.914 MB / 494.1 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.01869/1.447, allocations: 8.778 MB / 0.718 GB, free: 84 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.413e-05/1.447, allocations: 54.06 kB / 0.7181 GB, free: 32 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001826/1.447, allocations: 108 kB / 0.7182 GB, free: 15.92 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002657/1.45, allocations: 0.868 MB / 0.719 GB, free: 15.05 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005217/1.455, allocations: 1.404 MB / 0.7204 GB, free: 13.65 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01155/1.466, allocations: 7.563 MB / 0.7278 GB, free: 5.938 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005053/1.471, allocations: 355.5 kB / 0.7281 GB, free: 5.59 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001247/1.473, allocations: 355.9 kB / 0.7285 GB, free: 5.246 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 498 * 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 (733): * Single equations (assignments): 732 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007676/1.48, allocations: 3.676 MB / 0.732 GB, free: 1.555 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001392/1.482, allocations: 437.2 kB / 0.7325 GB, free: 1.125 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0109/1.493, allocations: 5.07 MB / 0.7374 GB, free: 12 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.686e-05/1.493, allocations: 28 kB / 0.7374 GB, free: 11.97 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.806e-05/1.493, allocations: 8 kB / 0.7374 GB, free: 11.96 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.827e-05/1.493, allocations: 19.92 kB / 0.7375 GB, free: 11.94 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2866/1.78, allocations: 12.22 MB / 0.7494 GB, free: 171.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-05/1.78, allocations: 4.031 kB / 0.7494 GB, free: 171.5 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002923/1.783, allocations: 0.5177 MB / 0.7499 GB, free: 171.5 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002549/1.785, allocations: 0.7037 MB / 0.7506 GB, free: 171.5 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005974/1.786, allocations: 65.3 kB / 0.7507 GB, free: 171.5 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01058/1.796, allocations: 6.705 MB / 0.7572 GB, free: 169.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.584e-06/1.796, allocations: 5.156 kB / 0.7572 GB, free: 169.7 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01342/1.81, allocations: 7.361 MB / 0.7644 GB, free: 166.6 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002805/1.813, allocations: 0.8283 MB / 0.7652 GB, free: 166.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001297/1.814, allocations: 51.19 kB / 0.7653 GB, free: 166.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00275/1.817, allocations: 170.6 kB / 0.7654 GB, free: 166.2 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007158/1.818, allocations: 199.8 kB / 0.7656 GB, free: 166.2 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002925/1.818, allocations: 89.59 kB / 0.7657 GB, free: 166.1 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.00601/1.824, allocations: 2.68 MB / 0.7683 GB, free: 165.1 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.31e-07/1.824, allocations: 0 / 0.7683 GB, free: 165.1 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.008907/1.833, allocations: 1.556 MB / 0.7698 GB, free: 165 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (263): * Single equations (assignments): 262 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01309/1.846, allocations: 8.037 MB / 0.7777 GB, free: 161.3 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01021/1.856, allocations: 6.144 MB / 0.7837 GB, free: 159 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.188e-05/1.856, allocations: 0 / 0.7837 GB, free: 159 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004514/1.861, allocations: 2.486 MB / 0.7861 GB, free: 158 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00657/1.867, allocations: 0.9519 MB / 0.787 GB, free: 157.6 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09434/1.962, allocations: 54.92 MB / 0.8407 GB, free: 106.2 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009044/1.971, allocations: 6.208 MB / 0.8467 GB, free: 99.93 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.005287/1.976, allocations: 1.943 MB / 0.8486 GB, free: 97.98 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005548/1.982, allocations: 3.385 MB / 0.8519 GB, free: 94.59 MB / 0.5138 GB Notification: Performance of SimCode: time 9.42e-07/1.982, allocations: 3.938 kB / 0.8519 GB, free: 94.59 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3943/2.376, allocations: 117.4 MB / 0.9666 GB, free: 153 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.61/20.99, allocations: 7.969 kB / 0.9666 GB, free: 153 MB / 0.5138 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_MTPA/SMPM_MTPA.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches