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.001057/0.001057, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.175/1.175, allocations: 227.2 MB / 245 MB, free: 7.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008724/0.0008724, allocations: 98.45 kB / 297.3 MB, free: 6.172 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002215/0.0002214, allocations: 12 kB / 358 MB, free: 9.508 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1925/0.1927, allocations: 51.48 MB / 409.4 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.318/0.5108, allocations: 138.4 MB / 0.535 GB, free: 45.02 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/0.5111, allocations: 91.92 kB / 0.5351 GB, free: 45.01 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2969/0.8079, allocations: 135 MB / 0.6669 GB, free: 10.43 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.486e-06/0.808, allocations: 0 / 0.6669 GB, free: 10.43 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005368/0.8085, allocations: 151.8 kB / 0.6671 GB, free: 10.28 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.01911/0.8277, allocations: 6.094 MB / 0.673 GB, free: 4.102 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.8277, allocations: 8.031 kB / 0.673 GB, free: 4.094 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007405/0.8351, allocations: 1.191 MB / 0.6742 GB, free: 2.895 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2211/1.056, allocations: 4.966 MB / 0.679 GB, free: 57.38 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002969/1.057, allocations: 436.4 kB / 0.6795 GB, free: 57.36 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001016/1.058, allocations: 0.549 MB / 0.68 GB, free: 57.36 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01161/1.069, allocations: 7.214 MB / 0.687 GB, free: 56.71 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000111/1.069, allocations: 13.19 kB / 0.6871 GB, free: 56.71 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004861/1.07, allocations: 245.1 kB / 0.6873 GB, free: 56.71 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001622/1.07, allocations: 246.2 kB / 0.6875 GB, free: 56.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008186/1.078, allocations: 5.855 MB / 0.6932 GB, free: 56.66 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02769/1.106, allocations: 23.95 MB / 0.7166 GB, free: 51.75 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005864/1.112, allocations: 9.058 MB / 0.7255 GB, free: 45.69 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008625/1.12, allocations: 7.336 MB / 0.7326 GB, free: 43.77 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/1.12, allocations: 65.12 kB / 0.7327 GB, free: 43.72 MB / 458.7 MB Notification: Performance of pre-optimization done (n=251): time 3.958e-06/1.12, allocations: 0 / 0.7327 GB, free: 43.72 MB / 458.7 MB Notification: Performance of matching and sorting (n=303): time 0.03063/1.151, allocations: 16.42 MB / 0.7487 GB, free: 38.52 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/1.151, allocations: 82.05 kB / 0.7488 GB, free: 38.46 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003931/1.155, allocations: 2.968 MB / 0.7517 GB, free: 37.36 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002335/1.155, allocations: 81.12 kB / 0.7518 GB, free: 37.29 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00127/1.157, allocations: 2.658 MB / 0.7544 GB, free: 35.27 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006276/1.157, allocations: 1.035 MB / 0.7554 GB, free: 34.46 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001749/1.157, allocations: 76.09 kB / 0.7555 GB, free: 34.41 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001584/1.158, allocations: 455.9 kB / 0.7559 GB, free: 34.04 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002197/1.16, allocations: 1.643 MB / 0.7575 GB, free: 33.44 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002496/1.162, allocations: 2.804 MB / 0.7602 GB, free: 31.41 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002584/1.165, allocations: 2.111 MB / 0.7623 GB, free: 30.54 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.415e-05/1.165, allocations: 10.56 kB / 0.7623 GB, free: 30.54 MB / 458.7 MB Notification: Performance of matching and sorting (n=485) (initialization): time 0.008236/1.173, allocations: 5.754 MB / 0.7679 GB, free: 28.39 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.342e-05/1.173, allocations: 19.62 kB / 0.768 GB, free: 28.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.435e-05/1.173, allocations: 37.44 kB / 0.768 GB, free: 28.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001777/1.175, allocations: 0.8669 MB / 0.7688 GB, free: 28.14 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002756/1.178, allocations: 0.8844 MB / 0.7697 GB, free: 28.11 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008686/1.187, allocations: 10.09 MB / 0.7796 GB, free: 21.31 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002675/1.189, allocations: 247.7 kB / 0.7798 GB, free: 21.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002353/1.19, allocations: 165.5 kB / 0.7799 GB, free: 21.2 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 167 * 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 (432): * Single equations (assignments): 423 * 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,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002554/1.192, allocations: 1.635 MB / 0.7815 GB, free: 20.36 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000513/1.193, allocations: 397.9 kB / 0.7819 GB, free: 20.16 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006676/1.199, allocations: 4.916 MB / 0.7867 GB, free: 18.06 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-05/1.199, allocations: 34.39 kB / 0.7868 GB, free: 18.05 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.167e-05/1.199, allocations: 11.25 kB / 0.7868 GB, free: 18.05 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.105e-05/1.199, allocations: 14.67 kB / 0.7868 GB, free: 18.05 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01349/1.213, allocations: 10.53 MB / 0.7971 GB, free: 13.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.005397/1.218, allocations: 4.163 MB / 0.8011 GB, free: 11.74 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001958/1.22, allocations: 0.5224 MB / 0.8016 GB, free: 11.72 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002072/1.222, allocations: 0.9759 MB / 0.8026 GB, free: 11 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001682/1.223, allocations: 75.45 kB / 0.8027 GB, free: 10.94 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01196/1.234, allocations: 15.13 MB / 0.8174 GB, free: 12.24 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/1.234, allocations: 8 kB / 0.8174 GB, free: 12.23 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01059/1.245, allocations: 7.708 MB / 0.825 GB, free: 5.023 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001694/1.247, allocations: 0.798 MB / 0.8258 GB, free: 4.289 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004461/1.247, allocations: 63.28 kB / 0.8258 GB, free: 4.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001763/1.249, allocations: 197 kB / 0.826 GB, free: 4.082 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000372/1.249, allocations: 224.9 kB / 0.8262 GB, free: 3.941 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001815/1.25, allocations: 91.27 kB / 0.8263 GB, free: 3.859 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003067/1.253, allocations: 2.259 MB / 0.8285 GB, free: 1.98 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.253, allocations: 4 kB / 0.8285 GB, free: 1.977 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003525/1.256, allocations: 1.221 MB / 0.8297 GB, free: 0.7773 MB / 474.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 (242): * Single equations (assignments): 233 * 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,75.0%) 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.0007585/1.257, allocations: 0.5292 MB / 0.8302 GB, free: 360 kB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0104/1.267, allocations: 5.337 MB / 0.8354 GB, free: 12.54 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/1.267, allocations: 0 / 0.8354 GB, free: 12.54 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004367/1.272, allocations: 3.196 MB / 0.8386 GB, free: 9.598 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002694/1.274, allocations: 0.8379 MB / 0.8394 GB, free: 8.938 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2312/1.506, allocations: 12.69 MB / 0.8518 GB, free: 76.57 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004876/1.511, allocations: 3.631 MB / 0.8553 GB, free: 75.75 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004027/1.515, allocations: 0.8533 MB / 0.8561 GB, free: 75.71 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008421/1.516, allocations: 258.2 kB / 0.8564 GB, free: 75.71 MB / 490.7 MB Notification: Performance of SimCode: time 1.613e-06/1.516, allocations: 0 / 0.8564 GB, free: 75.71 MB / 490.7 MB Notification: Performance of Templates: time 0.08659/1.602, allocations: 56.67 MB / 0.9117 GB, free: 73.54 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/jenkins/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