Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_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.001343/0.001344, allocations: 194.7 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.562/1.562, allocations: 226.5 MB / 244.3 MB, free: 8.328 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00125/0.00125, allocations: 100.8 kB / 296.4 MB, free: 7.023 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003723/0.0003724, allocations: 8 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3355/0.3359, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.01467/0.3506, allocations: 21.82 MB / 429.3 MB, free: 5.957 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01212/0.3628, allocations: 6.912 MB / 436.2 MB, free: 15.04 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003978/0.3668, allocations: 135.5 kB / 436.4 MB, free: 14.91 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003294/0.3701, allocations: 1.196 MB / 437.6 MB, free: 13.7 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00575/0.3759, allocations: 1.874 MB / 439.4 MB, free: 11.82 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003072/0.379, allocations: 0.982 MB / 440.4 MB, free: 10.84 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01043/0.3894, allocations: 7.253 MB / 447.7 MB, free: 3.562 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005144/0.3946, allocations: 3.745 MB / 451.4 MB, free: 15.77 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004393/0.399, allocations: 2.276 MB / 453.7 MB, free: 13.48 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004205/0.4032, allocations: 3.027 MB / 456.7 MB, free: 10.44 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007805/0.404, allocations: 368 kB / 457.1 MB, free: 10.08 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002003/0.406, allocations: 0.7299 MB / 457.8 MB, free: 9.352 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001377/0.4074, allocations: 1.503 MB / 459.3 MB, free: 7.844 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001792/0.4092, allocations: 1.276 MB / 460.6 MB, free: 6.559 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009525/0.4188, allocations: 9.299 MB / 469.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.4188, allocations: 0 / 469.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.4188, allocations: 3.938 kB / 469.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003084/0.4191, allocations: 0 / 469.9 MB, free: 13.23 MB / 346.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.01352/0.4327, allocations: 6.344 MB / 476.2 MB, free: 6.805 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.175e-05/0.4327, allocations: 8.031 kB / 476.3 MB, free: 6.797 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005387/0.4381, allocations: 1.261 MB / 477.5 MB, free: 5.527 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006289/0.4444, allocations: 3.749 MB / 481.3 MB, free: 1.707 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003466/0.4448, allocations: 439.4 kB / 481.7 MB, free: 1.277 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007712/0.4455, allocations: 0.5585 MB / 482.2 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01201/0.4576, allocations: 7.28 MB / 489.5 MB, free: 9.383 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.629e-05/0.4577, allocations: 11.91 kB / 489.5 MB, free: 9.371 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004766/0.4582, allocations: 232 kB / 489.8 MB, free: 9.145 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002375/0.4584, allocations: 263.3 kB / 490 MB, free: 8.887 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01005/0.4685, allocations: 6.158 MB / 496.2 MB, free: 2.723 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2193/0.6878, allocations: 24.01 MB / 0.508 GB, free: 74.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006704/0.6946, allocations: 9.014 MB / 0.5168 GB, free: 68.64 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00348/0.6981, allocations: 2.507 MB / 0.5192 GB, free: 67.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009757/0.7079, allocations: 7.648 MB / 0.5267 GB, free: 63.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/0.7079, allocations: 61.62 kB / 0.5268 GB, free: 63.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=238): time 3.517e-06/0.7079, allocations: 3.031 kB / 0.5268 GB, free: 63.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=282): time 0.02722/0.7351, allocations: 14.65 MB / 0.5411 GB, free: 55.44 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.893e-05/0.7352, allocations: 82.72 kB / 0.5412 GB, free: 55.35 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003842/0.7391, allocations: 3.472 MB / 0.5446 GB, free: 51.89 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001478/0.7392, allocations: 73.7 kB / 0.5446 GB, free: 51.81 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001212/0.7404, allocations: 2.693 MB / 0.5472 GB, free: 49.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004986/0.7409, allocations: 0.9574 MB / 0.5482 GB, free: 48.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001505/0.7411, allocations: 76 kB / 0.5483 GB, free: 48.08 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.7413, allocations: 451.4 kB / 0.5487 GB, free: 47.63 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002025/0.7433, allocations: 1.581 MB / 0.5502 GB, free: 46.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002437/0.7457, allocations: 2.786 MB / 0.553 GB, free: 42.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002455/0.7482, allocations: 2.035 MB / 0.5549 GB, free: 40.68 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.22e-05/0.7482, allocations: 16 kB / 0.555 GB, free: 40.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.007083/0.7553, allocations: 5.569 MB / 0.5604 GB, free: 34.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.7554, allocations: 26.72 kB / 0.5604 GB, free: 34.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.11e-05/0.7554, allocations: 40 kB / 0.5605 GB, free: 34.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001377/0.7568, allocations: 0.7101 MB / 0.5612 GB, free: 34.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002615/0.7594, allocations: 0.8619 MB / 0.562 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007174/0.7666, allocations: 9.747 MB / 0.5715 GB, free: 23.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002936/0.7695, allocations: 239.6 kB / 0.5717 GB, free: 22.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000219/0.7698, allocations: 164 kB / 0.5719 GB, free: 22.69 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 (426): * Single equations (assignments): 416 * 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%) 6,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002418/0.7722, allocations: 1.632 MB / 0.5735 GB, free: 21.05 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005597/0.7728, allocations: 387.3 kB / 0.5739 GB, free: 20.67 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009722/0.7825, allocations: 4.624 MB / 0.5784 GB, free: 15.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.206e-05/0.7826, allocations: 39.98 kB / 0.5784 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.567e-05/0.7826, allocations: 8 kB / 0.5784 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.938e-05/0.7826, allocations: 11.95 kB / 0.5784 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0198/0.8024, allocations: 10.1 MB / 0.5883 GB, free: 5.562 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.826e-05/0.8025, allocations: 8.094 kB / 0.5883 GB, free: 5.555 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002883/0.8054, allocations: 0.5071 MB / 0.5888 GB, free: 5.047 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002618/0.808, allocations: 0.7725 MB / 0.5896 GB, free: 4.258 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002549/0.8083, allocations: 75.97 kB / 0.5896 GB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01626/0.8246, allocations: 13.18 MB / 0.6025 GB, free: 6.211 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.877e-06/0.8246, allocations: 7.938 kB / 0.6025 GB, free: 6.203 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01629/0.8409, allocations: 6.751 MB / 0.6091 GB, free: 15.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002542/0.8435, allocations: 0.789 MB / 0.6099 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008192/0.8443, allocations: 67.34 kB / 0.6099 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002865/0.8472, allocations: 191.8 kB / 0.6101 GB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005237/0.8478, allocations: 197.8 kB / 0.6103 GB, free: 13.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002756/0.848, allocations: 87.97 kB / 0.6104 GB, free: 13.86 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004795/0.8529, allocations: 2.342 MB / 0.6127 GB, free: 11.53 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.8529, allocations: 0 / 0.6127 GB, free: 11.53 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005433/0.8583, allocations: 1.118 MB / 0.6138 GB, free: 10.42 MB / 410.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 (235): * Single equations (assignments): 225 * 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%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007133/0.859, allocations: 265.7 kB / 0.614 GB, free: 10.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0107/0.8698, allocations: 4.776 MB / 0.6187 GB, free: 5.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.8698, allocations: 0 / 0.6187 GB, free: 5.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006726/0.8765, allocations: 2.896 MB / 0.6215 GB, free: 2.297 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00631/0.8829, allocations: 0.8867 MB / 0.6224 GB, free: 1.422 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02503/0.9079, allocations: 12.57 MB / 0.6347 GB, free: 4.738 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004385/0.9123, allocations: 3.423 MB / 0.638 GB, free: 1.285 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001739/0.9141, allocations: 287.4 kB / 0.6383 GB, free: 1.004 MB / 426.7 MB Notification: Performance of SimCode: time 2.644e-06/0.9141, allocations: 0 / 0.6383 GB, free: 1.004 MB / 426.7 MB Notification: Performance of Templates: time 0.6691/1.583, allocations: 239.5 MB / 0.8722 GB, free: 149.9 MB / 474.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches