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.001004/0.001004, allocations: 200.7 kB / 18.11 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 226.5 MB / 245.4 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007872/0.0007872, allocations: 99.91 kB / 297.5 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002445/0.0002446, allocations: 4 kB / 358.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1818/0.1821, allocations: 51.29 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3264/0.5085, allocations: 138.6 MB / 0.5351 GB, free: 46.24 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002797/0.5089, allocations: 97.72 kB / 0.5352 GB, free: 46.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2874/0.7963, allocations: 134.6 MB / 0.6667 GB, free: 12.34 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.7963, allocations: 0 / 0.6667 GB, free: 12.34 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004602/0.7968, allocations: 151.8 kB / 0.6668 GB, free: 12.19 MB / 458.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.01802/0.8148, allocations: 6.028 MB / 0.6727 GB, free: 6.07 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.3e-05/0.8149, allocations: 8.031 kB / 0.6727 GB, free: 6.062 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006903/0.8218, allocations: 1.192 MB / 0.6739 GB, free: 4.863 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01147/0.8333, allocations: 4.422 MB / 0.6782 GB, free: 372 kB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1995/1.033, allocations: 428.7 kB / 0.6786 GB, free: 59.32 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002302/1.035, allocations: 0.55 MB / 0.6791 GB, free: 59.32 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01713/1.052, allocations: 7.259 MB / 0.6862 GB, free: 58.67 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001933/1.053, allocations: 11.61 kB / 0.6862 GB, free: 58.67 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009446/1.053, allocations: 241.3 kB / 0.6865 GB, free: 58.67 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002177/1.054, allocations: 256.3 kB / 0.6867 GB, free: 58.66 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01265/1.066, allocations: 5.849 MB / 0.6924 GB, free: 58.61 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0389/1.105, allocations: 23.97 MB / 0.7158 GB, free: 53.71 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006457/1.112, allocations: 9.06 MB / 0.7247 GB, free: 47.65 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00306/1.115, allocations: 2.348 MB / 0.727 GB, free: 47.61 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0105/1.125, allocations: 7.598 MB / 0.7344 GB, free: 45.61 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/1.125, allocations: 57.19 kB / 0.7345 GB, free: 45.57 MB / 458.7 MB Notification: Performance of pre-optimization done (n=243): time 4.569e-06/1.125, allocations: 0 / 0.7345 GB, free: 45.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=294): time 0.03477/1.16, allocations: 16 MB / 0.7501 GB, free: 40.87 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.985e-05/1.16, allocations: 81.41 kB / 0.7502 GB, free: 40.8 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005093/1.165, allocations: 3.375 MB / 0.7535 GB, free: 39.58 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003955/1.166, allocations: 79.42 kB / 0.7535 GB, free: 39.52 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001439/1.167, allocations: 2.673 MB / 0.7561 GB, free: 37.61 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008651/1.168, allocations: 1.005 MB / 0.7571 GB, free: 36.83 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000183/1.168, allocations: 76.91 kB / 0.7572 GB, free: 36.77 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/1.169, allocations: 455.2 kB / 0.7576 GB, free: 36.4 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00248/1.171, allocations: 1.622 MB / 0.7592 GB, free: 35.82 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002832/1.174, allocations: 2.809 MB / 0.762 GB, free: 33.77 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006105/1.18, allocations: 4.744 MB / 0.7666 GB, free: 30.82 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.137e-05/1.18, allocations: 10.56 kB / 0.7666 GB, free: 30.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=480) (initialization): time 0.01038/1.19, allocations: 5.704 MB / 0.7722 GB, free: 28.69 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.663e-05/1.19, allocations: 19.59 kB / 0.7722 GB, free: 28.69 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.19e-05/1.191, allocations: 45.53 kB / 0.7722 GB, free: 28.69 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001935/1.193, allocations: 0.8578 MB / 0.7731 GB, free: 28.44 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003096/1.196, allocations: 0.8757 MB / 0.7739 GB, free: 28.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009904/1.206, allocations: 9.827 MB / 0.7835 GB, free: 21.75 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003529/1.209, allocations: 243.5 kB / 0.7838 GB, free: 21.67 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006057/1.21, allocations: 175.7 kB / 0.7839 GB, free: 21.64 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * 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 (427): * Single equations (assignments): 418 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,75.0%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003999/1.214, allocations: 1.623 MB / 0.7855 GB, free: 20.8 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001125/1.215, allocations: 390.5 kB / 0.7859 GB, free: 20.61 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008246/1.223, allocations: 4.846 MB / 0.7906 GB, free: 18.53 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.788e-05/1.223, allocations: 29.16 kB / 0.7906 GB, free: 18.53 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.372e-05/1.223, allocations: 15.06 kB / 0.7907 GB, free: 18.53 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.822e-05/1.223, allocations: 18.2 kB / 0.7907 GB, free: 18.52 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01876/1.242, allocations: 10.31 MB / 0.8007 GB, free: 14.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.006053/1.248, allocations: 4.104 MB / 0.8047 GB, free: 11.09 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002035/1.25, allocations: 0.5076 MB / 0.8052 GB, free: 10.69 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002304/1.253, allocations: 0.9803 MB / 0.8062 GB, free: 9.91 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002326/1.253, allocations: 67.69 kB / 0.8063 GB, free: 9.852 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01292/1.266, allocations: 14.82 MB / 0.8207 GB, free: 11.44 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/1.266, allocations: 7.938 kB / 0.8207 GB, free: 11.43 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01186/1.278, allocations: 6.986 MB / 0.8276 GB, free: 5.055 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002039/1.28, allocations: 0.7959 MB / 0.8283 GB, free: 4.328 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008939/1.281, allocations: 67.89 kB / 0.8284 GB, free: 4.266 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002332/1.283, allocations: 187.9 kB / 0.8286 GB, free: 4.125 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005066/1.283, allocations: 218.5 kB / 0.8288 GB, free: 3.988 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000222/1.284, allocations: 83.75 kB / 0.8289 GB, free: 3.91 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004241/1.288, allocations: 2.265 MB / 0.8311 GB, free: 2.027 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.4e-07/1.288, allocations: 0 / 0.8311 GB, free: 2.027 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004929/1.293, allocations: 1.216 MB / 0.8323 GB, free: 0.8281 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (233): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,72.2%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00111/1.294, allocations: 0.529 MB / 0.8328 GB, free: 412 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01191/1.306, allocations: 5.259 MB / 0.8379 GB, free: 12.56 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.393e-06/1.306, allocations: 7.062 kB / 0.8379 GB, free: 12.55 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005105/1.311, allocations: 3.114 MB / 0.841 GB, free: 9.68 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007045/1.318, allocations: 0.8868 MB / 0.8418 GB, free: 8.98 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2192/1.537, allocations: 12.66 MB / 0.8542 GB, free: 77.86 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004732/1.542, allocations: 3.53 MB / 0.8577 GB, free: 77.05 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00368/1.546, allocations: 0.8484 MB / 0.8585 GB, free: 77.01 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007708/1.547, allocations: 254.6 kB / 0.8587 GB, free: 77.01 MB / 490.7 MB Notification: Performance of SimCode: time 5.91e-07/1.547, allocations: 0 / 0.8587 GB, free: 77.01 MB / 490.7 MB Notification: Performance of Templates: time 0.08769/1.634, allocations: 57.08 MB / 0.9145 GB, free: 74.91 MB / 490.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/jenkins1/ws/OpenModelicaLibraryTestingWork/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