Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001496/0.001496, allocations: 178 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.385/1.385, allocations: 205.4 MB / 222.6 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008421/0.0008425, allocations: 88.94 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003723/0.0003723, allocations: 8 kB / 327 MB, free: 180 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3038/0.3042, allocations: 47.57 MB / 374.6 MB, free: 45.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02034/0.3246, allocations: 21.24 MB / 395.8 MB, free: 27.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01617/0.3409, allocations: 6.692 MB / 402.5 MB, free: 20.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005015/0.346, allocations: 119.5 kB / 402.6 MB, free: 20.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003825/0.3498, allocations: 1.18 MB / 403.8 MB, free: 19.53 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006809/0.3566, allocations: 1.879 MB / 405.7 MB, free: 17.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003451/0.3601, allocations: 0.9658 MB / 406.6 MB, free: 16.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008711/0.3688, allocations: 7.204 MB / 413.8 MB, free: 9.445 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004142/0.373, allocations: 3.674 MB / 417.5 MB, free: 5.723 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003719/0.3767, allocations: 2.28 MB / 419.8 MB, free: 3.434 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003016/0.3798, allocations: 3.035 MB / 422.8 MB, free: 396 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005723/0.3803, allocations: 364 kB / 423.2 MB, free: 32 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00192/0.3823, allocations: 0.7182 MB / 423.9 MB, free: 15.31 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00138/0.3837, allocations: 1.499 MB / 425.4 MB, free: 13.81 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001664/0.3853, allocations: 1.272 MB / 426.7 MB, free: 12.53 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009139/0.3945, allocations: 9.256 MB / 435.9 MB, free: 3.246 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.512e-06/0.3945, allocations: 0 / 435.9 MB, free: 3.246 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.3945, allocations: 0 / 435.9 MB, free: 3.246 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002659/0.3948, allocations: 0 / 435.9 MB, free: 3.246 MB / 314.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.01556/0.4104, allocations: 6.305 MB / 442.2 MB, free: 12.86 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.4104, allocations: 8.031 kB / 442.2 MB, free: 12.85 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005937/0.4164, allocations: 1.234 MB / 443.5 MB, free: 11.61 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006936/0.4233, allocations: 3.585 MB / 447.1 MB, free: 7.949 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003324/0.4237, allocations: 439.4 kB / 447.5 MB, free: 7.52 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008465/0.4245, allocations: 0.5662 MB / 448.1 MB, free: 6.953 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01319/0.4377, allocations: 7.264 MB / 455.3 MB, free: 15.63 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001048/0.4379, allocations: 4 kB / 455.3 MB, free: 15.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005078/0.4384, allocations: 236 kB / 455.6 MB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002703/0.4387, allocations: 263.2 kB / 455.8 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01106/0.4497, allocations: 6.131 MB / 461.9 MB, free: 9.004 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03802/0.4878, allocations: 23.93 MB / 485.9 MB, free: 440 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007889/0.4957, allocations: 8.751 MB / 494.6 MB, free: 6.742 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003536/0.4993, allocations: 2.41 MB / 497 MB, free: 4.328 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3274/0.8266, allocations: 7.042 MB / 0.4923 GB, free: 100.6 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.308e-05/0.8268, allocations: 56.09 kB / 0.4923 GB, free: 100.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=238): time 8.816e-06/0.8268, allocations: 2.156 kB / 0.4923 GB, free: 100.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=282): time 0.05303/0.8799, allocations: 14.54 MB / 0.5065 GB, free: 95.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.88, allocations: 80.25 kB / 0.5066 GB, free: 95.28 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01158/0.8916, allocations: 3.464 MB / 0.51 GB, free: 93.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006283/0.8923, allocations: 70.81 kB / 0.51 GB, free: 93.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002369/0.8947, allocations: 2.682 MB / 0.5127 GB, free: 91.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001499/0.8962, allocations: 0.965 MB / 0.5136 GB, free: 90.49 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002354/0.8965, allocations: 71.75 kB / 0.5137 GB, free: 90.43 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002485/0.8967, allocations: 459.6 kB / 0.5141 GB, free: 90.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002771/0.8995, allocations: 1.575 MB / 0.5156 GB, free: 88.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003017/0.9025, allocations: 2.79 MB / 0.5184 GB, free: 85.63 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002785/0.9053, allocations: 2.039 MB / 0.5204 GB, free: 83.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-05/0.9054, allocations: 12 kB / 0.5204 GB, free: 83.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.008785/0.9142, allocations: 5.563 MB / 0.5258 GB, free: 77.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.809e-05/0.9142, allocations: 20 kB / 0.5258 GB, free: 77.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.282e-05/0.9143, allocations: 40 kB / 0.5259 GB, free: 77.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001594/0.9159, allocations: 0.6889 MB / 0.5265 GB, free: 77.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003246/0.9192, allocations: 0.8775 MB / 0.5274 GB, free: 76.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008648/0.9278, allocations: 9.6 MB / 0.5368 GB, free: 66.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004726/0.9326, allocations: 233 kB / 0.537 GB, free: 65.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006785/0.9333, allocations: 179.2 kB / 0.5372 GB, free: 65.74 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 (429): * Single equations (assignments): 419 * 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.004784/0.9381, allocations: 1.622 MB / 0.5387 GB, free: 64.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001746/0.9399, allocations: 384.5 kB / 0.5391 GB, free: 63.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009968/0.9499, allocations: 4.605 MB / 0.5436 GB, free: 59.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.438e-05/0.95, allocations: 39.08 kB / 0.5436 GB, free: 58.97 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.48e-05/0.95, allocations: 4 kB / 0.5437 GB, free: 58.97 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.227e-05/0.9501, allocations: 15.95 kB / 0.5437 GB, free: 58.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02283/0.9729, allocations: 10.09 MB / 0.5535 GB, free: 48.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.531e-05/0.973, allocations: 4 kB / 0.5535 GB, free: 48.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002212/0.9752, allocations: 0.5149 MB / 0.554 GB, free: 48.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002108/0.9773, allocations: 0.7347 MB / 0.5547 GB, free: 47.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003143/0.9777, allocations: 71.97 kB / 0.5548 GB, free: 47.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01166/0.9894, allocations: 13.03 MB / 0.5675 GB, free: 33.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/0.9894, allocations: 12.02 kB / 0.5675 GB, free: 33.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01299/1.002, allocations: 6.736 MB / 0.5741 GB, free: 26.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003699/1.006, allocations: 0.7967 MB / 0.5749 GB, free: 25.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002043/1.008, allocations: 63.98 kB / 0.575 GB, free: 25.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00402/1.012, allocations: 191.8 kB / 0.5751 GB, free: 25.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008298/1.013, allocations: 205.7 kB / 0.5753 GB, free: 25.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004253/1.014, allocations: 83.97 kB / 0.5754 GB, free: 25.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.007365/1.021, allocations: 2.329 MB / 0.5777 GB, free: 22.86 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.21e-07/1.021, allocations: 0 / 0.5777 GB, free: 22.86 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.008798/1.03, allocations: 1.103 MB / 0.5788 GB, free: 21.76 MB / 378.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.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 (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.001437/1.031, allocations: 251.3 kB / 0.579 GB, free: 21.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01095/1.042, allocations: 4.757 MB / 0.5837 GB, free: 16.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-05/1.042, allocations: 0 / 0.5837 GB, free: 16.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005727/1.048, allocations: 2.885 MB / 0.5865 GB, free: 13.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00973/1.058, allocations: 0.884 MB / 0.5873 GB, free: 12.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03369/1.092, allocations: 12.54 MB / 0.5996 GB, free: 152 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004814/1.097, allocations: 3.42 MB / 0.6029 GB, free: 12.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002116/1.099, allocations: 291.4 kB / 0.6032 GB, free: 12.41 MB / 394.7 MB Notification: Performance of SimCode: time 1.853e-06/1.099, allocations: 0 / 0.6032 GB, free: 12.41 MB / 394.7 MB Notification: Performance of Templates: time 0.9994/2.098, allocations: 238.8 MB / 0.8364 GB, free: 157.5 MB / 458.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches