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.0008252/0.0008251, allocations: 96.11 kB / 18 MB, free: 5.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009323/0.0009322, allocations: 200.4 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.536/1.536, allocations: 227.7 MB / 247.5 MB, free: 9.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002624/0.0002624, allocations: 4 kB / 308.4 MB, free: 0.5781 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1038, allocations: 51.52 MB / 359.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.215/0.3188, allocations: 23.46 MB / 383.4 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01327/0.3322, allocations: 7.217 MB / 390.6 MB, free: 4.262 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005011/0.3372, allocations: 135.8 kB / 390.7 MB, free: 4.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005438/0.3427, allocations: 1.367 MB / 392.1 MB, free: 3.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009049/0.3518, allocations: 2.037 MB / 394.1 MB, free: 2.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004112/0.3559, allocations: 1.347 MB / 395.5 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0122/0.3681, allocations: 7.874 MB / 403.4 MB, free: 13.32 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007891/0.376, allocations: 4.593 MB / 408 MB, free: 10.94 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005079/0.3811, allocations: 2.326 MB / 410.3 MB, free: 9.367 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006437/0.3876, allocations: 3.166 MB / 413.4 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001605/0.3892, allocations: 360 kB / 413.8 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003756/0.393, allocations: 0.8001 MB / 414.6 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002662/0.3957, allocations: 1.514 MB / 416.1 MB, free: 3.516 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006302/0.402, allocations: 3.142 MB / 419.3 MB, free: 360 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01171/0.4137, allocations: 9.326 MB / 428.6 MB, free: 6.996 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.4138, allocations: 4 kB / 428.6 MB, free: 6.992 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.316e-06/0.4138, allocations: 0 / 428.6 MB, free: 6.992 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003957/0.4142, allocations: 0 / 428.6 MB, free: 6.992 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.01752/0.4317, allocations: 6.286 MB / 434.9 MB, free: 0.625 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.769e-05/0.4318, allocations: 16.02 kB / 434.9 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007375/0.4392, allocations: 1.262 MB / 436.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008281/0.4475, allocations: 3.873 MB / 440 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004539/0.448, allocations: 444.2 kB / 440.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001449/0.4495, allocations: 0.5623 MB / 441 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01619/0.4657, allocations: 7.327 MB / 448.3 MB, free: 3.016 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001533/0.4659, allocations: 7.906 kB / 448.4 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005936/0.4665, allocations: 235.9 kB / 448.6 MB, free: 2.777 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002826/0.4668, allocations: 263.3 kB / 448.8 MB, free: 2.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01293/0.4797, allocations: 6.193 MB / 455 MB, free: 12.32 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04783/0.5276, allocations: 24.03 MB / 479.1 MB, free: 3.625 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01006/0.5377, allocations: 9.03 MB / 488.1 MB, free: 9.613 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004914/0.5426, allocations: 2.508 MB / 490.6 MB, free: 7.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01549/0.5582, allocations: 7.636 MB / 498.2 MB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.999e-05/0.5583, allocations: 60.56 kB / 498.3 MB, free: 15.02 MB / 414.1 MB Notification: Performance of pre-optimization done (n=238): time 5.52e-06/0.5583, allocations: 3.938 kB / 498.3 MB, free: 15.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=282): time 0.03829/0.5966, allocations: 14.67 MB / 0.501 GB, free: 144 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.502e-05/0.5967, allocations: 85.59 kB / 0.501 GB, free: 44 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007377/0.6041, allocations: 3.516 MB / 0.5045 GB, free: 12.54 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005767/0.6047, allocations: 73.62 kB / 0.5045 GB, free: 12.46 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00244/0.6072, allocations: 2.698 MB / 0.5072 GB, free: 9.734 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001363/0.6086, allocations: 0.9628 MB / 0.5081 GB, free: 8.758 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007822/0.6094, allocations: 285.6 kB / 0.5084 GB, free: 8.473 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.6095, allocations: 301.1 kB / 0.5087 GB, free: 8.176 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003386/0.6129, allocations: 1.596 MB / 0.5102 GB, free: 6.578 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004059/0.617, allocations: 2.79 MB / 0.513 GB, free: 3.254 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007604/0.6246, allocations: 4.695 MB / 0.5175 GB, free: 13.98 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.201e-05/0.6247, allocations: 12 kB / 0.5176 GB, free: 13.97 MB / 446.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.01175/0.6364, allocations: 5.604 MB / 0.523 GB, free: 8.266 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.945e-05/0.6365, allocations: 26.91 kB / 0.5231 GB, free: 8.242 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.112e-05/0.6366, allocations: 40 kB / 0.5231 GB, free: 8.203 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001849/0.6385, allocations: 0.7049 MB / 0.5238 GB, free: 7.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003566/0.6421, allocations: 0.8736 MB / 0.5246 GB, free: 6.605 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2229/0.865, allocations: 9.735 MB / 0.5341 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004183/0.8692, allocations: 248.1 kB / 0.5344 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005559/0.8698, allocations: 166.3 kB / 0.5345 GB, free: 134.4 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.003754/0.8736, allocations: 1.631 MB / 0.5361 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001087/0.8747, allocations: 389.9 kB / 0.5365 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008703/0.8834, allocations: 4.647 MB / 0.541 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.919e-05/0.8835, allocations: 35.42 kB / 0.5411 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.172e-05/0.8835, allocations: 8.25 kB / 0.5411 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-05/0.8836, allocations: 13.78 kB / 0.5411 GB, free: 132.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01847/0.902, allocations: 10.12 MB / 0.551 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.709e-05/0.9021, allocations: 9.141 kB / 0.551 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002133/0.9043, allocations: 0.5107 MB / 0.5515 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001918/0.9062, allocations: 0.7703 MB / 0.5522 GB, free: 127.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002133/0.9064, allocations: 68.16 kB / 0.5523 GB, free: 127.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01026/0.9167, allocations: 13.2 MB / 0.5652 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/0.9167, allocations: 9.812 kB / 0.5652 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009818/0.9266, allocations: 6.793 MB / 0.5718 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00185/0.9284, allocations: 0.7818 MB / 0.5726 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005319/0.929, allocations: 71.25 kB / 0.5727 GB, free: 113.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002031/0.931, allocations: 184.7 kB / 0.5728 GB, free: 113.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004385/0.9315, allocations: 209.2 kB / 0.573 GB, free: 113.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001714/0.9317, allocations: 82.09 kB / 0.5731 GB, free: 113.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003373/0.935, allocations: 2.377 MB / 0.5754 GB, free: 113 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.9351, allocations: 0 / 0.5754 GB, free: 113 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003741/0.9388, allocations: 1.124 MB / 0.5765 GB, free: 112.9 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.0006365/0.9394, allocations: 292.9 kB / 0.5768 GB, free: 112.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006634/0.9461, allocations: 4.797 MB / 0.5815 GB, free: 107.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.917e-06/0.9461, allocations: 0 / 0.5815 GB, free: 107.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003993/0.9501, allocations: 2.905 MB / 0.5843 GB, free: 105 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00676/0.9569, allocations: 0.8744 MB / 0.5852 GB, free: 104.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01727/0.9742, allocations: 13.2 MB / 0.5981 GB, free: 90.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002561/0.9768, allocations: 3.435 MB / 0.6014 GB, free: 87.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00133/0.9782, allocations: 291.3 kB / 0.6017 GB, free: 87.05 MB / 446.1 MB Notification: Performance of SimCode: time 1.102e-06/0.9782, allocations: 0 / 0.6017 GB, free: 87.05 MB / 446.1 MB Notification: Performance of Templates: time 0.3814/1.36, allocations: 239.9 MB / 0.836 GB, free: 26.35 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.0.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