Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.0008192/0.0008192, allocations: 93.22 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009439/0.0009439, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.186/1.186, allocations: 227.7 MB / 246.8 MB, free: 11.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001981/0.0001981, allocations: 8 kB / 307.9 MB, free: 0.6797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08452/0.08473, allocations: 51.52 MB / 359.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA): time 0.1636/0.2483, allocations: 26.88 MB / 386.3 MB, free: 6.039 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01273/0.2611, allocations: 8.348 MB / 394.6 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004569/0.2657, allocations: 198.8 kB / 394.8 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004607/0.2703, allocations: 1.769 MB / 396.6 MB, free: 28 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007946/0.2783, allocations: 2.523 MB / 399.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003993/0.2823, allocations: 1.57 MB / 400.7 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01048/0.2928, allocations: 9.931 MB / 410.6 MB, free: 7.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03025/0.3231, allocations: 21.38 MB / 432 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005166/0.3283, allocations: 3.76 MB / 435.7 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006099/0.3344, allocations: 4.609 MB / 440.3 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001436/0.3358, allocations: 0.5938 MB / 440.9 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003096/0.3389, allocations: 0.9801 MB / 441.9 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001682/0.3406, allocations: 1.829 MB / 443.8 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004735/0.3454, allocations: 4.604 MB / 448.4 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01472/0.3601, allocations: 19.39 MB / 467.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.3601, allocations: 0 / 467.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3601, allocations: 0 / 467.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000258/0.3604, allocations: 0 / 467.7 MB, free: 14.93 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.02111/0.3815, allocations: 9.832 MB / 477.6 MB, free: 5.008 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.3815, allocations: 8.031 kB / 477.6 MB, free: 5 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00243/0.384, allocations: 1.547 MB / 479.1 MB, free: 3.441 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02681/0.4108, allocations: 5.627 MB / 484.8 MB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009618/0.4204, allocations: 6.141 MB / 490.9 MB, free: 7.598 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004304/0.4209, allocations: 0.7026 MB / 491.6 MB, free: 6.895 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001562/0.4225, allocations: 0.9334 MB / 492.5 MB, free: 5.961 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02245/0.4449, allocations: 15.08 MB / 0.4957 GB, free: 6.801 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001842/0.4451, allocations: 15.89 kB / 0.4957 GB, free: 6.785 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008968/0.446, allocations: 388 kB / 0.4961 GB, free: 6.406 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004149/0.4464, allocations: 0.5117 MB / 0.4966 GB, free: 5.891 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02069/0.4671, allocations: 13.75 MB / 0.51 GB, free: 8.121 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3409/0.8081, allocations: 48.23 MB / 0.5571 GB, free: 106.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01355/0.8216, allocations: 28.55 MB / 0.585 GB, free: 80.19 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003407/0.8251, allocations: 3.081 MB / 0.588 GB, free: 79.03 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002676/0.8254, allocations: 324.7 kB / 0.5883 GB, free: 78.74 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.491e-05/0.8254, allocations: 72.08 kB / 0.5884 GB, free: 78.67 MB / 446.1 MB Notification: Performance of pre-optimization done (n=384): time 4.95e-06/0.8254, allocations: 0 / 0.5884 GB, free: 78.67 MB / 446.1 MB Notification: Performance of matching and sorting (n=392): time 0.02127/0.8467, allocations: 14.75 MB / 0.6028 GB, free: 71.22 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.186e-05/0.8467, allocations: 92.2 kB / 0.6029 GB, free: 71.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003528/0.8503, allocations: 3.601 MB / 0.6064 GB, free: 69.24 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001772/0.8505, allocations: 91.83 kB / 0.6065 GB, free: 69.16 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00131/0.8518, allocations: 4.049 MB / 0.6104 GB, free: 65.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005805/0.8524, allocations: 1.332 MB / 0.6117 GB, free: 64.48 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004645/0.8528, allocations: 477.5 kB / 0.6122 GB, free: 64.19 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.096e-05/0.8529, allocations: 309.1 kB / 0.6125 GB, free: 63.89 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002755/0.8556, allocations: 2.596 MB / 0.615 GB, free: 62.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003442/0.8591, allocations: 5.077 MB / 0.62 GB, free: 57.74 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006625/0.8657, allocations: 8.337 MB / 0.6281 GB, free: 48.28 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.506e-05/0.8658, allocations: 24 kB / 0.6282 GB, free: 48.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.009874/0.8756, allocations: 8.627 MB / 0.6366 GB, free: 39.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.985e-05/0.8757, allocations: 40.88 kB / 0.6366 GB, free: 39.56 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.294e-05/0.8757, allocations: 84 kB / 0.6367 GB, free: 39.48 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001817/0.8776, allocations: 0.8342 MB / 0.6375 GB, free: 38.63 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003659/0.8812, allocations: 1.365 MB / 0.6388 GB, free: 37.27 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007598/0.8888, allocations: 7.13 MB / 0.6458 GB, free: 30 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002758/0.8916, allocations: 333 kB / 0.6461 GB, free: 29.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003104/0.8919, allocations: 304 kB / 0.6464 GB, free: 29.38 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.003689/0.8956, allocations: 3.505 MB / 0.6498 GB, free: 25.86 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005108/0.8962, allocations: 414.9 kB / 0.6502 GB, free: 25.45 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00769/0.9038, allocations: 5.976 MB / 0.6561 GB, free: 19.43 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.846e-05/0.9039, allocations: 40 kB / 0.6561 GB, free: 19.39 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.9039, allocations: 8 kB / 0.6561 GB, free: 19.39 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.702e-05/0.9039, allocations: 19.92 kB / 0.6561 GB, free: 19.37 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01662/0.9206, allocations: 15.27 MB / 0.671 GB, free: 3.918 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-05/0.9206, allocations: 4 kB / 0.671 GB, free: 3.914 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002261/0.9228, allocations: 0.6904 MB / 0.6717 GB, free: 3.223 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001578/0.9244, allocations: 0.6942 MB / 0.6724 GB, free: 2.527 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001696/0.9246, allocations: 83.98 kB / 0.6725 GB, free: 2.445 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007659/0.9323, allocations: 6.17 MB / 0.6785 GB, free: 12.14 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.9323, allocations: 7.938 kB / 0.6785 GB, free: 12.13 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01199/0.9443, allocations: 8.725 MB / 0.687 GB, free: 3.281 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001712/0.9461, allocations: 0.8901 MB / 0.6879 GB, free: 2.367 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004002/0.9465, allocations: 76 kB / 0.688 GB, free: 2.293 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001663/0.9481, allocations: 187.9 kB / 0.6882 GB, free: 2.109 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004724/0.9486, allocations: 270.1 kB / 0.6884 GB, free: 1.848 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002059/0.9488, allocations: 112 kB / 0.6885 GB, free: 1.738 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003221/0.9521, allocations: 2.416 MB / 0.6909 GB, free: 15.33 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9521, allocations: 0 / 0.6909 GB, free: 15.33 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004325/0.9564, allocations: 1.554 MB / 0.6924 GB, free: 13.78 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.01164/0.968, allocations: 9.465 MB / 0.7016 GB, free: 4.188 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009047/0.9771, allocations: 6.497 MB / 0.708 GB, free: 13.68 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.9771, allocations: 0 / 0.708 GB, free: 13.68 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003949/0.9811, allocations: 2.949 MB / 0.7109 GB, free: 10.73 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005878/0.987, allocations: 0.912 MB / 0.7118 GB, free: 9.832 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2346/1.222, allocations: 64.83 MB / 0.7751 GB, free: 136.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004017/1.226, allocations: 5.972 MB / 0.7809 GB, free: 131 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003882/1.23, allocations: 1.887 MB / 0.7827 GB, free: 129.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002767/1.232, allocations: 3.215 MB / 0.7859 GB, free: 125.9 MB / 494.1 MB Notification: Performance of SimCode: time 4.5e-07/1.232, allocations: 0 / 0.7859 GB, free: 125.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.29/1.522, allocations: 117.3 MB / 0.9005 GB, free: 129.7 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001705/1.522, allocations: 284.2 kB / 0.9007 GB, free: 129.3 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.87/5.393, allocations: 2.812 kB / 0.9007 GB, free: 129.3 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MTPA.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA_res.mat","/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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MTPA.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches