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.001127/0.001128, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001215/0.001215, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 60.12 kB / 307 MB, free: 0.6172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08088/0.08207, allocations: 50.54 MB / 357.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.1962/0.2783, allocations: 24.75 MB / 382.2 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01391/0.2922, allocations: 7.409 MB / 389.6 MB, free: 3.508 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004657/0.297, allocations: 145.5 kB / 389.8 MB, free: 3.477 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004275/0.3013, allocations: 1.591 MB / 391.4 MB, free: 2.617 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006938/0.3082, allocations: 2.258 MB / 393.6 MB, free: 1.121 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003678/0.3119, allocations: 1.501 MB / 395.1 MB, free: 184 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01062/0.3225, allocations: 7.216 MB / 402.4 MB, free: 12.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007506/0.3301, allocations: 5.568 MB / 407.9 MB, free: 9.316 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006236/0.3363, allocations: 3.197 MB / 411.1 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006763/0.3431, allocations: 3.954 MB / 415.1 MB, free: 2.703 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001847/0.345, allocations: 0.8711 MB / 415.9 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00363/0.3486, allocations: 1.312 MB / 417.3 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002022/0.3507, allocations: 2.127 MB / 419.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005627/0.3563, allocations: 3.792 MB / 423.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01228/0.3686, allocations: 11.41 MB / 434.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.3687, allocations: 4 kB / 434.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3687, allocations: 0 / 434.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003149/0.369, allocations: 0 / 434.6 MB, free: 15.12 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.01892/0.3879, allocations: 7.468 MB / 442.1 MB, free: 7.574 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.388, allocations: 12.03 kB / 442.1 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00614/0.3941, allocations: 1.254 MB / 443.3 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008678/0.4028, allocations: 4.048 MB / 447.4 MB, free: 2.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003641/0.4032, allocations: 440.1 kB / 447.8 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001022/0.4042, allocations: 0.5661 MB / 448.4 MB, free: 1.184 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01288/0.4171, allocations: 7.276 MB / 455.6 MB, free: 9.852 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001153/0.4173, allocations: 11.89 kB / 455.7 MB, free: 9.84 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005196/0.4178, allocations: 240 kB / 455.9 MB, free: 9.605 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002581/0.4181, allocations: 259.3 kB / 456.1 MB, free: 9.352 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01049/0.4286, allocations: 6.127 MB / 462.3 MB, free: 3.219 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03724/0.4658, allocations: 23.77 MB / 486 MB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008523/0.4744, allocations: 8.976 MB / 495 MB, free: 0.8359 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004038/0.4785, allocations: 2.484 MB / 497.5 MB, free: 14.34 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01219/0.4907, allocations: 7.538 MB / 0.4932 GB, free: 6.441 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.538e-05/0.4907, allocations: 60.5 kB / 0.4933 GB, free: 6.375 MB / 414.1 MB Notification: Performance of pre-optimization done (n=238): time 5.981e-06/0.4908, allocations: 3.984 kB / 0.4933 GB, free: 6.371 MB / 414.1 MB Notification: Performance of matching and sorting (n=282): time 0.03317/0.5239, allocations: 13.83 MB / 0.5068 GB, free: 8.324 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.524, allocations: 77.59 kB / 0.5068 GB, free: 8.234 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004731/0.5287, allocations: 3.453 MB / 0.5102 GB, free: 4.797 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002534/0.529, allocations: 69.7 kB / 0.5103 GB, free: 4.723 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00171/0.5307, allocations: 2.694 MB / 0.5129 GB, free: 1.996 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000698/0.5314, allocations: 0.9667 MB / 0.5139 GB, free: 1.016 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008903/0.5323, allocations: 0.6372 MB / 0.5145 GB, free: 380 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.592e-05/0.5324, allocations: 309.1 kB / 0.5148 GB, free: 68 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002449/0.5349, allocations: 1.538 MB / 0.5163 GB, free: 14.53 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003115/0.538, allocations: 2.759 MB / 0.519 GB, free: 11.23 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005798/0.5438, allocations: 4.595 MB / 0.5235 GB, free: 6.062 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.595e-05/0.5438, allocations: 12 kB / 0.5235 GB, free: 6.051 MB / 446.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.00893/0.5528, allocations: 5.49 MB / 0.5288 GB, free: 464 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.403e-05/0.5528, allocations: 24 kB / 0.5288 GB, free: 440 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.158e-05/0.5529, allocations: 36 kB / 0.5289 GB, free: 404 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1512/0.7041, allocations: 0.6917 MB / 0.5296 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003349/0.7075, allocations: 0.8511 MB / 0.5304 GB, free: 138.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008626/0.7161, allocations: 10.49 MB / 0.5406 GB, free: 132 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003114/0.7193, allocations: 225.2 kB / 0.5408 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002984/0.7196, allocations: 166.8 kB / 0.541 GB, free: 131.9 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.002672/0.7223, allocations: 1.631 MB / 0.5426 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008406/0.7231, allocations: 396.8 kB / 0.543 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007394/0.7305, allocations: 4.528 MB / 0.5474 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.296e-05/0.7306, allocations: 34.75 kB / 0.5474 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.497e-05/0.7306, allocations: 9.031 kB / 0.5474 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.883e-05/0.7306, allocations: 13.03 kB / 0.5475 GB, free: 129 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01414/0.7448, allocations: 9.945 MB / 0.5572 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.21e-05/0.7448, allocations: 7.906 kB / 0.5572 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001843/0.7467, allocations: 0.4957 MB / 0.5577 GB, free: 124.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001565/0.7482, allocations: 0.751 MB / 0.5584 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001669/0.7484, allocations: 74.59 kB / 0.5585 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009915/0.7583, allocations: 14.27 MB / 0.5724 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.7584, allocations: 8.234 kB / 0.5724 GB, free: 112.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008899/0.7673, allocations: 6.605 MB / 0.5789 GB, free: 109.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00174/0.7691, allocations: 0.7689 MB / 0.5796 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005264/0.7696, allocations: 65.05 kB / 0.5797 GB, free: 109.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001775/0.7714, allocations: 163.4 kB / 0.5798 GB, free: 109.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003883/0.7718, allocations: 212.9 kB / 0.58 GB, free: 109.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001479/0.7719, allocations: 85.22 kB / 0.5801 GB, free: 109.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002767/0.7747, allocations: 2.329 MB / 0.5824 GB, free: 107 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7747, allocations: 0 / 0.5824 GB, free: 107 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003294/0.778, allocations: 1.113 MB / 0.5835 GB, free: 105.9 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.0005272/0.7785, allocations: 287 kB / 0.5837 GB, free: 105.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01211/0.7907, allocations: 6.667 MB / 0.5903 GB, free: 98.85 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.134e-06/0.7907, allocations: 0 / 0.5903 GB, free: 98.85 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003679/0.7944, allocations: 2.859 MB / 0.593 GB, free: 95.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004015/0.7984, allocations: 0.9161 MB / 0.5939 GB, free: 95.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01353/0.812, allocations: 10.59 MB / 0.6043 GB, free: 84.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002357/0.8143, allocations: 3.511 MB / 0.6077 GB, free: 80.81 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002771/0.8171, allocations: 0.8525 MB / 0.6085 GB, free: 79.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006449/0.8178, allocations: 263.4 kB / 0.6088 GB, free: 79.7 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.8178, allocations: 5.531 kB / 0.6088 GB, free: 79.69 MB / 446.1 MB Notification: Performance of Templates: time 0.07156/0.8894, allocations: 54.01 MB / 0.6615 GB, free: 26.17 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 -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