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.001057/0.001057, allocations: 117.6 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001039/0.001039, allocations: 203.9 kB / 18.73 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 67.88 kB / 358.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2446, allocations: 50.53 MB / 409.3 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01822/0.2629, allocations: 16.52 MB / 425.8 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01123/0.2741, allocations: 5.619 MB / 431.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003337/0.2775, allocations: 107.6 kB / 431.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003726/0.2812, allocations: 1.196 MB / 432.7 MB, free: 10 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004697/0.286, allocations: 1.375 MB / 434.1 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002671/0.2887, allocations: 0.9908 MB / 435.1 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005312/0.294, allocations: 3.986 MB / 439.1 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005833/0.2999, allocations: 3.615 MB / 442.7 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003409/0.3033, allocations: 1.904 MB / 444.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003992/0.3073, allocations: 2.351 MB / 446.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001517/0.3089, allocations: 0.5156 MB / 447.4 MB, free: 11.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002391/0.3113, allocations: 0.7653 MB / 448.2 MB, free: 10.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00183/0.3131, allocations: 1.286 MB / 449.5 MB, free: 9.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004077/0.3172, allocations: 2.256 MB / 451.7 MB, free: 6.824 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008969/0.3262, allocations: 6.936 MB / 458.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.3262, allocations: 0 / 458.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3262, allocations: 0 / 458.7 MB, free: 15.87 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002036/0.3264, allocations: 0 / 458.7 MB, free: 15.87 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01259/0.339, allocations: 4.695 MB / 463.4 MB, free: 11.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.3391, allocations: 12.03 kB / 463.4 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003664/0.3428, allocations: 0.6792 MB / 464.1 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005606/0.3484, allocations: 2.541 MB / 466.6 MB, free: 7.812 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002455/0.3487, allocations: 259.3 kB / 466.9 MB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000953/0.3496, allocations: 348 kB / 467.2 MB, free: 7.219 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009791/0.3594, allocations: 4.468 MB / 471.7 MB, free: 2.695 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001236/0.3596, allocations: 11.89 kB / 471.7 MB, free: 2.684 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005888/0.3602, allocations: 144 kB / 471.8 MB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001709/0.3604, allocations: 166.8 kB / 472 MB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008246/0.3686, allocations: 3.755 MB / 475.7 MB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02596/0.3946, allocations: 14.48 MB / 490.2 MB, free: 15.68 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00536/0.4, allocations: 5.613 MB / 495.8 MB, free: 9.324 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00311/0.4032, allocations: 1.689 MB / 497.5 MB, free: 7.637 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007309/0.4105, allocations: 4.21 MB / 0.49 GB, free: 3.285 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/0.4106, allocations: 55.8 kB / 0.49 GB, free: 3.223 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 3.286e-06/0.4106, allocations: 0 / 0.49 GB, free: 3.223 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.01014/0.4207, allocations: 5.655 MB / 0.4955 GB, free: 13.39 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.4208, allocations: 72.64 kB / 0.4956 GB, free: 13.31 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003896/0.4247, allocations: 2.115 MB / 0.4977 GB, free: 11.16 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001205/0.4249, allocations: 45.7 kB / 0.4977 GB, free: 11.11 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001156/0.426, allocations: 1.661 MB / 0.4993 GB, free: 9.434 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003852/0.4264, allocations: 465.3 kB / 0.4998 GB, free: 8.973 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005313/0.427, allocations: 343.2 kB / 0.5001 GB, free: 8.629 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.733e-05/0.4271, allocations: 301.1 kB / 0.5004 GB, free: 8.332 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/0.4282, allocations: 0.7378 MB / 0.5011 GB, free: 7.594 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001593/0.4298, allocations: 1.356 MB / 0.5024 GB, free: 5.949 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002895/0.4328, allocations: 2.253 MB / 0.5046 GB, free: 3.414 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-05/0.4328, allocations: 8 kB / 0.5047 GB, free: 3.406 MB / 430.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004382/0.4372, allocations: 2.596 MB / 0.5072 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.404e-05/0.4372, allocations: 16 kB / 0.5072 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.341e-05/0.4373, allocations: 20 kB / 0.5072 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005383/0.4378, allocations: 190.8 kB / 0.5074 GB, free: 0.543 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001599/0.4394, allocations: 463.3 kB / 0.5078 GB, free: 92 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003268/0.4427, allocations: 3.781 MB / 0.5115 GB, free: 12.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001558/0.4443, allocations: 115.7 kB / 0.5117 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001562/0.4444, allocations: 80 kB / 0.5117 GB, free: 11.83 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.001714/0.4462, allocations: 1.059 MB / 0.5128 GB, free: 10.76 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004932/0.4467, allocations: 221.2 kB / 0.513 GB, free: 10.54 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003792/0.4505, allocations: 2.268 MB / 0.5152 GB, free: 8.219 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/0.4505, allocations: 16 kB / 0.5152 GB, free: 8.203 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.349e-05/0.4505, allocations: 4 kB / 0.5152 GB, free: 8.199 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.4505, allocations: 3.984 kB / 0.5152 GB, free: 8.195 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008814/0.4593, allocations: 5.304 MB / 0.5204 GB, free: 2.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.062e-06/0.4594, allocations: 4.25 kB / 0.5204 GB, free: 2.746 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.4604, allocations: 227.7 kB / 0.5206 GB, free: 2.523 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008249/0.4612, allocations: 315.3 kB / 0.5209 GB, free: 2.203 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.4613, allocations: 35.98 kB / 0.5209 GB, free: 2.168 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007182/0.4685, allocations: 8.23 MB / 0.529 GB, free: 9.371 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4686, allocations: 160 / 0.529 GB, free: 9.371 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00503/0.4736, allocations: 3.298 MB / 0.5322 GB, free: 5.98 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/0.4746, allocations: 454.4 kB / 0.5326 GB, free: 5.516 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004515/0.4751, allocations: 28 kB / 0.5327 GB, free: 5.488 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001142/0.4763, allocations: 76.03 kB / 0.5327 GB, free: 5.414 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002192/0.4765, allocations: 97.06 kB / 0.5328 GB, free: 5.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.215e-05/0.4766, allocations: 43.98 kB / 0.5329 GB, free: 5.277 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002498/0.4791, allocations: 1.439 MB / 0.5343 GB, free: 3.82 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4791, allocations: 0 / 0.5343 GB, free: 3.82 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002088/0.4812, allocations: 0.5703 MB / 0.5348 GB, free: 3.25 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.0003336/0.4815, allocations: 175 kB / 0.535 GB, free: 3.066 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003314/0.4849, allocations: 2.162 MB / 0.5371 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.4849, allocations: 0 / 0.5371 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.196/0.6808, allocations: 1.407 MB / 0.5385 GB, free: 125 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002907/0.6838, allocations: 0.5616 MB / 0.539 GB, free: 125 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009532/0.6933, allocations: 6.085 MB / 0.545 GB, free: 122.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001571/0.6949, allocations: 2.424 MB / 0.5473 GB, free: 121.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001526/0.6965, allocations: 497.4 kB / 0.5478 GB, free: 121.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003857/0.6969, allocations: 155.3 kB / 0.548 GB, free: 121.6 MB / 462.1 MB Notification: Performance of SimCode: time 6.91e-07/0.6969, allocations: 0 / 0.548 GB, free: 121.6 MB / 462.1 MB Notification: Performance of Templates: time 0.04163/0.7385, allocations: 27.71 MB / 0.575 GB, free: 98.23 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