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.001144/0.001144, allocations: 94.25 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001884/0.001885, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 227.7 MB / 246.8 MB, free: 9.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002055/0.0002056, allocations: 4.281 kB / 307.7 MB, free: 0.5625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08899/0.08921, allocations: 51.53 MB / 359.3 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.1886/0.2779, allocations: 23.46 MB / 382.7 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01313/0.291, allocations: 7.214 MB / 389.9 MB, free: 4.242 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004552/0.2956, allocations: 137 kB / 390.1 MB, free: 4.211 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004399/0.3, allocations: 1.365 MB / 391.4 MB, free: 3.551 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007765/0.3078, allocations: 2.041 MB / 393.5 MB, free: 2.227 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004537/0.3124, allocations: 1.347 MB / 394.8 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01277/0.3251, allocations: 7.877 MB / 402.7 MB, free: 13.29 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006628/0.3318, allocations: 4.596 MB / 407.3 MB, free: 10.9 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004334/0.3362, allocations: 2.331 MB / 409.6 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006563/0.3428, allocations: 3.162 MB / 412.8 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001744/0.3445, allocations: 360 kB / 413.1 MB, free: 5.793 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003027/0.3476, allocations: 0.8078 MB / 413.9 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001516/0.3491, allocations: 1.514 MB / 415.5 MB, free: 3.465 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004431/0.3536, allocations: 3.134 MB / 418.6 MB, free: 316 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01109/0.3647, allocations: 10.79 MB / 429.4 MB, free: 5.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3647, allocations: 0 / 429.4 MB, free: 5.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3647, allocations: 0 / 429.4 MB, free: 5.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003378/0.365, allocations: 0 / 429.4 MB, free: 5.48 MB / 334.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.0171/0.3822, allocations: 6.286 MB / 435.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.3822, allocations: 8.031 kB / 435.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008524/0.3907, allocations: 1.27 MB / 436.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008613/0.3994, allocations: 3.873 MB / 440.8 MB, free: 9.883 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004511/0.3999, allocations: 448.2 kB / 441.3 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001406/0.4013, allocations: 0.5545 MB / 441.8 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01478/0.4161, allocations: 7.315 MB / 449.1 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001428/0.4163, allocations: 11.89 kB / 449.1 MB, free: 1.504 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000558/0.4168, allocations: 239.9 kB / 449.4 MB, free: 1.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002779/0.4171, allocations: 263.3 kB / 449.6 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01251/0.4296, allocations: 6.193 MB / 455.8 MB, free: 10.81 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04782/0.4775, allocations: 24.04 MB / 479.9 MB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009343/0.4869, allocations: 9.027 MB / 488.9 MB, free: 8.098 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004897/0.4918, allocations: 2.508 MB / 491.4 MB, free: 5.578 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01496/0.5068, allocations: 7.636 MB / 499 MB, free: 13.58 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.023e-05/0.5069, allocations: 60.56 kB / 499.1 MB, free: 13.52 MB / 414.1 MB Notification: Performance of pre-optimization done (n=238): time 4.669e-06/0.5069, allocations: 0 / 499.1 MB, free: 13.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=282): time 0.03989/0.5468, allocations: 14.68 MB / 0.5017 GB, free: 14.62 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.035e-05/0.5469, allocations: 81.59 kB / 0.5018 GB, free: 14.53 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006926/0.5538, allocations: 3.512 MB / 0.5052 GB, free: 11.04 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005086/0.5544, allocations: 73.7 kB / 0.5053 GB, free: 10.96 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002345/0.5567, allocations: 2.694 MB / 0.5079 GB, free: 8.23 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001407/0.5581, allocations: 0.9628 MB / 0.5089 GB, free: 7.254 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006151/0.5588, allocations: 285.6 kB / 0.5092 GB, free: 6.969 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.593e-05/0.5589, allocations: 305.1 kB / 0.5094 GB, free: 6.668 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003356/0.5622, allocations: 1.592 MB / 0.511 GB, free: 5.074 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004027/0.5663, allocations: 2.802 MB / 0.5137 GB, free: 1.738 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007501/0.5738, allocations: 4.688 MB / 0.5183 GB, free: 12.48 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.926e-05/0.5739, allocations: 12 kB / 0.5183 GB, free: 12.46 MB / 446.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.01129/0.5852, allocations: 5.604 MB / 0.5238 GB, free: 6.754 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.359e-05/0.5853, allocations: 22.81 kB / 0.5238 GB, free: 6.734 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.656e-05/0.5853, allocations: 40.62 kB / 0.5239 GB, free: 6.695 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001837/0.5872, allocations: 0.6998 MB / 0.5245 GB, free: 5.977 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003505/0.5907, allocations: 0.8658 MB / 0.5254 GB, free: 5.109 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2242/0.815, allocations: 9.747 MB / 0.5349 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003816/0.8188, allocations: 247.3 kB / 0.5351 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003114/0.8191, allocations: 173.3 kB / 0.5353 GB, free: 132.8 MB / 446.1 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 (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.003076/0.8222, allocations: 1.63 MB / 0.5369 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007849/0.823, allocations: 389.6 kB / 0.5373 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007947/0.831, allocations: 4.648 MB / 0.5418 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.885e-05/0.831, allocations: 31.77 kB / 0.5418 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.837e-05/0.8311, allocations: 7.938 kB / 0.5418 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-05/0.8311, allocations: 13.59 kB / 0.5419 GB, free: 130.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01627/0.8474, allocations: 10.12 MB / 0.5517 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-05/0.8474, allocations: 5.031 kB / 0.5517 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002167/0.8496, allocations: 0.5087 MB / 0.5522 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001822/0.8514, allocations: 0.7678 MB / 0.553 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002006/0.8517, allocations: 74.86 kB / 0.5531 GB, free: 125.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01047/0.8621, allocations: 13.2 MB / 0.566 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.004e-06/0.8622, allocations: 9.438 kB / 0.566 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009756/0.8719, allocations: 6.785 MB / 0.5726 GB, free: 112.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001923/0.8739, allocations: 0.7939 MB / 0.5734 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006789/0.8746, allocations: 67.81 kB / 0.5734 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002103/0.8767, allocations: 187.8 kB / 0.5736 GB, free: 112 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000461/0.8772, allocations: 208.6 kB / 0.5738 GB, free: 111.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001883/0.8774, allocations: 86.48 kB / 0.5739 GB, free: 111.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004114/0.8815, allocations: 2.378 MB / 0.5762 GB, free: 110.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.8815, allocations: 0 / 0.5762 GB, free: 110.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005232/0.8868, allocations: 1.121 MB / 0.5773 GB, free: 110.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.001099/0.8879, allocations: 289.6 kB / 0.5776 GB, free: 110.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007465/0.8954, allocations: 4.797 MB / 0.5823 GB, free: 105.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.307e-06/0.8954, allocations: 0 / 0.5823 GB, free: 105.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004528/0.9, allocations: 2.902 MB / 0.5851 GB, free: 102.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007221/0.9072, allocations: 0.8798 MB / 0.586 GB, free: 101.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01649/0.9237, allocations: 13.19 MB / 0.5988 GB, free: 88.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00258/0.9264, allocations: 3.511 MB / 0.6023 GB, free: 84.75 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002939/0.9293, allocations: 0.8562 MB / 0.6031 GB, free: 83.89 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007226/0.9301, allocations: 263.3 kB / 0.6034 GB, free: 83.63 MB / 446.1 MB Notification: Performance of SimCode: time 7.42e-07/0.9301, allocations: 0 / 0.6034 GB, free: 83.63 MB / 446.1 MB Notification: Performance of Templates: time 0.07515/1.005, allocations: 52.14 MB / 0.6543 GB, free: 31.91 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