Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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: 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001635/0.001635, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002123/0.002123, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00113/0.00113, allocations: 59.91 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2394, allocations: 50.54 MB / 409.3 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01619/0.2557, allocations: 16.52 MB / 425.8 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008988/0.2647, allocations: 5.614 MB / 431.4 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001587/0.2663, allocations: 107.6 kB / 431.5 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002299/0.2686, allocations: 1.133 MB / 432.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00276/0.2714, allocations: 1.328 MB / 434 MB, free: 8.961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001745/0.2732, allocations: 0.9975 MB / 435 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003672/0.2768, allocations: 3.995 MB / 439 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003559/0.2804, allocations: 3.615 MB / 442.6 MB, free: 268 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002128/0.2826, allocations: 1.896 MB / 444.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002467/0.285, allocations: 2.339 MB / 446.8 MB, free: 12.01 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005906/0.2856, allocations: 0.5156 MB / 447.3 MB, free: 11.49 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00121/0.2869, allocations: 0.7652 MB / 448.1 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009719/0.2878, allocations: 1.293 MB / 449.4 MB, free: 9.434 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001812/0.2897, allocations: 2.252 MB / 451.6 MB, free: 7.172 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005896/0.2956, allocations: 6.956 MB / 458.6 MB, free: 196 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2956, allocations: 0 / 458.6 MB, free: 196 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2956, allocations: 0 / 458.6 MB, free: 196 kB / 366.1 MB Notification: Performance of Transformations before backend: time 6.792e-05/0.2957, allocations: 4 kB / 458.6 MB, free: 192 kB / 366.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.008892/0.3046, allocations: 4.805 MB / 463.4 MB, free: 11.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.3046, allocations: 8.031 kB / 463.4 MB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002828/0.3074, allocations: 0.701 MB / 464.1 MB, free: 10.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003851/0.3113, allocations: 2.558 MB / 466.7 MB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001752/0.3115, allocations: 259.3 kB / 466.9 MB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004713/0.312, allocations: 352.1 kB / 467.3 MB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006588/0.3186, allocations: 4.464 MB / 471.7 MB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-05/0.3187, allocations: 15.89 kB / 471.7 MB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000292/0.319, allocations: 144 kB / 471.9 MB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001394/0.3191, allocations: 162.8 kB / 472 MB, free: 2.551 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00564/0.3248, allocations: 3.751 MB / 475.8 MB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0184/0.3432, allocations: 14.51 MB / 490.3 MB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004867/0.3481, allocations: 5.618 MB / 495.9 MB, free: 9.469 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002874/0.351, allocations: 1.685 MB / 497.6 MB, free: 7.785 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006136/0.3571, allocations: 4.227 MB / 0.4901 GB, free: 3.418 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.3572, allocations: 51.75 kB / 0.4901 GB, free: 3.359 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 2.976e-06/0.3572, allocations: 0 / 0.4901 GB, free: 3.359 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.009468/0.3667, allocations: 5.723 MB / 0.4957 GB, free: 13.47 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.532e-05/0.3667, allocations: 68.66 kB / 0.4958 GB, free: 13.39 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002797/0.3695, allocations: 2.115 MB / 0.4978 GB, free: 11.24 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.764e-05/0.3696, allocations: 49.7 kB / 0.4979 GB, free: 11.19 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001076/0.3707, allocations: 1.705 MB / 0.4995 GB, free: 9.469 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003525/0.3711, allocations: 483.9 kB / 0.5 GB, free: 8.992 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004823/0.3715, allocations: 339.4 kB / 0.5003 GB, free: 8.652 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.094e-05/0.3716, allocations: 305.1 kB / 0.5006 GB, free: 8.352 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001038/0.3727, allocations: 0.7301 MB / 0.5013 GB, free: 7.621 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001454/0.3741, allocations: 1.368 MB / 0.5027 GB, free: 5.965 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002691/0.3768, allocations: 2.253 MB / 0.5049 GB, free: 3.43 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.905e-06/0.3769, allocations: 4 kB / 0.5049 GB, free: 3.426 MB / 430.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003722/0.3806, allocations: 2.609 MB / 0.5074 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.559e-05/0.3806, allocations: 16.5 kB / 0.5074 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.032e-05/0.3807, allocations: 20 kB / 0.5075 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000463/0.3811, allocations: 186.5 kB / 0.5076 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001536/0.3827, allocations: 463.2 kB / 0.5081 GB, free: 104 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003004/0.3857, allocations: 3.786 MB / 0.5118 GB, free: 12.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001334/0.387, allocations: 111.9 kB / 0.5119 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001268/0.3872, allocations: 80 kB / 0.512 GB, free: 11.84 MB / 446.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.001592/0.3888, allocations: 1.067 MB / 0.513 GB, free: 10.77 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003015/0.3891, allocations: 226.5 kB / 0.5132 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00351/0.3926, allocations: 2.268 MB / 0.5154 GB, free: 8.223 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.3926, allocations: 12 kB / 0.5154 GB, free: 8.211 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.3926, allocations: 4 kB / 0.5154 GB, free: 8.207 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.3927, allocations: 7.969 kB / 0.5155 GB, free: 8.199 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007144/0.3998, allocations: 5.308 MB / 0.5206 GB, free: 2.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.3998, allocations: 4 kB / 0.5206 GB, free: 2.746 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009392/0.4008, allocations: 219.7 kB / 0.5209 GB, free: 2.531 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007663/0.4015, allocations: 327.1 kB / 0.5212 GB, free: 2.199 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.965e-05/0.4016, allocations: 28 kB / 0.5212 GB, free: 2.172 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006874/0.4085, allocations: 8.25 MB / 0.5292 GB, free: 9.355 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.048e-06/0.4085, allocations: 4 kB / 0.5292 GB, free: 9.352 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004695/0.4132, allocations: 3.295 MB / 0.5325 GB, free: 5.965 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009116/0.4142, allocations: 475.5 kB / 0.5329 GB, free: 5.48 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004341/0.4146, allocations: 24 kB / 0.5329 GB, free: 5.457 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001113/0.4157, allocations: 71.92 kB / 0.533 GB, free: 5.387 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002016/0.4159, allocations: 93.12 kB / 0.5331 GB, free: 5.297 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.625e-05/0.416, allocations: 39.98 kB / 0.5331 GB, free: 5.258 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00217/0.4182, allocations: 1.439 MB / 0.5345 GB, free: 3.801 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4182, allocations: 0 / 0.5345 GB, free: 3.801 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002222/0.4204, allocations: 0.5663 MB / 0.5351 GB, free: 3.234 MB / 462.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.0004318/0.4209, allocations: 174.9 kB / 0.5353 GB, free: 3.051 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003404/0.4243, allocations: 2.162 MB / 0.5374 GB, free: 0.8438 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.4243, allocations: 3.938 kB / 0.5374 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1999/0.6242, allocations: 1.413 MB / 0.5388 GB, free: 125.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002826/0.627, allocations: 0.5638 MB / 0.5393 GB, free: 125.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009059/0.6361, allocations: 6.188 MB / 0.5454 GB, free: 122.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001517/0.6377, allocations: 2.423 MB / 0.5477 GB, free: 121.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001359/0.639, allocations: 494.9 kB / 0.5482 GB, free: 121.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000373/0.6394, allocations: 155.4 kB / 0.5483 GB, free: 121.6 MB / 462.1 MB Notification: Performance of SimCode: time 5.71e-07/0.6394, allocations: 3.812 kB / 0.5483 GB, free: 121.6 MB / 462.1 MB Notification: Performance of Templates: time 0.03709/0.6765, allocations: 27.69 MB / 0.5754 GB, free: 98.18 MB / 462.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches