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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 222.9 MB / 240.9 MB, free: 10.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009802/0.0009803, allocations: 99.52 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009057/0.0009057, allocations: 43.94 kB / 350.1 MB, free: 48 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2391, allocations: 49.43 MB / 399.5 MB, free: 33.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.01776/0.2569, allocations: 23.79 MB / 423.3 MB, free: 9.465 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01172/0.2687, allocations: 7.043 MB / 430.3 MB, free: 2.406 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004845/0.2736, allocations: 139.5 kB / 430.5 MB, free: 2.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004722/0.2784, allocations: 1.348 MB / 431.8 MB, free: 0.918 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007924/0.2863, allocations: 2.066 MB / 433.9 MB, free: 14.84 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004664/0.291, allocations: 1.32 MB / 435.2 MB, free: 13.53 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01245/0.3035, allocations: 7.84 MB / 443 MB, free: 5.656 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009708/0.3132, allocations: 4.629 MB / 447.7 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005434/0.3187, allocations: 2.681 MB / 450.3 MB, free: 14.25 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00642/0.3251, allocations: 3.587 MB / 453.9 MB, free: 10.64 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002366/0.3275, allocations: 0.5156 MB / 454.4 MB, free: 10.13 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004299/0.3319, allocations: 0.9563 MB / 455.4 MB, free: 9.172 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002957/0.3348, allocations: 1.756 MB / 457.2 MB, free: 7.41 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006565/0.3414, allocations: 3.39 MB / 460.5 MB, free: 4.004 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01425/0.3557, allocations: 11.11 MB / 471.6 MB, free: 8.863 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.3558, allocations: 4 kB / 471.7 MB, free: 8.859 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3558, allocations: 0 / 471.7 MB, free: 8.859 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003855/0.3562, allocations: 0 / 471.7 MB, free: 8.859 MB / 346.7 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.02294/0.3791, allocations: 7.392 MB / 479 MB, free: 1.383 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.3792, allocations: 12.03 kB / 479.1 MB, free: 1.371 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006084/0.3853, allocations: 1.223 MB / 480.3 MB, free: 144 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008504/0.3938, allocations: 3.83 MB / 484.1 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003554/0.3942, allocations: 440 kB / 484.5 MB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00117/0.3954, allocations: 0.5584 MB / 485.1 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01233/0.4077, allocations: 7.296 MB / 492.4 MB, free: 3.898 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001058/0.4078, allocations: 11.89 kB / 492.4 MB, free: 3.887 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004791/0.4083, allocations: 232 kB / 492.6 MB, free: 3.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002341/0.4086, allocations: 263.3 kB / 492.9 MB, free: 3.402 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01037/0.419, allocations: 6.15 MB / 499 MB, free: 13.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2248/0.6438, allocations: 23.79 MB / 0.5106 GB, free: 78.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007245/0.6511, allocations: 8.747 MB / 0.5191 GB, free: 71.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003753/0.6549, allocations: 2.395 MB / 0.5214 GB, free: 70.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01042/0.6653, allocations: 7.023 MB / 0.5283 GB, free: 66.08 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.235e-05/0.6654, allocations: 59.91 kB / 0.5284 GB, free: 66.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=238): time 4.89e-06/0.6654, allocations: 0 / 0.5284 GB, free: 66.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=282): time 0.02925/0.6947, allocations: 13.89 MB / 0.5419 GB, free: 56.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.227e-05/0.6947, allocations: 81.59 kB / 0.542 GB, free: 56.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004452/0.6992, allocations: 3.482 MB / 0.5454 GB, free: 52.94 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002032/0.6994, allocations: 69.7 kB / 0.5455 GB, free: 52.86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001054/0.7005, allocations: 2.684 MB / 0.5481 GB, free: 50.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000504/0.701, allocations: 0.969 MB / 0.549 GB, free: 49.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007808/0.7018, allocations: 0.6369 MB / 0.5497 GB, free: 48.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.798e-05/0.7018, allocations: 305.1 kB / 0.55 GB, free: 48.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0021/0.7039, allocations: 1.565 MB / 0.5515 GB, free: 46.69 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002468/0.7064, allocations: 2.77 MB / 0.5542 GB, free: 43.39 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00483/0.7112, allocations: 4.625 MB / 0.5587 GB, free: 38.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.911e-05/0.7113, allocations: 8 kB / 0.5587 GB, free: 38.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.007802/0.7191, allocations: 5.507 MB / 0.5641 GB, free: 32.58 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.337e-05/0.7191, allocations: 24 kB / 0.5641 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-05/0.7192, allocations: 43.92 kB / 0.5642 GB, free: 32.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001418/0.7206, allocations: 0.6803 MB / 0.5648 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00275/0.7234, allocations: 0.858 MB / 0.5657 GB, free: 30.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007367/0.7308, allocations: 9.594 MB / 0.575 GB, free: 20.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00314/0.7339, allocations: 227.6 kB / 0.5752 GB, free: 20.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003646/0.7343, allocations: 167.1 kB / 0.5754 GB, free: 20.45 MB / 378.7 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.002205/0.7365, allocations: 1.629 MB / 0.577 GB, free: 18.81 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000647/0.7372, allocations: 387.2 kB / 0.5774 GB, free: 18.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006424/0.7436, allocations: 4.562 MB / 0.5818 GB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.641e-05/0.7437, allocations: 28 kB / 0.5818 GB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/0.7437, allocations: 8 kB / 0.5819 GB, free: 13.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.179e-05/0.7437, allocations: 15.95 kB / 0.5819 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01401/0.7577, allocations: 10.02 MB / 0.5916 GB, free: 3.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.157e-05/0.7578, allocations: 12 kB / 0.5917 GB, free: 3.469 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001968/0.7597, allocations: 0.4915 MB / 0.5921 GB, free: 2.977 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001731/0.7615, allocations: 0.7572 MB / 0.5929 GB, free: 2.203 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001719/0.7617, allocations: 71.97 kB / 0.5929 GB, free: 2.133 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0123/0.774, allocations: 13.04 MB / 0.6057 GB, free: 4.297 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/0.774, allocations: 8 kB / 0.6057 GB, free: 4.289 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06407/0.8381, allocations: 42.37 MB / 0.6471 GB, free: 8.504 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001937/0.8401, allocations: 0.7813 MB / 0.6478 GB, free: 7.699 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005638/0.8406, allocations: 59.98 kB / 0.6479 GB, free: 7.641 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002053/0.8427, allocations: 168.2 kB / 0.648 GB, free: 7.477 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005271/0.8432, allocations: 205.8 kB / 0.6482 GB, free: 7.273 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001988/0.8434, allocations: 83.98 kB / 0.6483 GB, free: 7.191 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004228/0.8477, allocations: 2.353 MB / 0.6506 GB, free: 4.855 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.8477, allocations: 3.938 kB / 0.6506 GB, free: 4.852 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00587/0.8536, allocations: 1.512 MB / 0.6521 GB, free: 3.348 MB / 442.7 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.0008455/0.8545, allocations: 285.3 kB / 0.6524 GB, free: 3.07 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007986/0.8624, allocations: 4.726 MB / 0.657 GB, free: 14.23 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.697e-06/0.8625, allocations: 2 kB / 0.657 GB, free: 14.23 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004675/0.8672, allocations: 2.858 MB / 0.6598 GB, free: 11.29 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004194/0.8714, allocations: 0.8631 MB / 0.6606 GB, free: 10.44 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1929/1.064, allocations: 15.69 MB / 0.6759 GB, free: 148 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003483/1.068, allocations: 3.592 MB / 0.6795 GB, free: 147.2 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003099/1.071, allocations: 0.883 MB / 0.6803 GB, free: 147.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007782/1.072, allocations: 270 kB / 0.6806 GB, free: 147.2 MB / 458.7 MB Notification: Performance of SimCode: time 6.81e-07/1.072, allocations: 0 / 0.6806 GB, free: 147.2 MB / 458.7 MB Notification: Performance of Templates: time 0.08515/1.157, allocations: 61.54 MB / 0.7407 GB, free: 99.48 MB / 458.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","../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