Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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: 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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001549/0.001549, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001565/0.001565, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.448/1.448, allocations: 227.7 MB / 247.7 MB, free: 10.28 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001917/0.001917, allocations: 60 kB / 307.9 MB, free: 500 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.114, allocations: 50.54 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.2132/0.3273, allocations: 16.51 MB / 375 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0106/0.3379, allocations: 5.635 MB / 380.6 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003492/0.3415, allocations: 108.7 kB / 380.7 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003624/0.3451, allocations: 1.128 MB / 381.8 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004862/0.35, allocations: 1.316 MB / 383.1 MB, free: 8.168 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002799/0.3528, allocations: 0.9821 MB / 384.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005418/0.3583, allocations: 3.976 MB / 388.1 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005967/0.3643, allocations: 3.618 MB / 391.7 MB, free: 4.152 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003337/0.3676, allocations: 1.89 MB / 393.6 MB, free: 3.238 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003977/0.3716, allocations: 2.335 MB / 395.9 MB, free: 2.172 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001279/0.3729, allocations: 0.5201 MB / 396.5 MB, free: 2.168 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002371/0.3753, allocations: 0.7764 MB / 397.2 MB, free: 2.082 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001121/0.3764, allocations: 1.288 MB / 398.5 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002965/0.3794, allocations: 2.258 MB / 400.8 MB, free: 15.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00832/0.3877, allocations: 6.859 MB / 407.6 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.3878, allocations: 4 kB / 407.6 MB, free: 10.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3878, allocations: 0 / 407.6 MB, free: 10.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000184/0.388, allocations: 0 / 407.6 MB, free: 10.5 MB / 318.1 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.01234/0.4003, allocations: 4.697 MB / 412.3 MB, free: 5.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.4004, allocations: 8.031 kB / 412.4 MB, free: 5.742 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003155/0.4035, allocations: 0.6863 MB / 413 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004882/0.4084, allocations: 2.471 MB / 415.5 MB, free: 2.566 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002801/0.4087, allocations: 266.2 kB / 415.8 MB, free: 2.309 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000753/0.4095, allocations: 347.8 kB / 416.1 MB, free: 1.969 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008953/0.4185, allocations: 4.466 MB / 420.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.932e-05/0.4186, allocations: 0 / 420.6 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004767/0.4191, allocations: 147.8 kB / 420.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001921/0.4193, allocations: 162.8 kB / 420.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007332/0.4266, allocations: 3.751 MB / 424.6 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02671/0.4533, allocations: 14.66 MB / 439.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006188/0.4596, allocations: 5.622 MB / 444.9 MB, free: 4.008 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003097/0.4627, allocations: 1.568 MB / 446.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007705/0.4704, allocations: 4.214 MB / 450.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.479e-05/0.4705, allocations: 51.81 kB / 450.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=128): time 4.207e-06/0.4705, allocations: 4 kB / 450.7 MB, free: 14.08 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.01117/0.4817, allocations: 5.659 MB / 456.4 MB, free: 8.254 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.561e-05/0.4818, allocations: 68.66 kB / 456.5 MB, free: 8.172 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003895/0.4857, allocations: 2.115 MB / 458.6 MB, free: 6.023 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001384/0.4858, allocations: 49.7 kB / 458.6 MB, free: 5.969 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001393/0.4872, allocations: 1.654 MB / 460.3 MB, free: 4.305 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005055/0.4878, allocations: 470.7 kB / 460.7 MB, free: 3.848 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005758/0.4883, allocations: 335.2 kB / 461.1 MB, free: 3.516 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.4885, allocations: 309.1 kB / 461.4 MB, free: 3.211 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001307/0.4898, allocations: 0.7339 MB / 462.1 MB, free: 2.477 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001853/0.4917, allocations: 1.364 MB / 463.5 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003342/0.495, allocations: 2.253 MB / 465.7 MB, free: 14.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.945e-05/0.4951, allocations: 8 kB / 465.7 MB, free: 14.29 MB / 382.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004711/0.4998, allocations: 2.596 MB / 468.3 MB, free: 11.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.192e-05/0.4998, allocations: 12 kB / 468.3 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.4e-05/0.4999, allocations: 20 kB / 468.4 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005251/0.5004, allocations: 194.9 kB / 468.6 MB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001668/0.5021, allocations: 459.3 kB / 469 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004066/0.5062, allocations: 3.792 MB / 472.8 MB, free: 6.898 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001828/0.508, allocations: 111.9 kB / 472.9 MB, free: 6.789 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002818/0.5083, allocations: 87.98 kB / 473 MB, free: 6.703 MB / 382.1 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.002295/0.5106, allocations: 1.048 MB / 474 MB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006696/0.5113, allocations: 221.2 kB / 474.3 MB, free: 5.426 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004474/0.5158, allocations: 2.264 MB / 476.5 MB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-05/0.5158, allocations: 19.98 kB / 476.5 MB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.63e-05/0.5159, allocations: 4 kB / 476.5 MB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-05/0.5159, allocations: 7.969 kB / 476.5 MB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0105/0.5264, allocations: 5.296 MB / 481.8 MB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.5264, allocations: 0 / 481.8 MB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.5275, allocations: 231.8 kB / 482.1 MB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008868/0.5284, allocations: 331.3 kB / 482.4 MB, free: 13.1 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.5285, allocations: 24 kB / 482.4 MB, free: 13.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008207/0.5367, allocations: 8.25 MB / 490.7 MB, free: 4.27 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.5367, allocations: 0 / 490.7 MB, free: 4.27 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005238/0.542, allocations: 3.275 MB / 493.9 MB, free: 0.9062 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001033/0.543, allocations: 462.2 kB / 494.4 MB, free: 444 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000268/0.5433, allocations: 28 kB / 494.4 MB, free: 416 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009787/0.5443, allocations: 75.92 kB / 494.5 MB, free: 340 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002115/0.5445, allocations: 93.06 kB / 494.6 MB, free: 244 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-05/0.5446, allocations: 39.98 kB / 494.6 MB, free: 204 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002268/0.5469, allocations: 1.443 MB / 496.1 MB, free: 14.74 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5469, allocations: 0 / 496.1 MB, free: 14.74 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002001/0.5489, allocations: 0.5703 MB / 496.6 MB, free: 14.17 MB / 414.1 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.0003507/0.5493, allocations: 173.3 kB / 496.8 MB, free: 14 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005052/0.5543, allocations: 2.604 MB / 499.4 MB, free: 11.35 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.5543, allocations: 8.188 kB / 499.4 MB, free: 11.34 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002345/0.5567, allocations: 1.42 MB / 0.4891 GB, free: 9.867 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003201/0.5599, allocations: 0.5644 MB / 0.4897 GB, free: 9.312 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0115/0.5714, allocations: 6.182 MB / 0.4957 GB, free: 3.078 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002371/0.5739, allocations: 2.373 MB / 0.498 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007721/0.5747, allocations: 171.4 kB / 0.4982 GB, free: 0.5078 MB / 414.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5747, allocations: 4 kB / 0.4982 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of Templates: time 0.2555/0.8302, allocations: 100.2 MB / 0.596 GB, free: 94.23 MB / 446.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches