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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001358/0.001358, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.344/1.344, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009567/0.0009566, allocations: 96.53 kB / 296.7 MB, free: 6.484 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008863/0.0008864, allocations: 51.92 kB / 356.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.197/0.1979, allocations: 50.45 MB / 407.1 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource): time 0.01281/0.2108, allocations: 16.28 MB / 423.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008172/0.219, allocations: 5.556 MB / 428.9 MB, free: 5.887 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002549/0.2216, allocations: 103.6 kB / 429 MB, free: 5.785 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00267/0.2243, allocations: 0.9831 MB / 430 MB, free: 4.797 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003442/0.2277, allocations: 1.189 MB / 431.2 MB, free: 3.602 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001866/0.2296, allocations: 0.91 MB / 432.1 MB, free: 2.695 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004375/0.234, allocations: 4.182 MB / 436.3 MB, free: 14.5 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00377/0.2378, allocations: 3.053 MB / 439.3 MB, free: 11.38 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00248/0.2403, allocations: 1.592 MB / 440.9 MB, free: 9.777 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002971/0.2433, allocations: 2.132 MB / 443 MB, free: 7.637 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007031/0.244, allocations: 312 kB / 443.3 MB, free: 7.332 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001465/0.2455, allocations: 0.5622 MB / 443.9 MB, free: 6.77 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001019/0.2465, allocations: 1.075 MB / 445 MB, free: 5.691 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002901/0.2495, allocations: 2.029 MB / 447 MB, free: 3.652 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006692/0.2562, allocations: 6.698 MB / 453.7 MB, free: 12.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.2562, allocations: 0 / 453.7 MB, free: 12.93 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.2562, allocations: 0 / 453.7 MB, free: 12.93 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002029/0.2564, allocations: 0 / 453.7 MB, free: 12.93 MB / 330.7 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.01125/0.2677, allocations: 4.685 MB / 458.4 MB, free: 8.172 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.2678, allocations: 8.031 kB / 458.4 MB, free: 8.164 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002904/0.2707, allocations: 0.6792 MB / 459.1 MB, free: 7.48 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004596/0.2753, allocations: 2.455 MB / 461.5 MB, free: 4.973 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000201/0.2755, allocations: 267.4 kB / 461.8 MB, free: 4.711 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005085/0.276, allocations: 351.8 kB / 462.1 MB, free: 4.367 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006879/0.2829, allocations: 4.468 MB / 466.6 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.591e-05/0.283, allocations: 0 / 466.6 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002854/0.2833, allocations: 143.9 kB / 466.8 MB, free: 15.7 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001411/0.2835, allocations: 162.8 kB / 466.9 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006228/0.2897, allocations: 3.747 MB / 470.7 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02569/0.3154, allocations: 14.66 MB / 485.3 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005638/0.3211, allocations: 5.622 MB / 490.9 MB, free: 6.305 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002798/0.3239, allocations: 1.567 MB / 492.5 MB, free: 4.734 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007326/0.3313, allocations: 4.214 MB / 496.7 MB, free: 388 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.521e-05/0.3314, allocations: 51.81 kB / 496.8 MB, free: 328 kB / 362.7 MB Notification: Performance of pre-optimization done (n=128): time 3.246e-06/0.3314, allocations: 0 / 496.8 MB, free: 328 kB / 362.7 MB Notification: Performance of matching and sorting (n=132): time 0.00984/0.3412, allocations: 5.663 MB / 0.4907 GB, free: 10.49 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.686e-05/0.3413, allocations: 68.66 kB / 0.4907 GB, free: 10.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003515/0.3448, allocations: 2.118 MB / 0.4928 GB, free: 8.258 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001871/0.345, allocations: 53.7 kB / 0.4928 GB, free: 8.199 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00128/0.3463, allocations: 1.653 MB / 0.4945 GB, free: 6.527 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005256/0.3469, allocations: 461.4 kB / 0.4949 GB, free: 6.07 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006444/0.3475, allocations: 335.2 kB / 0.4952 GB, free: 5.738 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.3476, allocations: 301.1 kB / 0.4955 GB, free: 5.441 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001206/0.3488, allocations: 0.7301 MB / 0.4962 GB, free: 4.711 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001691/0.3505, allocations: 1.368 MB / 0.4975 GB, free: 3.055 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002867/0.3534, allocations: 2.25 MB / 0.4997 GB, free: 0.5234 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-05/0.3534, allocations: 4 kB / 0.4997 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.1696/0.5231, allocations: 2.596 MB / 0.5023 GB, free: 88.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.96e-05/0.5231, allocations: 19.17 kB / 0.5023 GB, free: 88.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.742e-05/0.5231, allocations: 19.78 kB / 0.5023 GB, free: 88.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004544/0.5236, allocations: 190 kB / 0.5025 GB, free: 88.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00154/0.5252, allocations: 459.6 kB / 0.5029 GB, free: 88.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002374/0.5275, allocations: 3.514 MB / 0.5064 GB, free: 85.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001478/0.529, allocations: 113.3 kB / 0.5065 GB, free: 85.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001334/0.5292, allocations: 87.86 kB / 0.5066 GB, free: 85.36 MB / 378.7 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.001466/0.5307, allocations: 1.063 MB / 0.5076 GB, free: 84.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003158/0.531, allocations: 214.9 kB / 0.5078 GB, free: 84.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003143/0.5341, allocations: 2.275 MB / 0.51 GB, free: 83.71 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.276e-06/0.5342, allocations: 11.88 kB / 0.51 GB, free: 83.71 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.5342, allocations: 7.906 kB / 0.51 GB, free: 83.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.5342, allocations: 6.938 kB / 0.5101 GB, free: 83.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00719/0.5414, allocations: 5.291 MB / 0.5152 GB, free: 81.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.582e-06/0.5414, allocations: 3.938 kB / 0.5152 GB, free: 81.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009076/0.5423, allocations: 225 kB / 0.5154 GB, free: 81.31 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007129/0.543, allocations: 320.8 kB / 0.5157 GB, free: 81.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.695e-05/0.5431, allocations: 31.84 kB / 0.5158 GB, free: 81.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004935/0.5481, allocations: 7.55 MB / 0.5231 GB, free: 74.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.5481, allocations: 0 / 0.5231 GB, free: 74.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02425/0.5723, allocations: 22.51 MB / 0.5451 GB, free: 52.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007253/0.5731, allocations: 462.3 kB / 0.5456 GB, free: 52.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002324/0.5734, allocations: 31.94 kB / 0.5456 GB, free: 52.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009198/0.5743, allocations: 71.97 kB / 0.5457 GB, free: 52.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/0.5745, allocations: 93.11 kB / 0.5458 GB, free: 52.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.082e-05/0.5746, allocations: 39.98 kB / 0.5458 GB, free: 52.05 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001666/0.5762, allocations: 1.443 MB / 0.5472 GB, free: 50.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5762, allocations: 0 / 0.5472 GB, free: 50.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002239/0.5785, allocations: 0.7749 MB / 0.548 GB, free: 49.82 MB / 378.7 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.0002913/0.5788, allocations: 180.6 kB / 0.5481 GB, free: 49.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002499/0.5813, allocations: 2.149 MB / 0.5502 GB, free: 47.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.5813, allocations: 0 / 0.5502 GB, free: 47.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001533/0.5829, allocations: 1.413 MB / 0.5516 GB, free: 45.99 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002141/0.585, allocations: 0.5273 MB / 0.5521 GB, free: 45.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009295/0.5943, allocations: 9.115 MB / 0.561 GB, free: 36.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001584/0.5959, allocations: 2.461 MB / 0.5634 GB, free: 33.78 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001583/0.5975, allocations: 0.5025 MB / 0.5639 GB, free: 33.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004437/0.598, allocations: 167.4 kB / 0.5641 GB, free: 33.11 MB / 378.7 MB Notification: Performance of SimCode: time 4.51e-07/0.598, allocations: 2.516 kB / 0.5641 GB, free: 33.11 MB / 378.7 MB Notification: Performance of Templates: time 0.04603/0.644, allocations: 33.01 MB / 0.5963 GB, free: 388 kB / 378.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches