Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001494/0.001494, allocations: 115.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001664/0.001664, allocations: 203.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001148/0.001148, allocations: 63.73 kB / 308.4 MB, free: 15.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1149, allocations: 50.53 MB / 358.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.2042/0.3191, allocations: 24.76 MB / 383.7 MB, free: 8.039 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01435/0.3335, allocations: 7.396 MB / 391.1 MB, free: 3.199 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005829/0.3393, allocations: 147.8 kB / 391.2 MB, free: 3.168 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005477/0.3448, allocations: 1.601 MB / 392.8 MB, free: 2.297 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008043/0.3529, allocations: 2.275 MB / 395.1 MB, free: 0.793 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00391/0.3569, allocations: 1.474 MB / 396.6 MB, free: 15.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01022/0.3671, allocations: 7.274 MB / 403.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007235/0.3744, allocations: 5.555 MB / 409.4 MB, free: 8.824 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005304/0.3797, allocations: 3.208 MB / 412.6 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006412/0.3861, allocations: 3.962 MB / 416.6 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002238/0.3884, allocations: 0.8711 MB / 417.4 MB, free: 1.172 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003883/0.3923, allocations: 1.3 MB / 418.7 MB, free: 15.87 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002411/0.3948, allocations: 2.135 MB / 420.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005996/0.4008, allocations: 3.792 MB / 424.7 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01294/0.4137, allocations: 11.51 MB / 436.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.4138, allocations: 4 kB / 436.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4138, allocations: 0 / 436.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003634/0.4141, allocations: 0 / 436.2 MB, free: 14.37 MB / 350.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.01948/0.4336, allocations: 7.447 MB / 443.6 MB, free: 6.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.4337, allocations: 12.03 kB / 443.6 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006549/0.4402, allocations: 1.254 MB / 444.9 MB, free: 5.566 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01068/0.4509, allocations: 4.165 MB / 449.1 MB, free: 1.328 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003653/0.4513, allocations: 431.8 kB / 449.5 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001537/0.4529, allocations: 0.5587 MB / 450 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0158/0.4687, allocations: 7.28 MB / 457.3 MB, free: 9.012 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001474/0.4689, allocations: 11.84 kB / 457.3 MB, free: 9 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006217/0.4695, allocations: 236 kB / 457.6 MB, free: 8.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002752/0.4698, allocations: 267.3 kB / 457.8 MB, free: 8.508 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01269/0.4825, allocations: 6.115 MB / 463.9 MB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04193/0.5245, allocations: 23.5 MB / 487.4 MB, free: 10.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00815/0.5327, allocations: 8.968 MB / 496.4 MB, free: 284 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004183/0.5369, allocations: 2.477 MB / 498.9 MB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01305/0.55, allocations: 7.526 MB / 0.4945 GB, free: 5.902 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.893e-05/0.55, allocations: 60.56 kB / 0.4946 GB, free: 5.836 MB / 414.1 MB Notification: Performance of pre-optimization done (n=238): time 4.82e-06/0.5501, allocations: 0 / 0.4946 GB, free: 5.836 MB / 414.1 MB Notification: Performance of matching and sorting (n=282): time 0.03332/0.5834, allocations: 13.83 MB / 0.5081 GB, free: 7.797 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.068e-05/0.5835, allocations: 81.59 kB / 0.5082 GB, free: 7.703 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005771/0.5893, allocations: 3.453 MB / 0.5115 GB, free: 4.266 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004945/0.5898, allocations: 69.7 kB / 0.5116 GB, free: 4.191 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001958/0.5918, allocations: 2.698 MB / 0.5142 GB, free: 1.461 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001024/0.5928, allocations: 0.9628 MB / 0.5152 GB, free: 496 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001036/0.5938, allocations: 0.6372 MB / 0.5158 GB, free: 15.84 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.594, allocations: 301.1 kB / 0.5161 GB, free: 15.54 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002587/0.5965, allocations: 1.541 MB / 0.5176 GB, free: 14 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003497/0.6001, allocations: 2.752 MB / 0.5203 GB, free: 10.71 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006465/0.6065, allocations: 4.606 MB / 0.5248 GB, free: 5.531 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.967e-05/0.6066, allocations: 12 kB / 0.5248 GB, free: 5.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.2502/0.8568, allocations: 5.487 MB / 0.5302 GB, free: 135.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.684e-05/0.8569, allocations: 21.88 kB / 0.5302 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001029/0.857, allocations: 39.06 kB / 0.5302 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002037/0.859, allocations: 0.6823 MB / 0.5309 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003656/0.8627, allocations: 0.8503 MB / 0.5317 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01008/0.8728, allocations: 10.48 MB / 0.5419 GB, free: 128.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004185/0.877, allocations: 231.4 kB / 0.5422 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004447/0.8775, allocations: 166.5 kB / 0.5423 GB, free: 128.8 MB / 446.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 (427): * Single equations (assignments): 417 * 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,6,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.003216/0.8807, allocations: 1.63 MB / 0.5439 GB, free: 127.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009529/0.8817, allocations: 395.8 kB / 0.5443 GB, free: 127.9 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008226/0.8899, allocations: 4.52 MB / 0.5487 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.976e-05/0.89, allocations: 31.31 kB / 0.5487 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.531e-05/0.89, allocations: 12.84 kB / 0.5488 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-05/0.8901, allocations: 14.02 kB / 0.5488 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01621/0.9063, allocations: 9.926 MB / 0.5585 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.301e-05/0.9063, allocations: 6.031 kB / 0.5585 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001955/0.9083, allocations: 0.4917 MB / 0.5589 GB, free: 121.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001839/0.9102, allocations: 0.7467 MB / 0.5597 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002027/0.9104, allocations: 71.22 kB / 0.5597 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01055/0.9209, allocations: 14.27 MB / 0.5737 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.546e-06/0.921, allocations: 19.55 kB / 0.5737 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009228/0.9302, allocations: 6.604 MB / 0.5801 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002229/0.9325, allocations: 0.7747 MB / 0.5809 GB, free: 106.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000628/0.9331, allocations: 60.39 kB / 0.581 GB, free: 106.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001853/0.935, allocations: 162.6 kB / 0.5811 GB, free: 106.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004206/0.9354, allocations: 216.1 kB / 0.5813 GB, free: 106.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001655/0.9356, allocations: 80.64 kB / 0.5814 GB, free: 106.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003001/0.9386, allocations: 2.329 MB / 0.5837 GB, free: 104.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.9386, allocations: 0 / 0.5837 GB, free: 104.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00344/0.9421, allocations: 1.098 MB / 0.5847 GB, free: 103.6 MB / 446.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.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 (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,6,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.000583/0.9426, allocations: 292.1 kB / 0.585 GB, free: 103.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006163/0.9488, allocations: 4.71 MB / 0.5896 GB, free: 98.49 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.9488, allocations: 0.5 kB / 0.5896 GB, free: 98.49 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003648/0.9525, allocations: 2.856 MB / 0.5924 GB, free: 95.55 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003856/0.9564, allocations: 0.9218 MB / 0.5933 GB, free: 94.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0138/0.9702, allocations: 10.45 MB / 0.6035 GB, free: 84.15 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002517/0.9727, allocations: 3.515 MB / 0.6069 GB, free: 80.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002506/0.9753, allocations: 0.8564 MB / 0.6078 GB, free: 79.74 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006893/0.976, allocations: 259.4 kB / 0.608 GB, free: 79.48 MB / 446.1 MB Notification: Performance of SimCode: time 6.91e-07/0.976, allocations: 0 / 0.608 GB, free: 79.48 MB / 446.1 MB Notification: Performance of Templates: time 0.07166/1.048, allocations: 50.65 MB / 0.6575 GB, free: 29.39 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches