Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.is.1.|smeeE.is.2.|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.is.1.|smeeM.is.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.stray.port_p.Phi.im|smeeM.stator.stray.port_p.Phi.re",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001397/0.001397, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001756/0.001756, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 246.3 MB, free: 9.164 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001324, allocations: 63.39 kB / 306.3 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09842/0.09976, allocations: 50.53 MB / 356.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.19/0.2898, allocations: 24.41 MB / 381.2 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01332/0.3031, allocations: 7.321 MB / 388.5 MB, free: 3.883 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004505/0.3077, allocations: 140.5 kB / 388.7 MB, free: 3.852 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004274/0.312, allocations: 1.366 MB / 390 MB, free: 3.195 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006627/0.3187, allocations: 2.05 MB / 392.1 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003485/0.3222, allocations: 1.35 MB / 393.4 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01061/0.3328, allocations: 7.889 MB / 401.3 MB, free: 13 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007305/0.3401, allocations: 4.644 MB / 406 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005195/0.3454, allocations: 2.675 MB / 408.7 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007758/0.3532, allocations: 3.595 MB / 412.3 MB, free: 5.227 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002465/0.3557, allocations: 0.5117 MB / 412.8 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004172/0.3598, allocations: 0.9641 MB / 413.7 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002259/0.3621, allocations: 1.76 MB / 415.5 MB, free: 1.984 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006377/0.3685, allocations: 3.402 MB / 418.9 MB, free: 14.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01289/0.3814, allocations: 11.14 MB / 430 MB, free: 3.387 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.3815, allocations: 0 / 430 MB, free: 3.387 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3815, allocations: 0 / 430 MB, free: 3.387 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003192/0.3818, allocations: 0 / 430 MB, free: 3.387 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.02106/0.4029, allocations: 7.443 MB / 437.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.4029, allocations: 11.97 kB / 437.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007251/0.4102, allocations: 1.254 MB / 438.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00936/0.4196, allocations: 3.862 MB / 442.6 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004718/0.4201, allocations: 444.2 kB / 443 MB, free: 6.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001699/0.4218, allocations: 0.5622 MB / 443.6 MB, free: 5.656 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01624/0.438, allocations: 7.296 MB / 450.9 MB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001326/0.4382, allocations: 11.91 kB / 450.9 MB, free: 14.29 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006713/0.4389, allocations: 228 kB / 451.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002749/0.4392, allocations: 259.3 kB / 451.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01176/0.4509, allocations: 6.158 MB / 457.5 MB, free: 7.652 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04087/0.4918, allocations: 23.88 MB / 481.4 MB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008075/0.4999, allocations: 8.995 MB / 490.4 MB, free: 5.137 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003853/0.5038, allocations: 2.488 MB / 492.9 MB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01174/0.5156, allocations: 7.628 MB / 0.4888 GB, free: 10.64 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.184e-05/0.5157, allocations: 60.56 kB / 0.4889 GB, free: 10.58 MB / 414.1 MB Notification: Performance of pre-optimization done (n=238): time 3.857e-06/0.5157, allocations: 3.938 kB / 0.4889 GB, free: 10.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=282): time 0.03619/0.5519, allocations: 14.02 MB / 0.5026 GB, free: 12.33 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.658e-05/0.552, allocations: 81.59 kB / 0.5026 GB, free: 12.24 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00675/0.5587, allocations: 3.516 MB / 0.5061 GB, free: 8.738 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003235/0.5591, allocations: 73.7 kB / 0.5061 GB, free: 8.66 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001794/0.5609, allocations: 2.698 MB / 0.5088 GB, free: 5.934 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008208/0.5617, allocations: 0.955 MB / 0.5097 GB, free: 4.965 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009862/0.5627, allocations: 0.6411 MB / 0.5103 GB, free: 4.316 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.712e-05/0.5628, allocations: 301.1 kB / 0.5106 GB, free: 4.02 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002576/0.5654, allocations: 1.561 MB / 0.5121 GB, free: 2.457 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003336/0.5687, allocations: 2.763 MB / 0.5148 GB, free: 15.16 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006054/0.5748, allocations: 4.633 MB / 0.5194 GB, free: 9.957 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.816e-05/0.5748, allocations: 12 kB / 0.5194 GB, free: 9.945 MB / 446.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.009238/0.5841, allocations: 5.533 MB / 0.5248 GB, free: 4.305 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.492e-05/0.5841, allocations: 20.62 kB / 0.5248 GB, free: 4.285 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-05/0.5842, allocations: 36 kB / 0.5248 GB, free: 4.25 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001717/0.5859, allocations: 0.7114 MB / 0.5255 GB, free: 3.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00305/0.5889, allocations: 0.8502 MB / 0.5264 GB, free: 2.668 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1826/0.7716, allocations: 9.744 MB / 0.5359 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003631/0.7753, allocations: 226.2 kB / 0.5361 GB, free: 132.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003403/0.7756, allocations: 166.7 kB / 0.5362 GB, free: 132.1 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 174 * 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 (426): * Single equations (assignments): 416 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 4 systems {(3,12,100.0%), (1,6,100.0%), (2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003172/0.7788, allocations: 1.637 MB / 0.5378 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008486/0.7796, allocations: 393.4 kB / 0.5382 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007945/0.7876, allocations: 4.578 MB / 0.5427 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.667e-05/0.7877, allocations: 31.69 kB / 0.5427 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.8e-05/0.7877, allocations: 8.438 kB / 0.5427 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.178e-05/0.7877, allocations: 12.89 kB / 0.5427 GB, free: 129.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01681/0.8046, allocations: 10.05 MB / 0.5526 GB, free: 124.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.438e-05/0.8046, allocations: 9.188 kB / 0.5526 GB, free: 124.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00209/0.8067, allocations: 0.4934 MB / 0.553 GB, free: 124.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001833/0.8085, allocations: 0.7704 MB / 0.5538 GB, free: 124.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001872/0.8087, allocations: 71.45 kB / 0.5539 GB, free: 124.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01031/0.8191, allocations: 13.21 MB / 0.5668 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.8191, allocations: 3.719 kB / 0.5668 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009437/0.8285, allocations: 6.696 MB / 0.5733 GB, free: 111.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001891/0.8304, allocations: 0.7845 MB / 0.5741 GB, free: 110.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005556/0.831, allocations: 65.67 kB / 0.5741 GB, free: 110.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001875/0.8329, allocations: 163.4 kB / 0.5743 GB, free: 110.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004285/0.8333, allocations: 200.8 kB / 0.5745 GB, free: 110.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001677/0.8335, allocations: 89.7 kB / 0.5746 GB, free: 110.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003208/0.8367, allocations: 2.379 MB / 0.5769 GB, free: 109.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.8367, allocations: 0 / 0.5769 GB, free: 109.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003595/0.8403, allocations: 1.118 MB / 0.578 GB, free: 109.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (235): * Single equations (assignments): 225 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(2,13,100.0%), (1,5,100.0%), (1,8,100.0%), (3,12,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005737/0.8409, allocations: 294.3 kB / 0.5783 GB, free: 108.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006569/0.8475, allocations: 4.743 MB / 0.5829 GB, free: 104.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.8475, allocations: 0 / 0.5829 GB, free: 104.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003732/0.8513, allocations: 2.875 MB / 0.5857 GB, free: 101.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003935/0.8552, allocations: 0.8654 MB / 0.5865 GB, free: 100.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0143/0.8695, allocations: 13.01 MB / 0.5993 GB, free: 87.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002403/0.872, allocations: 3.515 MB / 0.6027 GB, free: 83.63 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002919/0.8749, allocations: 0.8523 MB / 0.6035 GB, free: 82.77 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007138/0.8756, allocations: 267.4 kB / 0.6038 GB, free: 82.51 MB / 446.1 MB Notification: Performance of SimCode: time 1.122e-06/0.8756, allocations: 0 / 0.6038 GB, free: 82.51 MB / 446.1 MB Notification: Performance of Templates: time 0.08051/0.9561, allocations: 52.84 MB / 0.6554 GB, free: 30.08 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches