Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|currentController.PI_d.x|currentController.PI_q.x",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001548/0.001548, allocations: 191.5 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 229.5 MB / 247.7 MB, free: 6.285 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007784/0.0007784, allocations: 87.8 kB / 299.8 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000223/0.0002231, allocations: 4 kB / 360.7 MB, free: 8.445 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1907/0.191, allocations: 51.41 MB / 412.1 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01141/0.2024, allocations: 14.56 MB / 426.6 MB, free: 11.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008157/0.2106, allocations: 7.146 MB / 433.8 MB, free: 3.672 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001952/0.2126, allocations: 99.56 kB / 433.9 MB, free: 3.574 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002123/0.2148, allocations: 0.987 MB / 434.9 MB, free: 2.582 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002704/0.2175, allocations: 1.483 MB / 436.3 MB, free: 1.02 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001767/0.2193, allocations: 1.277 MB / 437.6 MB, free: 15.65 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0044/0.2237, allocations: 4.13 MB / 441.7 MB, free: 11.5 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003438/0.2271, allocations: 3.018 MB / 444.8 MB, free: 8.41 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001895/0.229, allocations: 1.342 MB / 446.1 MB, free: 7.062 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002413/0.2315, allocations: 1.804 MB / 447.9 MB, free: 5.25 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004257/0.2319, allocations: 204 kB / 448.1 MB, free: 5.051 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001268/0.2332, allocations: 455.7 kB / 448.6 MB, free: 4.605 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008207/0.234, allocations: 0.8911 MB / 449.4 MB, free: 3.711 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00193/0.236, allocations: 1.855 MB / 451.3 MB, free: 1.84 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005829/0.2418, allocations: 6.47 MB / 457.8 MB, free: 11.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.2418, allocations: 0 / 457.8 MB, free: 11.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2418, allocations: 0 / 457.8 MB, free: 11.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.000142/0.242, allocations: 0 / 457.8 MB, free: 11.34 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.008916/0.2509, allocations: 3.952 MB / 461.7 MB, free: 7.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.251, allocations: 8.031 kB / 461.7 MB, free: 7.312 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003016/0.254, allocations: 0.6869 MB / 462.4 MB, free: 6.621 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004117/0.2581, allocations: 2.451 MB / 464.9 MB, free: 4.117 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002128/0.2583, allocations: 267.5 kB / 465.1 MB, free: 3.855 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005409/0.2589, allocations: 355.8 kB / 465.5 MB, free: 3.508 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007995/0.2669, allocations: 4.437 MB / 469.9 MB, free: 15.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-05/0.267, allocations: 0 / 469.9 MB, free: 15.02 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003056/0.2673, allocations: 152 kB / 470.1 MB, free: 14.87 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001493/0.2675, allocations: 162.8 kB / 470.2 MB, free: 14.71 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006471/0.274, allocations: 3.724 MB / 473.9 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02283/0.2968, allocations: 14.72 MB / 488.7 MB, free: 11.79 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004867/0.3017, allocations: 5.614 MB / 494.3 MB, free: 5.426 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002615/0.3044, allocations: 1.591 MB / 495.9 MB, free: 3.836 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00649/0.3109, allocations: 4.234 MB / 0.4884 GB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.416e-05/0.311, allocations: 47.81 kB / 0.4884 GB, free: 15.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 4.528e-06/0.311, allocations: 0 / 0.4884 GB, free: 15.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=132): time 0.00976/0.3207, allocations: 5.674 MB / 0.494 GB, free: 9.562 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.3208, allocations: 68.66 kB / 0.494 GB, free: 9.484 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003832/0.3247, allocations: 2.099 MB / 0.4961 GB, free: 7.352 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002342/0.3249, allocations: 53.7 kB / 0.4961 GB, free: 7.293 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001214/0.3261, allocations: 1.653 MB / 0.4978 GB, free: 5.621 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005398/0.3267, allocations: 469.3 kB / 0.4982 GB, free: 5.156 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/0.3269, allocations: 40 kB / 0.4982 GB, free: 5.117 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002022/0.3271, allocations: 369.9 kB / 0.4986 GB, free: 4.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/0.3284, allocations: 0.7301 MB / 0.4993 GB, free: 4.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001606/0.33, allocations: 1.36 MB / 0.5006 GB, free: 2.367 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1582/0.4882, allocations: 2.235 MB / 0.5028 GB, free: 87.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.318e-05/0.4882, allocations: 6.469 kB / 0.5028 GB, free: 87.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004917/0.4932, allocations: 2.591 MB / 0.5054 GB, free: 86.97 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/0.4932, allocations: 16.81 kB / 0.5054 GB, free: 86.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.255e-05/0.4932, allocations: 22.22 kB / 0.5054 GB, free: 86.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004863/0.4937, allocations: 189.6 kB / 0.5056 GB, free: 86.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001672/0.4954, allocations: 455.5 kB / 0.506 GB, free: 86.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002645/0.4981, allocations: 3.499 MB / 0.5094 GB, free: 83.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/0.4997, allocations: 120.4 kB / 0.5095 GB, free: 83.76 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001815/0.4999, allocations: 81.34 kB / 0.5096 GB, free: 83.75 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 92 * 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 (224): * Single equations (assignments): 221 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001845/0.5018, allocations: 1.058 MB / 0.5107 GB, free: 83.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005217/0.5023, allocations: 210.5 kB / 0.5109 GB, free: 83.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003591/0.5059, allocations: 2.275 MB / 0.5131 GB, free: 82.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.5059, allocations: 15.72 kB / 0.5131 GB, free: 82.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.761e-05/0.5059, allocations: 4.844 kB / 0.5131 GB, free: 82.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.556e-05/0.506, allocations: 6.797 kB / 0.5131 GB, free: 82.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008006/0.514, allocations: 5.299 MB / 0.5183 GB, free: 79.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.514, allocations: 2.531 kB / 0.5183 GB, free: 79.71 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009579/0.515, allocations: 228.5 kB / 0.5185 GB, free: 79.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007518/0.5157, allocations: 317.3 kB / 0.5188 GB, free: 79.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.727e-05/0.5159, allocations: 36.56 kB / 0.5188 GB, free: 79.56 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005317/0.5212, allocations: 7.546 MB / 0.5262 GB, free: 73.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.247e-06/0.5212, allocations: 3.969 kB / 0.5262 GB, free: 73.04 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004286/0.5255, allocations: 3.279 MB / 0.5294 GB, free: 70.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009187/0.5264, allocations: 467.8 kB / 0.5299 GB, free: 70.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006085/0.5271, allocations: 40.05 kB / 0.5299 GB, free: 70.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001313/0.5284, allocations: 73.02 kB / 0.53 GB, free: 70.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002529/0.5287, allocations: 97.12 kB / 0.5301 GB, free: 70.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.232e-05/0.5288, allocations: 35.98 kB / 0.5301 GB, free: 70.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002951/0.5317, allocations: 1.42 MB / 0.5315 GB, free: 68.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5317, allocations: 0 / 0.5315 GB, free: 68.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002442/0.5342, allocations: 0.5759 MB / 0.532 GB, free: 68.16 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,currentController.PI_d.x,currentController.PI_q.x) * 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 (109): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,8,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003312/0.5345, allocations: 178.7 kB / 0.5322 GB, free: 67.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00278/0.5373, allocations: 2.146 MB / 0.5343 GB, free: 65.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.5373, allocations: 0 / 0.5343 GB, free: 65.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001702/0.5391, allocations: 1.408 MB / 0.5357 GB, free: 64.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003141/0.5422, allocations: 0.5316 MB / 0.5362 GB, free: 63.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01055/0.5528, allocations: 7.749 MB / 0.5438 GB, free: 56.03 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002287/0.5551, allocations: 2.418 MB / 0.5461 GB, free: 53.58 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001875/0.557, allocations: 493.8 kB / 0.5466 GB, free: 53.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005137/0.5575, allocations: 155.4 kB / 0.5467 GB, free: 52.95 MB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/0.5575, allocations: 0 / 0.5467 GB, free: 52.95 MB / 378.7 MB Notification: Performance of Templates: time 0.04477/0.6023, allocations: 27.75 MB / 0.5738 GB, free: 25.56 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches