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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.00114/0.00114, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.282/1.282, allocations: 226.7 MB / 245.5 MB, free: 6.969 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001004/0.001004, allocations: 106.4 kB / 296.7 MB, free: 6.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001083/0.001084, allocations: 51.92 kB / 356.6 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2353/0.2365, allocations: 50.45 MB / 407.1 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.01865/0.2552, allocations: 24.37 MB / 431.4 MB, free: 3.344 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01599/0.2712, allocations: 7.318 MB / 438.8 MB, free: 12.01 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006796/0.278, allocations: 139.5 kB / 438.9 MB, free: 11.87 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005948/0.2841, allocations: 1.36 MB / 440.3 MB, free: 10.5 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008306/0.2924, allocations: 2.032 MB / 442.3 MB, free: 8.461 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004405/0.2968, allocations: 1.375 MB / 443.7 MB, free: 7.094 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0122/0.309, allocations: 7.944 MB / 451.6 MB, free: 15.12 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007521/0.3166, allocations: 4.628 MB / 456.2 MB, free: 10.41 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004609/0.3212, allocations: 2.685 MB / 458.9 MB, free: 7.715 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006752/0.328, allocations: 3.583 MB / 462.5 MB, free: 4.117 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002533/0.3306, allocations: 0.5156 MB / 463 MB, free: 3.602 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005216/0.3358, allocations: 0.9914 MB / 464 MB, free: 2.609 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003035/0.3389, allocations: 1.748 MB / 465.8 MB, free: 0.8555 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005746/0.3447, allocations: 3.398 MB / 469.2 MB, free: 13.44 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01196/0.3567, allocations: 11.13 MB / 480.3 MB, free: 2.273 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.3567, allocations: 4 kB / 480.3 MB, free: 2.27 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3567, allocations: 0 / 480.3 MB, free: 2.27 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003481/0.3571, allocations: 0 / 480.3 MB, free: 2.27 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.02104/0.3781, allocations: 7.441 MB / 487.7 MB, free: 10.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.3782, allocations: 12.03 kB / 487.7 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006842/0.385, allocations: 1.254 MB / 489 MB, free: 9.473 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009919/0.395, allocations: 3.842 MB / 492.8 MB, free: 5.559 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004463/0.3955, allocations: 436 kB / 493.3 MB, free: 5.133 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001744/0.3972, allocations: 0.5584 MB / 493.8 MB, free: 4.574 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01671/0.414, allocations: 7.292 MB / 0.4894 GB, free: 13.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001302/0.4141, allocations: 19.89 kB / 0.4894 GB, free: 13.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005613/0.4147, allocations: 232 kB / 0.4896 GB, free: 12.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002792/0.415, allocations: 263.2 kB / 0.4899 GB, free: 12.72 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01268/0.4277, allocations: 6.154 MB / 0.4959 GB, free: 6.562 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2353/0.663, allocations: 23.87 MB / 0.5192 GB, free: 72.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008063/0.6711, allocations: 9.007 MB / 0.528 GB, free: 64.67 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003972/0.6752, allocations: 2.486 MB / 0.5304 GB, free: 63.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01141/0.6866, allocations: 7.624 MB / 0.5378 GB, free: 57.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.228e-05/0.6867, allocations: 59.47 kB / 0.5379 GB, free: 57.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=238): time 5.04e-06/0.6867, allocations: 0 / 0.5379 GB, free: 57.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=282): time 0.03042/0.7171, allocations: 14.02 MB / 0.5516 GB, free: 44.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.467e-05/0.7172, allocations: 85.59 kB / 0.5517 GB, free: 44.49 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004596/0.7218, allocations: 3.495 MB / 0.5551 GB, free: 41.01 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003916/0.7222, allocations: 77.61 kB / 0.5552 GB, free: 40.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001172/0.7234, allocations: 2.689 MB / 0.5578 GB, free: 38.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006095/0.724, allocations: 0.9604 MB / 0.5587 GB, free: 37.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008816/0.7249, allocations: 0.6372 MB / 0.5594 GB, free: 36.63 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.783e-05/0.7249, allocations: 305.1 kB / 0.5596 GB, free: 36.33 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00216/0.7271, allocations: 1.561 MB / 0.5612 GB, free: 34.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002569/0.7297, allocations: 2.766 MB / 0.5639 GB, free: 31.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004962/0.7347, allocations: 4.625 MB / 0.5684 GB, free: 26.27 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-05/0.7347, allocations: 12 kB / 0.5684 GB, free: 26.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.008161/0.7429, allocations: 5.534 MB / 0.5738 GB, free: 20.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.615e-05/0.7429, allocations: 28 kB / 0.5738 GB, free: 20.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.072e-05/0.743, allocations: 36 kB / 0.5739 GB, free: 20.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001622/0.7446, allocations: 0.7036 MB / 0.5745 GB, free: 19.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00332/0.748, allocations: 0.8541 MB / 0.5754 GB, free: 18.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007926/0.7559, allocations: 9.762 MB / 0.5849 GB, free: 8.699 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003794/0.7597, allocations: 219.6 kB / 0.5851 GB, free: 8.484 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006214/0.7604, allocations: 168 kB / 0.5853 GB, free: 8.32 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 (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.002992/0.7634, allocations: 1.622 MB / 0.5869 GB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001/0.7644, allocations: 391.3 kB / 0.5872 GB, free: 6.305 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006875/0.7713, allocations: 4.585 MB / 0.5917 GB, free: 1.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.656e-05/0.7714, allocations: 31.98 kB / 0.5918 GB, free: 1.559 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.7714, allocations: 8 kB / 0.5918 GB, free: 1.551 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.12e-05/0.7714, allocations: 15.89 kB / 0.5918 GB, free: 1.535 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01688/0.7883, allocations: 10.06 MB / 0.6016 GB, free: 7.285 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.619e-05/0.7883, allocations: 11.98 kB / 0.6016 GB, free: 7.273 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002128/0.7905, allocations: 0.4921 MB / 0.6021 GB, free: 6.781 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001984/0.7925, allocations: 0.7646 MB / 0.6028 GB, free: 6 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001934/0.7927, allocations: 75.48 kB / 0.6029 GB, free: 5.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0124/0.8051, allocations: 13.19 MB / 0.6158 GB, free: 7.953 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/0.8051, allocations: 7.938 kB / 0.6158 GB, free: 7.945 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06457/0.8697, allocations: 42.43 MB / 0.6572 GB, free: 12.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002142/0.8719, allocations: 0.789 MB / 0.658 GB, free: 11.29 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006511/0.8726, allocations: 60 kB / 0.6581 GB, free: 11.23 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002088/0.8747, allocations: 163.8 kB / 0.6582 GB, free: 11.07 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005048/0.8752, allocations: 205.8 kB / 0.6584 GB, free: 10.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001913/0.8754, allocations: 87.97 kB / 0.6585 GB, free: 10.78 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003506/0.8789, allocations: 2.357 MB / 0.6608 GB, free: 8.438 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8789, allocations: 0 / 0.6608 GB, free: 8.438 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005297/0.8842, allocations: 1.52 MB / 0.6623 GB, free: 6.926 MB / 458.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 (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.0007677/0.885, allocations: 297.4 kB / 0.6626 GB, free: 6.641 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007881/0.8929, allocations: 4.743 MB / 0.6672 GB, free: 1.785 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.603e-06/0.8929, allocations: 0 / 0.6672 GB, free: 1.785 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1696/1.063, allocations: 2.866 MB / 0.67 GB, free: 148.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004774/1.067, allocations: 0.863 MB / 0.6708 GB, free: 148 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01988/1.087, allocations: 15.73 MB / 0.6862 GB, free: 141.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003907/1.091, allocations: 3.605 MB / 0.6897 GB, free: 140.1 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00349/1.095, allocations: 0.864 MB / 0.6906 GB, free: 140 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009465/1.096, allocations: 261.5 kB / 0.6908 GB, free: 139.9 MB / 458.7 MB Notification: Performance of SimCode: time 7.71e-07/1.096, allocations: 0 / 0.6908 GB, free: 139.9 MB / 458.7 MB Notification: Performance of Templates: time 0.09186/1.188, allocations: 61.96 MB / 0.7513 GB, free: 85 MB / 458.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches