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.001495/0.001495, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001923/0.001923, allocations: 202 kB / 18.73 MB, free: 4.32 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 / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001059/0.001059, allocations: 59.91 kB / 358.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2588, allocations: 50.55 MB / 409.3 MB, free: 1.711 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.02543/0.2843, allocations: 24.75 MB / 434 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01538/0.2997, allocations: 7.397 MB / 441.4 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00406/0.3038, allocations: 143.5 kB / 441.6 MB, free: 1.289 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004289/0.3081, allocations: 1.63 MB / 443.2 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007284/0.3155, allocations: 2.353 MB / 445.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003827/0.3193, allocations: 1.496 MB / 447 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008607/0.3279, allocations: 7.253 MB / 454.3 MB, free: 4.508 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006291/0.3342, allocations: 5.569 MB / 459.9 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004748/0.339, allocations: 3.224 MB / 463.1 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005281/0.3443, allocations: 3.962 MB / 467.1 MB, free: 7.641 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001196/0.3455, allocations: 0.875 MB / 467.9 MB, free: 6.766 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002404/0.3479, allocations: 1.296 MB / 469.2 MB, free: 5.469 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001788/0.3497, allocations: 2.127 MB / 471.4 MB, free: 3.336 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00423/0.354, allocations: 3.796 MB / 475.2 MB, free: 15.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01082/0.3648, allocations: 11.5 MB / 486.7 MB, free: 3.984 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3648, allocations: 0 / 486.7 MB, free: 3.984 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3648, allocations: 0 / 486.7 MB, free: 3.984 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001771/0.365, allocations: 0 / 486.7 MB, free: 3.984 MB / 398.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.01611/0.3811, allocations: 7.462 MB / 494.1 MB, free: 12.44 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.3812, allocations: 8.031 kB / 494.1 MB, free: 12.43 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005922/0.3871, allocations: 1.262 MB / 495.4 MB, free: 11.16 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007913/0.395, allocations: 4.169 MB / 499.6 MB, free: 6.918 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003085/0.3954, allocations: 427.8 kB / 500 MB, free: 6.5 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008983/0.3963, allocations: 0.5664 MB / 0.4888 GB, free: 5.934 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01175/0.408, allocations: 7.268 MB / 0.4959 GB, free: 14.61 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001247/0.4082, allocations: 7.906 kB / 0.4959 GB, free: 14.6 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004891/0.4087, allocations: 239.9 kB / 0.4961 GB, free: 14.37 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000234/0.4089, allocations: 259.3 kB / 0.4964 GB, free: 14.11 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01002/0.4189, allocations: 6.127 MB / 0.5024 GB, free: 7.98 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03233/0.4513, allocations: 23.49 MB / 0.5253 GB, free: 15.83 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007752/0.4591, allocations: 8.979 MB / 0.5341 GB, free: 5.863 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003648/0.4628, allocations: 2.484 MB / 0.5365 GB, free: 3.371 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2042/0.667, allocations: 7.523 MB / 0.5439 GB, free: 119 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/0.6671, allocations: 58.19 kB / 0.5439 GB, free: 118.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=238): time 5.24e-06/0.6671, allocations: 0 / 0.5439 GB, free: 118.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=282): time 0.02661/0.6937, allocations: 13.82 MB / 0.5574 GB, free: 113.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/0.6938, allocations: 82.03 kB / 0.5575 GB, free: 113.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004072/0.6979, allocations: 3.446 MB / 0.5609 GB, free: 112.6 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001429/0.698, allocations: 73.42 kB / 0.5609 GB, free: 112.5 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0011/0.6991, allocations: 2.699 MB / 0.5636 GB, free: 110.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004713/0.6996, allocations: 0.9613 MB / 0.5645 GB, free: 109.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008463/0.7004, allocations: 0.6376 MB / 0.5651 GB, free: 109 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.138e-05/0.7005, allocations: 305.1 kB / 0.5654 GB, free: 108.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001997/0.7025, allocations: 1.541 MB / 0.5669 GB, free: 107.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002463/0.705, allocations: 2.756 MB / 0.5696 GB, free: 103.9 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004638/0.7096, allocations: 4.601 MB / 0.5741 GB, free: 98.68 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-05/0.7097, allocations: 15.28 kB / 0.5741 GB, free: 98.67 MB / 462.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.007288/0.7169, allocations: 5.486 MB / 0.5795 GB, free: 93.08 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/0.717, allocations: 27.98 kB / 0.5795 GB, free: 93.05 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.613e-05/0.717, allocations: 36 kB / 0.5795 GB, free: 93.02 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001358/0.7184, allocations: 0.6867 MB / 0.5802 GB, free: 92.32 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002653/0.7211, allocations: 0.8541 MB / 0.581 GB, free: 91.46 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007511/0.7286, allocations: 10.49 MB / 0.5913 GB, free: 80.45 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002704/0.7313, allocations: 227.6 kB / 0.5915 GB, free: 80.23 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002261/0.7315, allocations: 164 kB / 0.5917 GB, free: 80.07 MB / 462.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.002254/0.7338, allocations: 1.625 MB / 0.5932 GB, free: 78.43 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005907/0.7344, allocations: 403.3 kB / 0.5936 GB, free: 78.04 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006159/0.7406, allocations: 4.532 MB / 0.598 GB, free: 73.38 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.31e-05/0.7406, allocations: 36 kB / 0.5981 GB, free: 73.35 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.187e-05/0.7406, allocations: 15.5 kB / 0.5981 GB, free: 73.34 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.097e-05/0.7407, allocations: 15.94 kB / 0.5981 GB, free: 73.32 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01249/0.7532, allocations: 9.917 MB / 0.6078 GB, free: 63.24 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.174e-05/0.7532, allocations: 12.03 kB / 0.6078 GB, free: 63.23 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001885/0.7551, allocations: 499.3 kB / 0.6083 GB, free: 62.74 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001598/0.7567, allocations: 0.746 MB / 0.609 GB, free: 61.98 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001654/0.7569, allocations: 71.97 kB / 0.6091 GB, free: 61.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01047/0.7674, allocations: 14.25 MB / 0.623 GB, free: 46.84 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/0.7674, allocations: 7.938 kB / 0.623 GB, free: 46.83 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009783/0.7772, allocations: 6.606 MB / 0.6295 GB, free: 39.98 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001618/0.7788, allocations: 0.7773 MB / 0.6302 GB, free: 39.18 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004153/0.7793, allocations: 71.86 kB / 0.6303 GB, free: 39.11 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001675/0.7809, allocations: 159.8 kB / 0.6304 GB, free: 38.95 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004124/0.7814, allocations: 209.7 kB / 0.6306 GB, free: 38.75 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001651/0.7815, allocations: 83.97 kB / 0.6307 GB, free: 38.66 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002779/0.7843, allocations: 2.327 MB / 0.633 GB, free: 36.36 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7843, allocations: 0 / 0.633 GB, free: 36.36 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003114/0.7874, allocations: 1.099 MB / 0.6341 GB, free: 35.27 MB / 462.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.000516/0.788, allocations: 283.5 kB / 0.6343 GB, free: 34.99 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006007/0.794, allocations: 4.703 MB / 0.6389 GB, free: 30.17 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.794, allocations: 4 kB / 0.6389 GB, free: 30.17 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0037/0.7977, allocations: 2.854 MB / 0.6417 GB, free: 27.24 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003139/0.8009, allocations: 0.9206 MB / 0.6426 GB, free: 26.34 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0138/0.8147, allocations: 10.46 MB / 0.6528 GB, free: 15.79 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002338/0.817, allocations: 3.519 MB / 0.6563 GB, free: 12.23 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002259/0.8193, allocations: 0.8487 MB / 0.6571 GB, free: 11.38 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006529/0.82, allocations: 259.4 kB / 0.6573 GB, free: 11.12 MB / 462.1 MB Notification: Performance of SimCode: time 8.72e-07/0.82, allocations: 0 / 0.6573 GB, free: 11.12 MB / 462.1 MB Notification: Performance of Templates: time 0.08872/0.9087, allocations: 51.87 MB / 0.708 GB, free: 7.789 MB / 0.4981 GB 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 -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/jenkins/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/jenkins/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