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.001151/0.00115, allocations: 110.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.001182/0.001182, 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.417/1.417, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001154/0.001154, allocations: 51.92 kB / 328.6 MB, free: 3.254 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0962/0.09736, allocations: 46.62 MB / 375.2 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.2111/0.3085, allocations: 24.04 MB / 399.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01728/0.3258, allocations: 7.113 MB / 406.3 MB, free: 8.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005209/0.3311, allocations: 130.1 kB / 406.5 MB, free: 8.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004927/0.3361, allocations: 1.609 MB / 408.1 MB, free: 7.934 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009284/0.3454, allocations: 2.36 MB / 410.4 MB, free: 6.367 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005082/0.3505, allocations: 1.462 MB / 411.9 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01268/0.3632, allocations: 7.199 MB / 419.1 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01105/0.3743, allocations: 5.477 MB / 424.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006381/0.3807, allocations: 3.201 MB / 427.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007661/0.3884, allocations: 3.83 MB / 431.6 MB, free: 7.031 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002951/0.3914, allocations: 0.875 MB / 432.5 MB, free: 6.156 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004338/0.3957, allocations: 1.3 MB / 433.8 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00287/0.3986, allocations: 2.123 MB / 435.9 MB, free: 2.727 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00668/0.4053, allocations: 3.781 MB / 439.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01764/0.423, allocations: 11.45 MB / 451.1 MB, free: 3.441 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.756e-06/0.423, allocations: 4 kB / 451.1 MB, free: 3.438 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.423, allocations: 0 / 451.1 MB, free: 3.438 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004255/0.4235, allocations: 4 kB / 451.1 MB, free: 3.434 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.02552/0.449, allocations: 7.424 MB / 458.6 MB, free: 11.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.879e-05/0.4491, allocations: 8.031 kB / 458.6 MB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008571/0.4577, allocations: 1.223 MB / 459.8 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01066/0.4684, allocations: 3.915 MB / 463.7 MB, free: 6.699 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004853/0.4689, allocations: 423.8 kB / 464.1 MB, free: 6.285 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001949/0.4709, allocations: 0.5587 MB / 464.7 MB, free: 5.727 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01918/0.4901, allocations: 7.28 MB / 472 MB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002469/0.4904, allocations: 8 kB / 472 MB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001444/0.4918, allocations: 232 kB / 472.2 MB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003466/0.4922, allocations: 271.3 kB / 472.5 MB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01504/0.5072, allocations: 6.099 MB / 478.6 MB, free: 7.785 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04696/0.5542, allocations: 23.4 MB / 0.4902 GB, free: 15.74 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009985/0.5642, allocations: 8.728 MB / 0.4987 GB, free: 6.074 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005139/0.5694, allocations: 2.363 MB / 0.501 GB, free: 3.707 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01475/0.5842, allocations: 6.918 MB / 0.5078 GB, free: 12.57 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.139e-05/0.5843, allocations: 64.5 kB / 0.5078 GB, free: 12.49 MB / 446.1 MB Notification: Performance of pre-optimization done (n=238): time 5.29e-06/0.5843, allocations: 0 / 0.5078 GB, free: 12.49 MB / 446.1 MB Notification: Performance of matching and sorting (n=282): time 0.03326/0.6176, allocations: 13.73 MB / 0.5213 GB, free: 14.54 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.6177, allocations: 77.59 kB / 0.5213 GB, free: 14.45 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005566/0.6232, allocations: 3.432 MB / 0.5247 GB, free: 11.03 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002077/0.6235, allocations: 73.7 kB / 0.5248 GB, free: 10.95 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001733/0.6252, allocations: 2.678 MB / 0.5274 GB, free: 8.238 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000756/0.626, allocations: 0.9627 MB / 0.5283 GB, free: 7.262 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001001/0.627, allocations: 0.641 MB / 0.5289 GB, free: 6.613 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.095e-05/0.6271, allocations: 301.1 kB / 0.5292 GB, free: 6.316 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00261/0.6297, allocations: 1.553 MB / 0.5307 GB, free: 4.762 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003433/0.6331, allocations: 2.756 MB / 0.5334 GB, free: 1.473 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00643/0.6396, allocations: 4.602 MB / 0.5379 GB, free: 12.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.287e-05/0.6396, allocations: 8 kB / 0.5379 GB, free: 12.29 MB / 478.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.009568/0.6492, allocations: 5.471 MB / 0.5433 GB, free: 6.715 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.106e-05/0.6493, allocations: 24 kB / 0.5433 GB, free: 6.691 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-05/0.6493, allocations: 36.66 kB / 0.5433 GB, free: 6.656 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001559/0.6509, allocations: 0.6707 MB / 0.544 GB, free: 5.969 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003065/0.654, allocations: 0.8619 MB / 0.5448 GB, free: 5.105 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2374/0.8914, allocations: 10.35 MB / 0.5549 GB, free: 141 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004632/0.896, allocations: 229.4 kB / 0.5552 GB, free: 141 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001058/0.8971, allocations: 169 kB / 0.5553 GB, free: 141 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.004078/0.9012, allocations: 1.62 MB / 0.5569 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001232/0.9025, allocations: 392.3 kB / 0.5573 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00878/0.9113, allocations: 4.499 MB / 0.5617 GB, free: 138.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.654e-05/0.9114, allocations: 32.2 kB / 0.5617 GB, free: 138.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-05/0.9114, allocations: 7.188 kB / 0.5617 GB, free: 138.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.004e-05/0.9114, allocations: 13.41 kB / 0.5617 GB, free: 138.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01655/0.928, allocations: 9.906 MB / 0.5714 GB, free: 134.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.441e-05/0.928, allocations: 6.453 kB / 0.5714 GB, free: 134.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002155/0.9302, allocations: 0.4988 MB / 0.5719 GB, free: 134.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001741/0.9319, allocations: 0.7338 MB / 0.5726 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002075/0.9322, allocations: 69.78 kB / 0.5727 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01102/0.9432, allocations: 14.11 MB / 0.5864 GB, free: 122.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.516e-06/0.9432, allocations: 9.938 kB / 0.5865 GB, free: 122.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009664/0.9529, allocations: 6.596 MB / 0.5929 GB, free: 119.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001764/0.9547, allocations: 0.7704 MB / 0.5937 GB, free: 119.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004987/0.9552, allocations: 66.86 kB / 0.5937 GB, free: 119.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00174/0.957, allocations: 164.9 kB / 0.5939 GB, free: 119.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004499/0.9574, allocations: 203.1 kB / 0.5941 GB, free: 119.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001614/0.9576, allocations: 88.92 kB / 0.5942 GB, free: 119.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003066/0.9607, allocations: 2.311 MB / 0.5964 GB, free: 118.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.9607, allocations: 0 / 0.5964 GB, free: 118.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00393/0.9646, allocations: 1.09 MB / 0.5975 GB, free: 118.2 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.0006811/0.9653, allocations: 278.2 kB / 0.5977 GB, free: 118.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006627/0.972, allocations: 4.685 MB / 0.6023 GB, free: 114.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.786e-06/0.972, allocations: 4 kB / 0.6023 GB, free: 114.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003922/0.9759, allocations: 2.824 MB / 0.6051 GB, free: 112.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004364/0.9803, allocations: 0.9074 MB / 0.606 GB, free: 111.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01574/0.9961, allocations: 10.44 MB / 0.6162 GB, free: 100.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002935/0.9991, allocations: 3.507 MB / 0.6196 GB, free: 97.25 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002971/1.002, allocations: 0.8523 MB / 0.6204 GB, free: 96.39 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006926/1.003, allocations: 259.4 kB / 0.6207 GB, free: 96.14 MB / 478.1 MB Notification: Performance of SimCode: time 9.61e-07/1.003, allocations: 0 / 0.6207 GB, free: 96.14 MB / 478.1 MB Notification: Performance of Templates: time 0.07931/1.082, allocations: 51.67 MB / 0.6711 GB, free: 44.47 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