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.001436/0.001437, allocations: 113.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001816/0.001816, allocations: 212.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.531/1.531, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 63.88 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.354/0.3552, allocations: 50.54 MB / 409.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01999/0.3753, allocations: 16.51 MB / 426.5 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01411/0.3894, allocations: 5.626 MB / 432.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004818/0.3943, allocations: 103.6 kB / 432.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004466/0.3988, allocations: 1.137 MB / 433.3 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005972/0.4048, allocations: 1.328 MB / 434.6 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003992/0.4089, allocations: 0.9894 MB / 435.6 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008804/0.4177, allocations: 3.986 MB / 439.6 MB, free: 3.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008788/0.4265, allocations: 3.615 MB / 443.2 MB, free: 108 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004938/0.4315, allocations: 1.904 MB / 445.1 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004797/0.4363, allocations: 2.347 MB / 447.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002375/0.4388, allocations: 0.5156 MB / 448 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004151/0.4429, allocations: 0.7653 MB / 448.8 MB, free: 10.56 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002892/0.4459, allocations: 1.289 MB / 450.1 MB, free: 9.266 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005326/0.4512, allocations: 2.263 MB / 452.3 MB, free: 6.992 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01003/0.4613, allocations: 6.929 MB / 459.3 MB, free: 44 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.4613, allocations: 0 / 459.3 MB, free: 44 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4613, allocations: 0 / 459.3 MB, free: 44 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002656/0.4616, allocations: 3.938 kB / 459.3 MB, free: 40 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.01486/0.4765, allocations: 4.691 MB / 463.9 MB, free: 11.28 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.4766, allocations: 12.03 kB / 464 MB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004045/0.4806, allocations: 0.6831 MB / 464.6 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006571/0.4872, allocations: 2.537 MB / 467.2 MB, free: 7.988 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002426/0.4875, allocations: 255.3 kB / 467.4 MB, free: 7.738 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009271/0.4884, allocations: 356 kB / 467.8 MB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009239/0.4977, allocations: 4.468 MB / 472.2 MB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.784e-05/0.4978, allocations: 7.906 kB / 472.3 MB, free: 2.859 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003271/0.4981, allocations: 148 kB / 472.4 MB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001643/0.4983, allocations: 162.8 kB / 472.6 MB, free: 2.555 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007439/0.5057, allocations: 3.747 MB / 476.3 MB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02551/0.5313, allocations: 14.48 MB / 490.8 MB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00559/0.5369, allocations: 5.611 MB / 496.4 MB, free: 9.5 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003354/0.5403, allocations: 1.688 MB / 498.1 MB, free: 7.812 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008092/0.5484, allocations: 4.207 MB / 0.4905 GB, free: 3.465 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.278e-05/0.5485, allocations: 55.81 kB / 0.4906 GB, free: 3.402 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 3.416e-06/0.5485, allocations: 0 / 0.4906 GB, free: 3.402 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.01067/0.5592, allocations: 5.663 MB / 0.4961 GB, free: 13.56 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/0.5593, allocations: 68.66 kB / 0.4962 GB, free: 13.48 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003354/0.5626, allocations: 2.115 MB / 0.4982 GB, free: 11.34 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001632/0.5628, allocations: 45.7 kB / 0.4983 GB, free: 11.29 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001323/0.5642, allocations: 1.669 MB / 0.4999 GB, free: 9.602 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005185/0.5647, allocations: 461.3 kB / 0.5003 GB, free: 9.145 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005749/0.5653, allocations: 339.2 kB / 0.5007 GB, free: 8.805 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.5654, allocations: 305.1 kB / 0.501 GB, free: 8.504 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.5667, allocations: 0.7262 MB / 0.5017 GB, free: 7.777 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001822/0.5685, allocations: 1.364 MB / 0.503 GB, free: 6.125 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003089/0.5716, allocations: 2.253 MB / 0.5052 GB, free: 3.59 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.53e-05/0.5716, allocations: 8 kB / 0.5052 GB, free: 3.582 MB / 430.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004265/0.5759, allocations: 2.596 MB / 0.5077 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.28e-05/0.5759, allocations: 16 kB / 0.5078 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.329e-05/0.576, allocations: 20.5 kB / 0.5078 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005038/0.5765, allocations: 190.4 kB / 0.508 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001597/0.5781, allocations: 459.3 kB / 0.5084 GB, free: 276 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003227/0.5813, allocations: 3.785 MB / 0.5121 GB, free: 12.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001933/0.5833, allocations: 115.7 kB / 0.5122 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001879/0.5835, allocations: 83.98 kB / 0.5123 GB, free: 12 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.002047/0.5856, allocations: 1.055 MB / 0.5133 GB, free: 10.94 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005168/0.5861, allocations: 221.4 kB / 0.5135 GB, free: 10.72 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003681/0.5898, allocations: 2.268 MB / 0.5157 GB, free: 8.395 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.927e-05/0.5898, allocations: 19.94 kB / 0.5158 GB, free: 8.375 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.5898, allocations: 4 kB / 0.5158 GB, free: 8.371 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.542e-05/0.5898, allocations: 7.969 kB / 0.5158 GB, free: 8.363 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009028/0.5989, allocations: 5.3 MB / 0.521 GB, free: 2.922 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.5989, allocations: 4.031 kB / 0.521 GB, free: 2.918 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009831/0.5999, allocations: 231.6 kB / 0.5212 GB, free: 2.691 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008216/0.6007, allocations: 311.1 kB / 0.5215 GB, free: 2.375 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.545e-05/0.6008, allocations: 32 kB / 0.5215 GB, free: 2.344 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00747/0.6083, allocations: 8.234 MB / 0.5295 GB, free: 9.543 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.217e-06/0.6084, allocations: 4.031 kB / 0.5295 GB, free: 9.539 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005551/0.6139, allocations: 3.286 MB / 0.5328 GB, free: 6.16 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00132/0.6153, allocations: 458.3 kB / 0.5332 GB, free: 5.691 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002988/0.6156, allocations: 24 kB / 0.5332 GB, free: 5.668 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009814/0.6166, allocations: 79.86 kB / 0.5333 GB, free: 5.59 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002305/0.6168, allocations: 97.44 kB / 0.5334 GB, free: 5.496 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.578e-05/0.6169, allocations: 39.98 kB / 0.5334 GB, free: 5.457 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002324/0.6192, allocations: 1.439 MB / 0.5348 GB, free: 4 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6192, allocations: 0 / 0.5348 GB, free: 4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002534/0.6218, allocations: 0.5741 MB / 0.5354 GB, free: 3.426 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.0004485/0.6222, allocations: 171 kB / 0.5356 GB, free: 3.246 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003481/0.6257, allocations: 2.162 MB / 0.5377 GB, free: 1.039 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.6258, allocations: 0 / 0.5377 GB, free: 1.039 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.3497/0.9755, allocations: 1.408 MB / 0.539 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.007286/0.9828, allocations: 0.57 MB / 0.5396 GB, free: 125 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0217/1.005, allocations: 6.101 MB / 0.5456 GB, free: 122.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004039/1.009, allocations: 2.369 MB / 0.5479 GB, free: 121.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001603/1.01, allocations: 172.6 kB / 0.548 GB, free: 121.8 MB / 462.1 MB Notification: Performance of SimCode: time 4.459e-06/1.01, allocations: 0 / 0.548 GB, free: 121.8 MB / 462.1 MB Notification: Performance of Templates: time 0.1218/1.132, allocations: 100.9 MB / 0.6466 GB, free: 25.34 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/jenkins1/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/jenkins1/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