Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009915/0.0009918, allocations: 89.59 kB / 16.65 MB, free: 6.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 182 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 223.3 MB / 241.6 MB, free: 124 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002762/0.0002762, allocations: 11.94 kB / 301.4 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08918/0.08947, allocations: 50.41 MB / 351.8 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.198/0.2875, allocations: 22.84 MB / 374.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01402/0.3016, allocations: 6.984 MB / 381.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003614/0.3052, allocations: 132.7 kB / 381.8 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004139/0.3094, allocations: 1.338 MB / 383.1 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007087/0.3165, allocations: 2.066 MB / 385.2 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00326/0.3198, allocations: 1.306 MB / 386.5 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01039/0.3302, allocations: 7.757 MB / 394.3 MB, free: 4.602 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005792/0.336, allocations: 4.594 MB / 398.9 MB, free: 2.309 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004793/0.3408, allocations: 2.318 MB / 401.2 MB, free: 1.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006687/0.3475, allocations: 3.144 MB / 404.3 MB, free: 15.15 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001737/0.3493, allocations: 364 kB / 404.7 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00432/0.3536, allocations: 0.8025 MB / 405.5 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001945/0.3556, allocations: 1.516 MB / 407 MB, free: 12.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006835/0.3624, allocations: 3.124 MB / 410.1 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0133/0.3757, allocations: 10.75 MB / 420.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.3758, allocations: 0 / 420.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3758, allocations: 0 / 420.9 MB, free: 14.87 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003267/0.3761, allocations: 0 / 420.9 MB, free: 14.87 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.01684/0.393, allocations: 6.245 MB / 427.1 MB, free: 8.566 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.393, allocations: 12.03 kB / 427.1 MB, free: 8.555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007347/0.4004, allocations: 1.225 MB / 428.3 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009858/0.4103, allocations: 3.833 MB / 432.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006197/0.4109, allocations: 445.4 kB / 432.6 MB, free: 3.047 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002055/0.413, allocations: 0.5566 MB / 433.2 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01983/0.4329, allocations: 7.329 MB / 440.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002835/0.4332, allocations: 15.84 kB / 440.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00143/0.4346, allocations: 230.1 kB / 440.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003912/0.435, allocations: 263.3 kB / 441 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01447/0.4495, allocations: 6.197 MB / 447.2 MB, free: 4.422 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04677/0.4963, allocations: 23.95 MB / 471.1 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009486/0.5058, allocations: 8.759 MB / 479.9 MB, free: 2.336 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004456/0.5103, allocations: 2.435 MB / 482.3 MB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01404/0.5244, allocations: 7.029 MB / 489.4 MB, free: 8.719 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.109e-05/0.5245, allocations: 60.56 kB / 489.4 MB, free: 8.652 MB / 398.1 MB Notification: Performance of pre-optimization done (n=238): time 4.709e-06/0.5245, allocations: 0 / 489.4 MB, free: 8.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=282): time 0.03894/0.5634, allocations: 14.52 MB / 0.4921 GB, free: 9.93 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.299e-05/0.5635, allocations: 89.53 kB / 0.4922 GB, free: 9.828 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007419/0.571, allocations: 3.486 MB / 0.4956 GB, free: 6.355 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004931/0.5715, allocations: 69.7 kB / 0.4957 GB, free: 6.281 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002125/0.5736, allocations: 2.676 MB / 0.4983 GB, free: 3.586 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001024/0.5747, allocations: 0.9638 MB / 0.4993 GB, free: 2.629 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000384/0.5751, allocations: 291.5 kB / 0.4995 GB, free: 2.34 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.383e-05/0.5752, allocations: 305.1 kB / 0.4998 GB, free: 2.039 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002809/0.578, allocations: 1.596 MB / 0.5014 GB, free: 452 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003729/0.5817, allocations: 2.802 MB / 0.5041 GB, free: 13.11 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006939/0.5887, allocations: 4.684 MB / 0.5087 GB, free: 7.852 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.003e-05/0.5887, allocations: 12 kB / 0.5087 GB, free: 7.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.01002/0.5988, allocations: 5.576 MB / 0.5141 GB, free: 2.16 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.787e-05/0.5988, allocations: 20 kB / 0.5142 GB, free: 2.141 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.4e-05/0.5989, allocations: 43.94 kB / 0.5142 GB, free: 2.098 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001704/0.6006, allocations: 0.6882 MB / 0.5149 GB, free: 1.395 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003262/0.6039, allocations: 0.8736 MB / 0.5157 GB, free: 0.5195 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01136/0.6153, allocations: 9.613 MB / 0.5251 GB, free: 6.375 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003657/0.619, allocations: 239.6 kB / 0.5253 GB, free: 6.141 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004703/0.6194, allocations: 168 kB / 0.5255 GB, free: 5.977 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 (429): * Single equations (assignments): 419 * 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,3,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.003348/0.6228, allocations: 1.617 MB / 0.5271 GB, free: 4.348 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009468/0.6238, allocations: 391.3 kB / 0.5275 GB, free: 3.961 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2138/0.8376, allocations: 4.61 MB / 0.532 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.077e-05/0.8377, allocations: 31.8 kB / 0.532 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.034e-05/0.8377, allocations: 8.781 kB / 0.532 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.738e-05/0.8378, allocations: 13.64 kB / 0.532 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01787/0.8556, allocations: 10.08 MB / 0.5419 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-05/0.8557, allocations: 6.047 kB / 0.5419 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002228/0.8579, allocations: 0.5152 MB / 0.5424 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001908/0.8598, allocations: 0.7576 MB / 0.5431 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002191/0.8601, allocations: 72.39 kB / 0.5432 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01075/0.8708, allocations: 13.04 MB / 0.5559 GB, free: 126.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.947e-06/0.8709, allocations: 6.141 kB / 0.5559 GB, free: 126.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01081/0.8817, allocations: 6.761 MB / 0.5625 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001861/0.8836, allocations: 0.7918 MB / 0.5633 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006292/0.8842, allocations: 72.86 kB / 0.5634 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001979/0.8862, allocations: 186.1 kB / 0.5635 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004294/0.8866, allocations: 211.2 kB / 0.5637 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001838/0.8868, allocations: 85.42 kB / 0.5638 GB, free: 122.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003239/0.8901, allocations: 2.355 MB / 0.5661 GB, free: 122.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.8901, allocations: 0 / 0.5661 GB, free: 122.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003513/0.8936, allocations: 1.105 MB / 0.5672 GB, free: 122 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 (238): * Single equations (assignments): 228 * 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,3,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.00056/0.8942, allocations: 283 kB / 0.5675 GB, free: 121.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006569/0.9008, allocations: 4.78 MB / 0.5721 GB, free: 119.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/0.9008, allocations: 1 kB / 0.5721 GB, free: 119.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003954/0.9047, allocations: 2.89 MB / 0.575 GB, free: 118.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006579/0.9113, allocations: 0.8623 MB / 0.5758 GB, free: 117.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01464/0.926, allocations: 13.16 MB / 0.5887 GB, free: 105.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00254/0.9286, allocations: 3.507 MB / 0.5921 GB, free: 101.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00286/0.9314, allocations: 0.8599 MB / 0.5929 GB, free: 100.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007274/0.9322, allocations: 259.4 kB / 0.5932 GB, free: 100.5 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.9322, allocations: 3.828 kB / 0.5932 GB, free: 100.5 MB / 446.1 MB Notification: Performance of Templates: time 0.0751/1.007, allocations: 51.76 MB / 0.6437 GB, free: 49.25 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches