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.0008567/0.0008609, allocations: 102.7 kB / 17 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009384/0.0009383, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.7 MB / 246.4 MB, free: 9.812 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001956/0.0001956, allocations: 4 kB / 307.1 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09026/0.09047, allocations: 51.53 MB / 358.7 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.1858/0.2763, allocations: 21.86 MB / 380.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01193/0.2882, allocations: 6.93 MB / 387.4 MB, free: 5.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004945/0.2932, allocations: 136.4 kB / 387.6 MB, free: 5.898 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003996/0.2972, allocations: 1.186 MB / 388.8 MB, free: 5.336 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006664/0.3039, allocations: 1.872 MB / 390.6 MB, free: 4.152 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003693/0.3076, allocations: 0.9875 MB / 391.6 MB, free: 3.57 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01028/0.3179, allocations: 7.291 MB / 398.9 MB, free: 15.87 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005622/0.3236, allocations: 3.743 MB / 402.7 MB, free: 13.92 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003768/0.3274, allocations: 2.29 MB / 404.9 MB, free: 12.71 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003918/0.3313, allocations: 3.031 MB / 408 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006772/0.332, allocations: 360 kB / 408.3 MB, free: 10.44 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001861/0.3338, allocations: 0.7182 MB / 409 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00129/0.3352, allocations: 1.503 MB / 410.5 MB, free: 8.215 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001364/0.3365, allocations: 1.276 MB / 411.8 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007796/0.3443, allocations: 9.302 MB / 421.1 MB, free: 13.6 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.3444, allocations: 0 / 421.1 MB, free: 13.6 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3444, allocations: 0 / 421.1 MB, free: 13.6 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001947/0.3446, allocations: 0 / 421.1 MB, free: 13.6 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.01378/0.3583, allocations: 6.364 MB / 427.5 MB, free: 7.156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.3584, allocations: 8.031 kB / 427.5 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006043/0.3644, allocations: 1.265 MB / 428.8 MB, free: 5.875 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007152/0.3716, allocations: 3.761 MB / 432.5 MB, free: 2.043 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003499/0.372, allocations: 443.4 kB / 433 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008728/0.3729, allocations: 0.5507 MB / 433.5 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01287/0.3857, allocations: 7.28 MB / 440.8 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001088/0.3859, allocations: 7.906 kB / 440.8 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004903/0.3864, allocations: 236 kB / 441 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002477/0.3866, allocations: 263.3 kB / 441.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01083/0.3975, allocations: 6.15 MB / 447.4 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03612/0.4336, allocations: 24.02 MB / 471.5 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008027/0.4417, allocations: 9.01 MB / 480.5 MB, free: 404 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003881/0.4456, allocations: 2.512 MB / 483 MB, free: 13.87 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01177/0.4574, allocations: 7.636 MB / 490.6 MB, free: 5.871 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.298e-05/0.4575, allocations: 64.5 kB / 490.7 MB, free: 5.801 MB / 398.1 MB Notification: Performance of pre-optimization done (n=238): time 4.017e-06/0.4575, allocations: 0 / 490.7 MB, free: 5.801 MB / 398.1 MB Notification: Performance of matching and sorting (n=282): time 0.033/0.4905, allocations: 14.65 MB / 0.4935 GB, free: 6.941 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.327e-05/0.4906, allocations: 81.58 kB / 0.4936 GB, free: 6.848 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004993/0.4956, allocations: 3.485 MB / 0.497 GB, free: 3.379 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000239/0.4958, allocations: 69.7 kB / 0.497 GB, free: 3.305 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001779/0.4976, allocations: 2.69 MB / 0.4997 GB, free: 0.582 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000796/0.4984, allocations: 0.9705 MB / 0.5006 GB, free: 15.6 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001979/0.4986, allocations: 72 kB / 0.5007 GB, free: 15.53 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002346/0.4989, allocations: 453.8 kB / 0.5011 GB, free: 15.08 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002533/0.5014, allocations: 1.577 MB / 0.5026 GB, free: 13.5 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003148/0.5046, allocations: 2.782 MB / 0.5054 GB, free: 10.18 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003116/0.5077, allocations: 2.039 MB / 0.5074 GB, free: 8.125 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.72e-05/0.5077, allocations: 19.95 kB / 0.5074 GB, free: 8.105 MB / 430.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.009135/0.5169, allocations: 5.565 MB / 0.5128 GB, free: 2.434 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.274e-05/0.517, allocations: 32.06 kB / 0.5128 GB, free: 2.402 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000106/0.5171, allocations: 36 kB / 0.5129 GB, free: 2.367 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001671/0.5188, allocations: 0.7099 MB / 0.5136 GB, free: 1.641 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003259/0.522, allocations: 0.8658 MB / 0.5144 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01047/0.5325, allocations: 9.744 MB / 0.5239 GB, free: 6.492 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003182/0.5357, allocations: 239.7 kB / 0.5242 GB, free: 6.258 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003254/0.5361, allocations: 168 kB / 0.5243 GB, free: 6.094 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 (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 12,(1,100.0%) 6,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003022/0.5391, allocations: 1.621 MB / 0.5259 GB, free: 4.461 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007484/0.5398, allocations: 399.2 kB / 0.5263 GB, free: 4.066 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1809/0.7207, allocations: 4.624 MB / 0.5308 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-05/0.7208, allocations: 32.98 kB / 0.5308 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.23e-05/0.7209, allocations: 11.41 kB / 0.5308 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.636e-05/0.7209, allocations: 14.33 kB / 0.5309 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01656/0.7375, allocations: 10.09 MB / 0.5407 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.401e-05/0.7376, allocations: 5.469 kB / 0.5407 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002184/0.7397, allocations: 0.5083 MB / 0.5412 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001906/0.7417, allocations: 0.767 MB / 0.542 GB, free: 131.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001864/0.7419, allocations: 70.83 kB / 0.542 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01038/0.7523, allocations: 13.19 MB / 0.5549 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.7523, allocations: 5.5 kB / 0.5549 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009242/0.7615, allocations: 6.759 MB / 0.5615 GB, free: 117.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001644/0.7632, allocations: 0.783 MB / 0.5623 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004957/0.7637, allocations: 63.72 kB / 0.5623 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001729/0.7654, allocations: 192.6 kB / 0.5625 GB, free: 117.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003719/0.7658, allocations: 216.2 kB / 0.5627 GB, free: 117.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001727/0.766, allocations: 84.06 kB / 0.5628 GB, free: 117.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003165/0.7692, allocations: 2.35 MB / 0.5651 GB, free: 116.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.7692, allocations: 0 / 0.5651 GB, free: 116.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003249/0.7724, allocations: 1.121 MB / 0.5662 GB, free: 116.5 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 (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(3,100.0%) 12,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004842/0.7729, allocations: 250.2 kB / 0.5664 GB, free: 116.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006208/0.7792, allocations: 4.777 MB / 0.5711 GB, free: 114.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.7792, allocations: 1 kB / 0.5711 GB, free: 114.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003773/0.783, allocations: 2.9 MB / 0.5739 GB, free: 112.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003773/0.7867, allocations: 0.8822 MB / 0.5748 GB, free: 112.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01436/0.8011, allocations: 12.56 MB / 0.5871 GB, free: 100.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002434/0.8036, allocations: 3.515 MB / 0.5905 GB, free: 97.12 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002867/0.8065, allocations: 0.8601 MB / 0.5913 GB, free: 96.26 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007169/0.8072, allocations: 255.4 kB / 0.5916 GB, free: 96.01 MB / 446.1 MB Notification: Performance of SimCode: time 8.21e-07/0.8072, allocations: 0 / 0.5916 GB, free: 96.01 MB / 446.1 MB Notification: Performance of Templates: time 0.07168/0.8789, allocations: 50.88 MB / 0.6413 GB, free: 45.57 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