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.001577/0.001577, allocations: 109.4 kB / 17.98 MB, free: 5.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001605/0.001605, allocations: 201.8 kB / 18.92 MB, free: 4.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 247.1 MB, free: 10.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 63.61 kB / 307.2 MB, free: 0.8984 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1021, allocations: 50.54 MB / 357.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.1923/0.2945, allocations: 24.41 MB / 382.1 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01446/0.309, allocations: 7.281 MB / 389.4 MB, free: 4.035 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005943/0.315, allocations: 139.6 kB / 389.5 MB, free: 4.004 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005694/0.3207, allocations: 1.369 MB / 390.9 MB, free: 3.348 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009224/0.33, allocations: 2.021 MB / 392.9 MB, free: 2.039 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004831/0.3349, allocations: 1.356 MB / 394.3 MB, free: 1.121 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01238/0.3473, allocations: 7.426 MB / 401.7 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01138/0.3587, allocations: 5.563 MB / 407.3 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007083/0.3658, allocations: 3.11 MB / 410.4 MB, free: 7.977 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007833/0.3737, allocations: 3.841 MB / 414.2 MB, free: 4.121 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003077/0.3768, allocations: 0.8672 MB / 415.1 MB, free: 3.254 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005197/0.382, allocations: 1.308 MB / 416.4 MB, free: 1.945 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004143/0.3862, allocations: 2.123 MB / 418.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008979/0.3952, allocations: 3.784 MB / 422.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01463/0.4099, allocations: 9.657 MB / 431.9 MB, free: 2.336 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.019e-05/0.41, allocations: 0 / 431.9 MB, free: 2.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.069e-06/0.41, allocations: 4 kB / 432 MB, free: 2.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003682/0.4104, allocations: 0 / 432 MB, free: 2.332 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.02375/0.4341, allocations: 7.45 MB / 439.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.642e-05/0.4342, allocations: 12.03 kB / 439.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007772/0.442, allocations: 1.242 MB / 440.7 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0101/0.4521, allocations: 3.865 MB / 444.5 MB, free: 5.598 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006124/0.4528, allocations: 440.2 kB / 445 MB, free: 5.168 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002081/0.4549, allocations: 0.5661 MB / 445.5 MB, free: 4.602 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02142/0.4763, allocations: 7.3 MB / 452.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002868/0.4767, allocations: 7.906 kB / 452.8 MB, free: 13.24 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001628/0.4783, allocations: 232 kB / 453 MB, free: 13.01 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003893/0.4787, allocations: 263.2 kB / 453.3 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01617/0.4949, allocations: 6.158 MB / 459.5 MB, free: 6.59 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04807/0.543, allocations: 23.89 MB / 483.4 MB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01018/0.5532, allocations: 9.01 MB / 492.4 MB, free: 4.051 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004836/0.5581, allocations: 2.484 MB / 494.8 MB, free: 1.551 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01422/0.5723, allocations: 7.632 MB / 0.4907 GB, free: 9.559 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.56e-05/0.5724, allocations: 60.56 kB / 0.4908 GB, free: 9.492 MB / 414.1 MB Notification: Performance of pre-optimization done (n=238): time 5.481e-06/0.5725, allocations: 0 / 0.4908 GB, free: 9.492 MB / 414.1 MB Notification: Performance of matching and sorting (n=282): time 0.03602/0.6085, allocations: 14.06 MB / 0.5045 GB, free: 11.22 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.998e-05/0.6086, allocations: 77.59 kB / 0.5046 GB, free: 11.13 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006041/0.6146, allocations: 3.512 MB / 0.508 GB, free: 7.633 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005629/0.6152, allocations: 73.7 kB / 0.5081 GB, free: 7.555 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002284/0.6175, allocations: 2.702 MB / 0.5107 GB, free: 4.824 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0013/0.6188, allocations: 0.9666 MB / 0.5116 GB, free: 3.844 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001135/0.62, allocations: 0.6372 MB / 0.5123 GB, free: 3.199 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.6201, allocations: 301.1 kB / 0.5126 GB, free: 2.902 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002976/0.6231, allocations: 1.569 MB / 0.5141 GB, free: 1.332 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00411/0.6273, allocations: 2.759 MB / 0.5168 GB, free: 14.04 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007753/0.635, allocations: 4.629 MB / 0.5213 GB, free: 8.836 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.644e-05/0.6351, allocations: 16 kB / 0.5213 GB, free: 8.82 MB / 446.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.01152/0.6467, allocations: 5.549 MB / 0.5267 GB, free: 3.168 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.639e-05/0.6468, allocations: 20 kB / 0.5267 GB, free: 3.148 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.648e-05/0.6468, allocations: 40 kB / 0.5268 GB, free: 3.109 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001899/0.6487, allocations: 0.7069 MB / 0.5275 GB, free: 2.387 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00372/0.6525, allocations: 0.858 MB / 0.5283 GB, free: 1.527 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.218/0.8705, allocations: 10.64 MB / 0.5387 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003997/0.8746, allocations: 227.4 kB / 0.5389 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005965/0.8752, allocations: 165.5 kB / 0.5391 GB, free: 130.5 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.00366/0.8789, allocations: 1.626 MB / 0.5407 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001229/0.8801, allocations: 394.4 kB / 0.541 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008888/0.889, allocations: 4.571 MB / 0.5455 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.768e-05/0.8891, allocations: 31.09 kB / 0.5455 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.103e-05/0.8892, allocations: 8.5 kB / 0.5455 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.055e-05/0.8892, allocations: 14.36 kB / 0.5456 GB, free: 127.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01822/0.9074, allocations: 10.07 MB / 0.5554 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.766e-05/0.9075, allocations: 7.906 kB / 0.5554 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002081/0.9096, allocations: 0.4966 MB / 0.5559 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001872/0.9115, allocations: 0.7767 MB / 0.5566 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002788/0.9118, allocations: 71.16 kB / 0.5567 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01067/0.9224, allocations: 14.43 MB / 0.5708 GB, free: 111.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/0.9225, allocations: 23.34 kB / 0.5708 GB, free: 111.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009819/0.9323, allocations: 6.684 MB / 0.5774 GB, free: 108.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001976/0.9343, allocations: 0.7905 MB / 0.5781 GB, free: 108.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008515/0.9352, allocations: 59.08 kB / 0.5782 GB, free: 108 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002293/0.9375, allocations: 164.9 kB / 0.5783 GB, free: 108 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005148/0.938, allocations: 208.2 kB / 0.5785 GB, free: 107.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001866/0.9382, allocations: 87.69 kB / 0.5786 GB, free: 107.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00336/0.9416, allocations: 2.379 MB / 0.5809 GB, free: 106.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.9416, allocations: 0 / 0.5809 GB, free: 106.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004446/0.9461, allocations: 1.116 MB / 0.582 GB, free: 105.7 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.0007791/0.9469, allocations: 295.8 kB / 0.5823 GB, free: 105.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01319/0.9601, allocations: 6.707 MB / 0.5889 GB, free: 98.65 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/0.9601, allocations: 5.312 kB / 0.5889 GB, free: 98.64 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004324/0.9645, allocations: 2.877 MB / 0.5917 GB, free: 95.69 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005062/0.9696, allocations: 0.9189 MB / 0.5926 GB, free: 94.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01804/0.9876, allocations: 13 MB / 0.6053 GB, free: 81.74 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002687/0.9904, allocations: 3.435 MB / 0.6086 GB, free: 78.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001341/0.9917, allocations: 295.4 kB / 0.6089 GB, free: 77.98 MB / 446.1 MB Notification: Performance of SimCode: time 8.72e-07/0.9917, allocations: 0 / 0.6089 GB, free: 77.98 MB / 446.1 MB Notification: Performance of Templates: time 0.376/1.368, allocations: 240.8 MB / 0.8441 GB, free: 21.18 MB / 462.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/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