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.001306/0.001306, allocations: 114.5 kB / 17.73 MB, free: 5.301 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.001313/0.001313, allocations: 187 kB / 18.66 MB, free: 4.375 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.535/1.535, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001365/0.001365, allocations: 47.94 kB / 328.6 MB, free: 3.258 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1026, allocations: 46.61 MB / 375.2 MB, free: 4.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.2265/0.3292, allocations: 24.06 MB / 399.2 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01787/0.3471, allocations: 7.119 MB / 406.3 MB, free: 9.086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006828/0.354, allocations: 130.2 kB / 406.5 MB, free: 9.055 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006028/0.3601, allocations: 1.58 MB / 408.1 MB, free: 8.199 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01104/0.3712, allocations: 2.276 MB / 410.3 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005578/0.3768, allocations: 1.459 MB / 411.8 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01628/0.393, allocations: 7.198 MB / 419 MB, free: 1.223 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009013/0.4021, allocations: 5.472 MB / 424.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007105/0.4093, allocations: 3.208 MB / 427.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007243/0.4166, allocations: 3.826 MB / 431.5 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002723/0.4193, allocations: 0.8711 MB / 432.4 MB, free: 6.414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00488/0.4242, allocations: 1.304 MB / 433.7 MB, free: 5.109 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003039/0.4273, allocations: 2.123 MB / 435.8 MB, free: 2.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006733/0.434, allocations: 3.777 MB / 439.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01443/0.4485, allocations: 11.45 MB / 451 MB, free: 3.699 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.4486, allocations: 4 kB / 451 MB, free: 3.695 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4486, allocations: 4 kB / 451 MB, free: 3.691 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003186/0.4489, allocations: 0 / 451 MB, free: 3.691 MB / 366.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.02412/0.473, allocations: 7.424 MB / 458.5 MB, free: 12.18 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.26e-05/0.4731, allocations: 8.031 kB / 458.5 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007389/0.4805, allocations: 1.215 MB / 459.7 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008756/0.4893, allocations: 3.919 MB / 463.6 MB, free: 6.961 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003893/0.4897, allocations: 431.8 kB / 464 MB, free: 6.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001814/0.4916, allocations: 0.5549 MB / 464.6 MB, free: 5.984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01665/0.5082, allocations: 7.28 MB / 471.9 MB, free: 14.65 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001424/0.5084, allocations: 4 kB / 471.9 MB, free: 14.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006337/0.5091, allocations: 243.9 kB / 472.1 MB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002767/0.5093, allocations: 259.3 kB / 472.3 MB, free: 14.15 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01297/0.5223, allocations: 6.099 MB / 478.4 MB, free: 8.047 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05187/0.5742, allocations: 23.41 MB / 0.4901 GB, free: 15.99 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009535/0.5838, allocations: 8.729 MB / 0.4986 GB, free: 6.332 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004519/0.5884, allocations: 2.371 MB / 0.5009 GB, free: 3.957 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01544/0.6038, allocations: 6.922 MB / 0.5077 GB, free: 12.81 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.15e-05/0.6039, allocations: 60.5 kB / 0.5077 GB, free: 12.74 MB / 446.1 MB Notification: Performance of pre-optimization done (n=238): time 5.42e-06/0.604, allocations: 4 kB / 0.5078 GB, free: 12.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=282): time 0.0372/0.6412, allocations: 13.72 MB / 0.5212 GB, free: 14.79 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.873e-05/0.6413, allocations: 81.59 kB / 0.5212 GB, free: 14.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007415/0.6487, allocations: 3.432 MB / 0.5246 GB, free: 11.28 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006144/0.6493, allocations: 77.59 kB / 0.5247 GB, free: 11.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002255/0.6516, allocations: 2.674 MB / 0.5273 GB, free: 8.492 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001297/0.6529, allocations: 0.9666 MB / 0.5282 GB, free: 7.512 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001796/0.6547, allocations: 0.6371 MB / 0.5288 GB, free: 6.867 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.847e-05/0.6548, allocations: 301.1 kB / 0.5291 GB, free: 6.57 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003106/0.658, allocations: 1.549 MB / 0.5306 GB, free: 5.02 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003867/0.6618, allocations: 2.763 MB / 0.5333 GB, free: 1.723 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00717/0.669, allocations: 4.599 MB / 0.5378 GB, free: 12.55 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.29e-05/0.6691, allocations: 16 kB / 0.5378 GB, free: 12.54 MB / 478.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.01146/0.6806, allocations: 5.467 MB / 0.5432 GB, free: 6.965 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.072e-05/0.6807, allocations: 20.66 kB / 0.5432 GB, free: 6.945 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.661e-05/0.6808, allocations: 40 kB / 0.5432 GB, free: 6.906 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001816/0.6826, allocations: 0.673 MB / 0.5439 GB, free: 6.215 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003629/0.6862, allocations: 0.8619 MB / 0.5447 GB, free: 5.352 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.234/0.9203, allocations: 10.34 MB / 0.5548 GB, free: 142 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003449/0.9238, allocations: 227.8 kB / 0.555 GB, free: 142 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005277/0.9243, allocations: 169.2 kB / 0.5552 GB, free: 142 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * 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 (430): * Single equations (assignments): 420 * 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.003155/0.9275, allocations: 1.619 MB / 0.5568 GB, free: 141.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009634/0.9285, allocations: 388 kB / 0.5572 GB, free: 141.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008133/0.9366, allocations: 4.514 MB / 0.5616 GB, free: 139.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.253e-05/0.9367, allocations: 35.42 kB / 0.5616 GB, free: 139.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.386e-05/0.9367, allocations: 7.844 kB / 0.5616 GB, free: 139.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-05/0.9368, allocations: 15 kB / 0.5616 GB, free: 139.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01786/0.9547, allocations: 9.901 MB / 0.5713 GB, free: 135 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.39e-05/0.9547, allocations: 4.375 kB / 0.5713 GB, free: 135 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002259/0.957, allocations: 0.4989 MB / 0.5718 GB, free: 134.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001873/0.9589, allocations: 0.7317 MB / 0.5725 GB, free: 134.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002914/0.9592, allocations: 74.83 kB / 0.5726 GB, free: 134.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01106/0.9703, allocations: 14.11 MB / 0.5863 GB, free: 123.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.9703, allocations: 9.438 kB / 0.5864 GB, free: 123.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01061/0.9809, allocations: 6.6 MB / 0.5928 GB, free: 120.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001928/0.9829, allocations: 0.773 MB / 0.5936 GB, free: 120 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006727/0.9836, allocations: 63.11 kB / 0.5936 GB, free: 120 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002003/0.9856, allocations: 166.6 kB / 0.5938 GB, free: 120 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004622/0.9861, allocations: 206.7 kB / 0.594 GB, free: 119.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001662/0.9862, allocations: 87.3 kB / 0.5941 GB, free: 119.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00333/0.9896, allocations: 2.3 MB / 0.5963 GB, free: 119.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 9.61e-07/0.9896, allocations: 0 / 0.5963 GB, free: 119.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004491/0.9941, allocations: 1.101 MB / 0.5974 GB, free: 118.9 MB / 478.1 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.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 (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.0008272/0.9949, allocations: 281 kB / 0.5976 GB, free: 118.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00683/1.002, allocations: 4.684 MB / 0.6022 GB, free: 115.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/1.002, allocations: 128 / 0.6022 GB, free: 115.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004357/1.006, allocations: 2.834 MB / 0.605 GB, free: 112.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006198/1.012, allocations: 0.8967 MB / 0.6059 GB, free: 111.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01931/1.032, allocations: 10.44 MB / 0.616 GB, free: 101.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004178/1.036, allocations: 3.499 MB / 0.6195 GB, free: 97.78 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003308/1.039, allocations: 0.864 MB / 0.6203 GB, free: 96.91 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/1.04, allocations: 263.4 kB / 0.6206 GB, free: 96.65 MB / 478.1 MB Notification: Performance of SimCode: time 7.51e-07/1.04, allocations: 0 / 0.6206 GB, free: 96.65 MB / 478.1 MB Notification: Performance of Templates: time 0.07639/1.117, allocations: 51.66 MB / 0.671 GB, free: 44.99 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (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) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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