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.001367/0.001367, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001615/0.001615, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 60.75 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1016, allocations: 50.53 MB / 358.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.194/0.2956, allocations: 16.5 MB / 375.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009489/0.3051, allocations: 5.631 MB / 381.1 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002772/0.3079, allocations: 108.2 kB / 381.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003026/0.311, allocations: 1.131 MB / 382.3 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004047/0.3151, allocations: 1.33 MB / 383.6 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002333/0.3174, allocations: 0.9864 MB / 384.6 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005026/0.3225, allocations: 4.001 MB / 388.6 MB, free: 6.117 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004068/0.3265, allocations: 3.612 MB / 392.2 MB, free: 4.609 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002793/0.3293, allocations: 1.896 MB / 394.1 MB, free: 3.695 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002857/0.3322, allocations: 2.339 MB / 396.5 MB, free: 2.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007153/0.333, allocations: 0.5172 MB / 397 MB, free: 2.633 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001645/0.3346, allocations: 0.762 MB / 397.7 MB, free: 2.547 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000899/0.3355, allocations: 1.3 MB / 399 MB, free: 1.594 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001858/0.3374, allocations: 2.258 MB / 401.3 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005931/0.3433, allocations: 6.935 MB / 408.2 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3433, allocations: 0 / 408.2 MB, free: 10.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3434, allocations: 4 kB / 408.2 MB, free: 10.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000124/0.3435, allocations: 0 / 408.2 MB, free: 10.48 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.01005/0.3535, allocations: 4.692 MB / 412.9 MB, free: 5.715 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.3536, allocations: 8.031 kB / 412.9 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002911/0.3565, allocations: 0.6831 MB / 413.6 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004577/0.3611, allocations: 2.537 MB / 416.2 MB, free: 2.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/0.3613, allocations: 267.3 kB / 416.4 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004818/0.3618, allocations: 344.3 kB / 416.7 MB, free: 1.832 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006722/0.3685, allocations: 4.472 MB / 421.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.714e-05/0.3686, allocations: 4 kB / 421.2 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00028/0.3689, allocations: 136 kB / 421.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001396/0.369, allocations: 162.8 kB / 421.5 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00576/0.3748, allocations: 3.755 MB / 425.3 MB, free: 9.242 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02122/0.396, allocations: 14.47 MB / 439.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005848/0.4019, allocations: 5.623 MB / 445.4 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002788/0.4047, allocations: 1.568 MB / 446.9 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007309/0.4121, allocations: 4.203 MB / 451.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.537e-05/0.4121, allocations: 43.88 kB / 451.2 MB, free: 13.97 MB / 366.1 MB Notification: Performance of pre-optimization done (n=128): time 2.625e-06/0.4121, allocations: 4 kB / 451.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.01043/0.4226, allocations: 5.663 MB / 456.8 MB, free: 8.133 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.4226, allocations: 72.72 kB / 456.9 MB, free: 8.047 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003203/0.4259, allocations: 2.114 MB / 459 MB, free: 5.898 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001328/0.426, allocations: 49.7 kB / 459.1 MB, free: 5.844 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001112/0.4271, allocations: 1.657 MB / 460.7 MB, free: 4.168 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004273/0.4276, allocations: 473.3 kB / 461.2 MB, free: 3.699 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005383/0.4281, allocations: 331.2 kB / 461.5 MB, free: 3.371 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.4282, allocations: 301.1 kB / 461.8 MB, free: 3.074 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.4294, allocations: 0.7379 MB / 462.6 MB, free: 2.336 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001603/0.431, allocations: 1.36 MB / 463.9 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002832/0.4338, allocations: 2.253 MB / 466.2 MB, free: 14.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.447e-06/0.4338, allocations: 8 kB / 466.2 MB, free: 14.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004018/0.4379, allocations: 2.6 MB / 468.8 MB, free: 11.51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.4379, allocations: 19.94 kB / 468.8 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.556e-05/0.4379, allocations: 20 kB / 468.8 MB, free: 11.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000508/0.4385, allocations: 194.8 kB / 469 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0016/0.4401, allocations: 451.3 kB / 469.4 MB, free: 10.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003239/0.4433, allocations: 3.785 MB / 473.2 MB, free: 6.762 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001578/0.4449, allocations: 115.9 kB / 473.3 MB, free: 6.648 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/0.4451, allocations: 80 kB / 473.4 MB, free: 6.57 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.001745/0.4468, allocations: 1.059 MB / 474.5 MB, free: 5.504 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003417/0.4472, allocations: 217.3 kB / 474.7 MB, free: 5.289 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003682/0.4508, allocations: 2.264 MB / 477 MB, free: 2.969 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.146e-05/0.4509, allocations: 12 kB / 477 MB, free: 2.957 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.4509, allocations: 12 kB / 477 MB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.4509, allocations: 3.984 kB / 477 MB, free: 2.941 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008486/0.4594, allocations: 5.308 MB / 482.3 MB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.4594, allocations: 0 / 482.3 MB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001004/0.4604, allocations: 223.7 kB / 482.5 MB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000795/0.4612, allocations: 323.4 kB / 482.8 MB, free: 12.94 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.019e-05/0.4613, allocations: 31.98 kB / 482.9 MB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00742/0.4688, allocations: 8.246 MB / 491.1 MB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.838e-06/0.4688, allocations: 4 kB / 491.1 MB, free: 4.09 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004768/0.4736, allocations: 3.286 MB / 494.4 MB, free: 0.7148 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/0.4746, allocations: 454.3 kB / 494.8 MB, free: 256 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002735/0.4749, allocations: 31.98 kB / 494.9 MB, free: 224 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009677/0.4759, allocations: 71.92 kB / 494.9 MB, free: 152 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001862/0.4761, allocations: 97.06 kB / 495 MB, free: 52 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.878e-05/0.4762, allocations: 35.98 kB / 495.1 MB, free: 16 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002089/0.4783, allocations: 1.439 MB / 496.5 MB, free: 14.55 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4783, allocations: 0 / 496.5 MB, free: 14.55 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001865/0.4801, allocations: 0.5664 MB / 497.1 MB, free: 13.99 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.0003016/0.4805, allocations: 163 kB / 497.2 MB, free: 13.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00312/0.4836, allocations: 2.159 MB / 499.4 MB, free: 11.62 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.4836, allocations: 4.062 kB / 499.4 MB, free: 11.61 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001945/0.4856, allocations: 1.416 MB / 0.4891 GB, free: 10.14 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002232/0.4878, allocations: 0.5653 MB / 0.4896 GB, free: 9.594 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01001/0.4978, allocations: 6.08 MB / 0.4956 GB, free: 3.465 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002084/0.4999, allocations: 2.425 MB / 0.4979 GB, free: 1.008 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001511/0.5015, allocations: 494.6 kB / 0.4984 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004175/0.5019, allocations: 151.4 kB / 0.4985 GB, free: 384 kB / 414.1 MB Notification: Performance of SimCode: time 2.064e-06/0.5019, allocations: 0 / 0.4985 GB, free: 384 kB / 414.1 MB Notification: Performance of Templates: time 0.04809/0.55, allocations: 27.07 MB / 0.525 GB, free: 5.59 MB / 446.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 -s gbode -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