Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 96.06 kB / 16.93 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001078/0.001078, allocations: 180.3 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.347/1.347, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004686/0.0004686, allocations: 15.44 kB / 280.8 MB, free: 3.746 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.101, allocations: 47.58 MB / 328.3 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02245/0.1235, allocations: 19.25 MB / 347.6 MB, free: 0.7617 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01476/0.1383, allocations: 6.94 MB / 354.5 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004/0.1423, allocations: 119.5 kB / 354.7 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004804/0.1472, allocations: 1.166 MB / 355.8 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008441/0.1556, allocations: 2.033 MB / 357.8 MB, free: 6.48 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003698/0.1594, allocations: 0.9709 MB / 358.8 MB, free: 5.508 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.009423/0.1688, allocations: 4.828 MB / 363.6 MB, free: 0.668 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006994/0.1758, allocations: 3.678 MB / 367.3 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004245/0.1801, allocations: 2.195 MB / 369.5 MB, free: 10.74 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004584/0.1847, allocations: 2.739 MB / 372.3 MB, free: 7.988 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00163/0.1864, allocations: 360 kB / 372.6 MB, free: 7.637 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002724/0.1891, allocations: 0.6947 MB / 373.3 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002261/0.1914, allocations: 1.445 MB / 374.8 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003022/0.1945, allocations: 1.276 MB / 376 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2035/0.398, allocations: 9.197 MB / 385.2 MB, free: 19.2 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3981, allocations: 0 / 385.2 MB, free: 19.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.707e-06/0.3981, allocations: 3.844 kB / 385.2 MB, free: 19.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005653/0.3987, allocations: 0 / 385.2 MB, free: 19.2 MB / 318.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.02254/0.4212, allocations: 6.291 MB / 391.5 MB, free: 16.65 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.4213, allocations: 8.969 kB / 391.5 MB, free: 16.65 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009309/0.4306, allocations: 1.227 MB / 392.8 MB, free: 16.13 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01052/0.4412, allocations: 3.618 MB / 396.4 MB, free: 14.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005948/0.4418, allocations: 441.4 kB / 396.8 MB, free: 14.9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002646/0.4445, allocations: 0.5527 MB / 397.4 MB, free: 14.89 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01882/0.4633, allocations: 7.228 MB / 404.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001641/0.4635, allocations: 10.62 kB / 404.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000717/0.4643, allocations: 230.2 kB / 404.8 MB, free: 13.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002652/0.4645, allocations: 269 kB / 405.1 MB, free: 13.22 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01256/0.4771, allocations: 6.127 MB / 411.2 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04135/0.5185, allocations: 23.89 MB / 435.1 MB, free: 8.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009471/0.528, allocations: 8.737 MB / 443.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01498/0.5431, allocations: 6.716 MB / 450.6 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.782e-05/0.5432, allocations: 68.12 kB / 450.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of pre-optimization done (n=250): time 7.144e-06/0.5432, allocations: 0 / 450.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of matching and sorting (n=296): time 0.0416/0.5848, allocations: 15.73 MB / 466.3 MB, free: 8.309 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.351e-05/0.5849, allocations: 89.62 kB / 466.4 MB, free: 8.207 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007049/0.592, allocations: 3.403 MB / 469.8 MB, free: 4.816 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005746/0.5926, allocations: 73.7 kB / 469.9 MB, free: 4.738 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002371/0.595, allocations: 2.645 MB / 472.6 MB, free: 2.074 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001274/0.5963, allocations: 1.017 MB / 473.6 MB, free: 1.066 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004037/0.5967, allocations: 72 kB / 473.6 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002866/0.597, allocations: 454 kB / 474.1 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003328/0.6003, allocations: 1.614 MB / 475.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004163/0.6045, allocations: 2.787 MB / 478.5 MB, free: 11.65 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004363/0.6089, allocations: 2.08 MB / 480.6 MB, free: 9.586 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.232e-05/0.609, allocations: 8 kB / 480.6 MB, free: 9.578 MB / 382.1 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.01274/0.6217, allocations: 5.625 MB / 486.2 MB, free: 4.094 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.515e-05/0.6218, allocations: 20 kB / 486.2 MB, free: 4.074 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.238e-05/0.6219, allocations: 36 kB / 486.3 MB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001746/0.6237, allocations: 0.6797 MB / 486.9 MB, free: 3.344 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003805/0.6275, allocations: 0.9042 MB / 487.8 MB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01174/0.6393, allocations: 9.704 MB / 497.5 MB, free: 8.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00463/0.644, allocations: 239.6 kB / 497.8 MB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008537/0.6448, allocations: 172 kB / 497.9 MB, free: 7.918 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 169 * 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 (437): * Single equations (assignments): 427 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004825/0.6497, allocations: 1.632 MB / 499.6 MB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00168/0.6514, allocations: 391.2 kB / 500 MB, free: 5.949 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01029/0.6617, allocations: 4.719 MB / 0.4929 GB, free: 1.137 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.204e-05/0.6618, allocations: 35.98 kB / 0.4929 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.411e-05/0.6619, allocations: 11.95 kB / 0.4929 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.111e-05/0.6619, allocations: 11.95 kB / 0.4929 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02528/0.6872, allocations: 10.46 MB / 0.5031 GB, free: 6.477 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.768e-05/0.6873, allocations: 8 kB / 0.5031 GB, free: 6.469 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00274/0.69, allocations: 0.5481 MB / 0.5037 GB, free: 5.945 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002138/0.6922, allocations: 0.7423 MB / 0.5044 GB, free: 5.188 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004733/0.6927, allocations: 79.88 kB / 0.5045 GB, free: 5.113 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01427/0.707, allocations: 13.21 MB / 0.5174 GB, free: 7.176 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.235e-06/0.707, allocations: 8 kB / 0.5174 GB, free: 7.168 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01397/0.721, allocations: 7.678 MB / 0.5249 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002712/0.7238, allocations: 0.7929 MB / 0.5256 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001391/0.7252, allocations: 63.98 kB / 0.5257 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003037/0.7282, allocations: 199.3 kB / 0.5259 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006208/0.7289, allocations: 220.6 kB / 0.5261 GB, free: 13.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003099/0.7292, allocations: 95.97 kB / 0.5262 GB, free: 13.71 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004957/0.7342, allocations: 2.29 MB / 0.5284 GB, free: 11.44 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.7342, allocations: 2.406 kB / 0.5284 GB, free: 11.44 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006297/0.7405, allocations: 1.109 MB / 0.5295 GB, free: 10.33 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.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 (252): * Single equations (assignments): 242 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * 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,(3,100.0%) 12,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009963/0.7415, allocations: 246.9 kB / 0.5298 GB, free: 10.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0104/0.7519, allocations: 4.848 MB / 0.5345 GB, free: 5.281 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-05/0.752, allocations: 320 / 0.5345 GB, free: 5.281 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006224/0.7582, allocations: 2.968 MB / 0.5374 GB, free: 2.293 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006087/0.7644, allocations: 0.8421 MB / 0.5382 GB, free: 1.457 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1886/0.953, allocations: 12.63 MB / 0.5505 GB, free: 158 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005352/0.9584, allocations: 3.612 MB / 0.5541 GB, free: 157.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003936/0.9624, allocations: 0.8689 MB / 0.5549 GB, free: 157 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009715/0.9634, allocations: 262.1 kB / 0.5552 GB, free: 157 MB / 446.1 MB Notification: Performance of SimCode: time 1.533e-06/0.9634, allocations: 0 / 0.5552 GB, free: 157 MB / 446.1 MB Notification: Performance of Templates: time 0.08438/1.048, allocations: 50.4 MB / 0.6044 GB, free: 117.1 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_Generator/SMEE_Generator.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches