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.001072/0.001072, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001204/0.001204, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 64.55 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1177, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.2447/0.3625, allocations: 16.5 MB / 375.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01284/0.3754, allocations: 5.638 MB / 381 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004508/0.3799, allocations: 105.3 kB / 381.2 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0046/0.3845, allocations: 1.136 MB / 382.3 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006149/0.3907, allocations: 1.318 MB / 383.6 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003563/0.3943, allocations: 0.9872 MB / 384.6 MB, free: 8.141 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007698/0.402, allocations: 4.005 MB / 388.6 MB, free: 6.125 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008864/0.4109, allocations: 3.618 MB / 392.2 MB, free: 4.609 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004531/0.4155, allocations: 1.891 MB / 394.1 MB, free: 3.699 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005219/0.4207, allocations: 2.344 MB / 396.5 MB, free: 2.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00213/0.4229, allocations: 0.5159 MB / 397 MB, free: 2.633 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003841/0.4268, allocations: 0.7677 MB / 397.7 MB, free: 2.543 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001261/0.428, allocations: 1.292 MB / 399 MB, free: 1.609 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002654/0.4307, allocations: 2.264 MB / 401.3 MB, free: 15.95 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008548/0.4393, allocations: 6.928 MB / 408.2 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.089e-05/0.4393, allocations: 0 / 408.2 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.208e-06/0.4393, allocations: 0 / 408.2 MB, free: 10.54 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003342/0.4397, allocations: 0 / 408.2 MB, free: 10.54 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.01404/0.4537, allocations: 4.7 MB / 412.9 MB, free: 5.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/0.4538, allocations: 8.031 kB / 412.9 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003007/0.4568, allocations: 0.683 MB / 413.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004767/0.4616, allocations: 2.541 MB / 416.2 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001916/0.4618, allocations: 255.3 kB / 416.4 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000478/0.4623, allocations: 356.2 kB / 416.7 MB, free: 1.883 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00781/0.4701, allocations: 4.46 MB / 421.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.248e-05/0.4702, allocations: 4 kB / 421.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003067/0.4705, allocations: 144 kB / 421.4 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000166/0.4707, allocations: 166.8 kB / 421.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006557/0.4773, allocations: 3.747 MB / 425.3 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02307/0.5004, allocations: 14.47 MB / 439.7 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005273/0.5057, allocations: 5.62 MB / 445.4 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002573/0.5083, allocations: 1.575 MB / 446.9 MB, free: 2.414 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007488/0.5158, allocations: 4.203 MB / 451.1 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.737e-05/0.5159, allocations: 47.88 kB / 451.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of pre-optimization done (n=128): time 3.447e-06/0.5159, allocations: 0 / 451.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=132): time 0.0103/0.5262, allocations: 5.667 MB / 456.8 MB, free: 8.188 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/0.5263, allocations: 68.72 kB / 456.9 MB, free: 8.105 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003378/0.5297, allocations: 2.118 MB / 459 MB, free: 5.953 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001101/0.5298, allocations: 45.7 kB / 459.1 MB, free: 5.902 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001597/0.5314, allocations: 1.669 MB / 460.7 MB, free: 4.215 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004959/0.5319, allocations: 465.3 kB / 461.2 MB, free: 3.754 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000635/0.5326, allocations: 331.2 kB / 461.5 MB, free: 3.426 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.5328, allocations: 301.1 kB / 461.8 MB, free: 3.129 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001204/0.534, allocations: 0.7301 MB / 462.5 MB, free: 2.398 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001956/0.5359, allocations: 1.368 MB / 463.9 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002844/0.5388, allocations: 2.25 MB / 466.2 MB, free: 14.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.718e-06/0.5388, allocations: 4 kB / 466.2 MB, free: 14.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.00417/0.543, allocations: 2.6 MB / 468.8 MB, free: 11.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.194e-05/0.543, allocations: 20.48 kB / 468.8 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.73e-05/0.5431, allocations: 24 kB / 468.8 MB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004919/0.5436, allocations: 182.4 kB / 469 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001555/0.5451, allocations: 459.3 kB / 469.4 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003382/0.5485, allocations: 3.785 MB / 473.2 MB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001866/0.5504, allocations: 119.8 kB / 473.3 MB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/0.5506, allocations: 79.98 kB / 473.4 MB, free: 6.629 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.00198/0.5525, allocations: 1.052 MB / 474.5 MB, free: 5.566 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004816/0.553, allocations: 217.3 kB / 474.7 MB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003726/0.5568, allocations: 2.275 MB / 477 MB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.338e-05/0.5568, allocations: 15.94 kB / 477 MB, free: 3.004 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.5568, allocations: 8 kB / 477 MB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/0.5568, allocations: 11.95 kB / 477 MB, free: 2.984 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008855/0.5657, allocations: 5.296 MB / 482.3 MB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.5658, allocations: 4.031 kB / 482.3 MB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009795/0.5667, allocations: 227.6 kB / 482.5 MB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000786/0.5675, allocations: 315.1 kB / 482.8 MB, free: 13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.414e-05/0.5676, allocations: 31.98 kB / 482.9 MB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007896/0.5755, allocations: 8.238 MB / 491.1 MB, free: 4.156 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.902e-06/0.5756, allocations: 8.031 kB / 491.1 MB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00521/0.5808, allocations: 3.278 MB / 494.4 MB, free: 0.7812 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001389/0.5822, allocations: 462.2 kB / 494.8 MB, free: 316 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002762/0.5825, allocations: 24 kB / 494.8 MB, free: 292 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009615/0.5835, allocations: 71.92 kB / 494.9 MB, free: 220 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002313/0.5837, allocations: 97.06 kB / 495 MB, free: 120 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.393e-05/0.5838, allocations: 39.98 kB / 495.1 MB, free: 80 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002275/0.5861, allocations: 1.443 MB / 496.5 MB, free: 14.61 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5861, allocations: 0 / 496.5 MB, free: 14.61 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002199/0.5883, allocations: 0.5625 MB / 497.1 MB, free: 14.05 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.0003721/0.5887, allocations: 171 kB / 497.2 MB, free: 13.88 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003404/0.5921, allocations: 2.157 MB / 499.4 MB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.5921, allocations: 1.875 kB / 499.4 MB, free: 11.68 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002063/0.5942, allocations: 1.416 MB / 0.4891 GB, free: 10.21 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002748/0.597, allocations: 0.5746 MB / 0.4896 GB, free: 9.648 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0113/0.6083, allocations: 6.076 MB / 0.4956 GB, free: 3.52 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002445/0.6108, allocations: 2.422 MB / 0.4979 GB, free: 1.066 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001778/0.6126, allocations: 494.5 kB / 0.4984 GB, free: 0.582 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004279/0.613, allocations: 155.4 kB / 0.4985 GB, free: 440 kB / 414.1 MB Notification: Performance of SimCode: time 9.92e-07/0.613, allocations: 0 / 0.4985 GB, free: 440 kB / 414.1 MB Notification: Performance of Templates: time 0.05203/0.665, allocations: 27.05 MB / 0.525 GB, free: 5.656 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 cvode -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