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.001693/0.001693, allocations: 115.7 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001983/0.001984, allocations: 217.9 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 55.91 kB / 359.4 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2588, allocations: 50.54 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01805/0.2769, allocations: 16.52 MB / 426.5 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01097/0.2879, allocations: 5.622 MB / 432.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003067/0.291, allocations: 103.6 kB / 432.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003658/0.2947, allocations: 1.137 MB / 433.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004431/0.2992, allocations: 1.32 MB / 434.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002608/0.3018, allocations: 0.9972 MB / 435.6 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005426/0.3073, allocations: 3.997 MB / 439.6 MB, free: 3.777 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005704/0.313, allocations: 3.615 MB / 443.3 MB, free: 88 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003165/0.3162, allocations: 1.904 MB / 445.2 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003898/0.3201, allocations: 2.339 MB / 447.5 MB, free: 11.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001357/0.3215, allocations: 0.5234 MB / 448 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002031/0.3235, allocations: 0.7653 MB / 448.8 MB, free: 10.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00148/0.325, allocations: 1.289 MB / 450.1 MB, free: 9.246 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003242/0.3283, allocations: 2.259 MB / 452.3 MB, free: 6.977 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007709/0.336, allocations: 6.925 MB / 459.3 MB, free: 32 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.336, allocations: 0 / 459.3 MB, free: 32 kB / 366.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3361, allocations: 4 kB / 459.3 MB, free: 28 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001862/0.3362, allocations: 0 / 459.3 MB, free: 28 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.0119/0.3482, allocations: 4.698 MB / 464 MB, free: 11.26 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.3482, allocations: 12.03 kB / 464 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003046/0.3513, allocations: 0.6792 MB / 464.7 MB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004235/0.3555, allocations: 2.537 MB / 467.2 MB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001876/0.3557, allocations: 255.3 kB / 467.4 MB, free: 7.723 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005225/0.3563, allocations: 356 kB / 467.8 MB, free: 7.375 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007614/0.3639, allocations: 4.468 MB / 472.3 MB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.441e-05/0.364, allocations: 7.906 kB / 472.3 MB, free: 2.844 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003148/0.3643, allocations: 144 kB / 472.4 MB, free: 2.703 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001541/0.3645, allocations: 162.8 kB / 472.6 MB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006059/0.3705, allocations: 3.755 MB / 476.3 MB, free: 14.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0209/0.3914, allocations: 14.47 MB / 490.8 MB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005335/0.3968, allocations: 5.615 MB / 496.4 MB, free: 9.488 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003085/0.3999, allocations: 1.684 MB / 498.1 MB, free: 7.805 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006827/0.4068, allocations: 4.214 MB / 0.4905 GB, free: 3.449 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.409e-05/0.4068, allocations: 51.81 kB / 0.4906 GB, free: 3.391 MB / 414.1 MB Notification: Performance of pre-optimization done (n=128): time 3.437e-06/0.4068, allocations: 4 kB / 0.4906 GB, free: 3.387 MB / 414.1 MB Notification: Performance of matching and sorting (n=132): time 0.01031/0.4172, allocations: 5.663 MB / 0.4961 GB, free: 13.55 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.75e-05/0.4172, allocations: 68.66 kB / 0.4962 GB, free: 13.47 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00307/0.4203, allocations: 2.115 MB / 0.4982 GB, free: 11.32 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.4204, allocations: 45.7 kB / 0.4983 GB, free: 11.27 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001148/0.4216, allocations: 1.661 MB / 0.4999 GB, free: 9.594 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000376/0.422, allocations: 461.3 kB / 0.5004 GB, free: 9.137 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005131/0.4225, allocations: 339.2 kB / 0.5007 GB, free: 8.797 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.4226, allocations: 305.1 kB / 0.501 GB, free: 8.496 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001133/0.4238, allocations: 0.734 MB / 0.5017 GB, free: 7.762 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001532/0.4253, allocations: 1.36 MB / 0.503 GB, free: 6.113 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002853/0.4282, allocations: 2.253 MB / 0.5052 GB, free: 3.578 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/0.4282, allocations: 8 kB / 0.5052 GB, free: 3.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004198/0.4324, allocations: 2.596 MB / 0.5078 GB, free: 0.9375 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.4324, allocations: 12 kB / 0.5078 GB, free: 0.9258 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.997e-05/0.4325, allocations: 20 kB / 0.5078 GB, free: 0.9062 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004976/0.433, allocations: 198.8 kB / 0.508 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001622/0.4346, allocations: 455.3 kB / 0.5084 GB, free: 264 kB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003416/0.438, allocations: 3.785 MB / 0.5121 GB, free: 12.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001624/0.4397, allocations: 119.7 kB / 0.5122 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001308/0.4398, allocations: 76 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.001892/0.4417, allocations: 1.055 MB / 0.5133 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004008/0.4421, allocations: 225.3 kB / 0.5135 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003722/0.4459, allocations: 2.264 MB / 0.5157 GB, free: 8.387 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.368e-05/0.4459, allocations: 16 kB / 0.5158 GB, free: 8.371 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.457e-05/0.4459, allocations: 4 kB / 0.5158 GB, free: 8.367 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.7e-05/0.4459, allocations: 7.969 kB / 0.5158 GB, free: 8.359 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008073/0.454, allocations: 5.304 MB / 0.521 GB, free: 2.914 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.454, allocations: 0 / 0.521 GB, free: 2.914 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/0.455, allocations: 223.9 kB / 0.5212 GB, free: 2.695 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008194/0.4559, allocations: 331.2 kB / 0.5215 GB, free: 2.359 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.094e-05/0.456, allocations: 32 kB / 0.5215 GB, free: 2.328 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007546/0.4635, allocations: 8.23 MB / 0.5296 GB, free: 9.531 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.892e-06/0.4636, allocations: 8.062 kB / 0.5296 GB, free: 9.523 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00519/0.4688, allocations: 3.282 MB / 0.5328 GB, free: 6.148 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/0.4699, allocations: 462.3 kB / 0.5332 GB, free: 5.676 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003018/0.4702, allocations: 28 kB / 0.5332 GB, free: 5.648 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009992/0.4712, allocations: 67.92 kB / 0.5333 GB, free: 5.582 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002147/0.4714, allocations: 97.06 kB / 0.5334 GB, free: 5.488 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.799e-05/0.4715, allocations: 35.98 kB / 0.5334 GB, free: 5.453 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002175/0.4737, allocations: 1.443 MB / 0.5348 GB, free: 3.992 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4737, allocations: 0 / 0.5348 GB, free: 3.992 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001978/0.4757, allocations: 0.5742 MB / 0.5354 GB, free: 3.418 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.0003376/0.476, allocations: 171 kB / 0.5356 GB, free: 3.238 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003378/0.4794, allocations: 2.165 MB / 0.5377 GB, free: 1.027 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/0.4794, allocations: 0 / 0.5377 GB, free: 1.027 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1993/0.6787, allocations: 1.407 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.003102/0.6819, allocations: 0.5625 MB / 0.5396 GB, free: 125.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009747/0.6916, allocations: 6.1 MB / 0.5456 GB, free: 122.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001604/0.6933, allocations: 2.38 MB / 0.5479 GB, free: 121.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006589/0.6939, allocations: 170.3 kB / 0.548 GB, free: 121.8 MB / 462.1 MB Notification: Performance of SimCode: time 6.81e-07/0.6939, allocations: 0 / 0.548 GB, free: 121.8 MB / 462.1 MB Notification: Performance of Templates: time 0.0754/0.7693, allocations: 100.5 MB / 0.6462 GB, free: 25.8 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