Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 108.3 kB / 17.68 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00177/0.00177, allocations: 192 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.324/1.324, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.00101, allocations: 51.2 kB / 302.1 MB, free: 5.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09567/0.09669, allocations: 49.44 MB / 351.5 MB, free: 3.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.1871/0.2839, allocations: 24.11 MB / 375.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01311/0.297, allocations: 7.113 MB / 382.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005448/0.3025, allocations: 145 kB / 382.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005749/0.3082, allocations: 1.583 MB / 384.5 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01233/0.3206, allocations: 2.296 MB / 386.8 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006171/0.3268, allocations: 1.433 MB / 388.2 MB, free: 7.703 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01192/0.3388, allocations: 7.21 MB / 395.4 MB, free: 4.109 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01098/0.3498, allocations: 5.558 MB / 401 MB, free: 1.469 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007877/0.3577, allocations: 3.198 MB / 404.2 MB, free: 15.64 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007183/0.3649, allocations: 3.829 MB / 408 MB, free: 12.47 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002566/0.3675, allocations: 0.8711 MB / 408.9 MB, free: 11.6 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00458/0.3721, allocations: 1.306 MB / 410.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003846/0.376, allocations: 2.123 MB / 412.3 MB, free: 8.215 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008158/0.3842, allocations: 3.777 MB / 416.1 MB, free: 4.441 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01607/0.4003, allocations: 11.48 MB / 427.5 MB, free: 9.176 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/0.4003, allocations: 0 / 427.5 MB, free: 9.176 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.689e-06/0.4004, allocations: 0 / 427.5 MB, free: 9.176 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004784/0.4008, allocations: 3.938 kB / 427.5 MB, free: 9.172 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.02435/0.4252, allocations: 7.41 MB / 435 MB, free: 1.715 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.4253, allocations: 12.03 kB / 435 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00601/0.4313, allocations: 1.218 MB / 436.2 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008836/0.4402, allocations: 4.123 MB / 440.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003375/0.4405, allocations: 431.4 kB / 440.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001334/0.4419, allocations: 0.5587 MB / 441.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01408/0.456, allocations: 7.288 MB / 448.6 MB, free: 4.035 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001262/0.4561, allocations: 11.89 kB / 448.6 MB, free: 4.023 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005237/0.4566, allocations: 230.1 kB / 448.8 MB, free: 3.801 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002521/0.4569, allocations: 259.3 kB / 449.1 MB, free: 3.547 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01234/0.4693, allocations: 6.127 MB / 455.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04361/0.5129, allocations: 23.39 MB / 478.6 MB, free: 5.582 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008416/0.5214, allocations: 8.715 MB / 487.3 MB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004172/0.5256, allocations: 2.385 MB / 489.7 MB, free: 9.543 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01203/0.5376, allocations: 6.922 MB / 496.6 MB, free: 2.398 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.699e-05/0.5377, allocations: 56.56 kB / 496.7 MB, free: 2.336 MB / 398.1 MB Notification: Performance of pre-optimization done (n=238): time 4.789e-06/0.5377, allocations: 0 / 496.7 MB, free: 2.336 MB / 398.1 MB Notification: Performance of matching and sorting (n=282): time 0.03151/0.5692, allocations: 13.69 MB / 0.4984 GB, free: 4.43 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.978e-05/0.5693, allocations: 81.59 kB / 0.4985 GB, free: 4.336 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005181/0.5745, allocations: 3.428 MB / 0.5018 GB, free: 0.9219 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005068/0.575, allocations: 77.69 kB / 0.5019 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002033/0.5771, allocations: 2.666 MB / 0.5045 GB, free: 14.14 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001116/0.5782, allocations: 0.9743 MB / 0.5054 GB, free: 13.15 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009704/0.5792, allocations: 0.6333 MB / 0.5061 GB, free: 12.51 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.096e-05/0.5793, allocations: 301.1 kB / 0.5063 GB, free: 12.21 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002594/0.5819, allocations: 1.549 MB / 0.5079 GB, free: 10.66 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003399/0.5853, allocations: 2.756 MB / 0.5105 GB, free: 7.371 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006744/0.5921, allocations: 4.599 MB / 0.515 GB, free: 2.199 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.451e-05/0.5922, allocations: 16 kB / 0.5151 GB, free: 2.184 MB / 430.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.009773/0.6019, allocations: 5.467 MB / 0.5204 GB, free: 12.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.9e-05/0.602, allocations: 24 kB / 0.5204 GB, free: 12.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.288e-05/0.6021, allocations: 36 kB / 0.5204 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001529/0.6036, allocations: 0.6692 MB / 0.5211 GB, free: 11.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003062/0.6067, allocations: 0.858 MB / 0.5219 GB, free: 11.01 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01093/0.6176, allocations: 10.33 MB / 0.532 GB, free: 120 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.2248/0.8425, allocations: 215.3 kB / 0.5322 GB, free: 140.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007872/0.8433, allocations: 171.5 kB / 0.5324 GB, free: 140.2 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 (430): * Single equations (assignments): 420 * 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,3,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.003861/0.8472, allocations: 1.628 MB / 0.534 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001116/0.8483, allocations: 387.1 kB / 0.5344 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007501/0.8558, allocations: 4.495 MB / 0.5387 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-05/0.8559, allocations: 35.88 kB / 0.5388 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.057e-05/0.8559, allocations: 8.125 kB / 0.5388 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.081e-05/0.856, allocations: 13.88 kB / 0.5388 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01697/0.8729, allocations: 9.889 MB / 0.5485 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-05/0.873, allocations: 7.875 kB / 0.5485 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001997/0.875, allocations: 0.4918 MB / 0.5489 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001589/0.8766, allocations: 0.7258 MB / 0.5497 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001931/0.8768, allocations: 72 kB / 0.5497 GB, free: 134.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01077/0.8876, allocations: 14.11 MB / 0.5635 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.8876, allocations: 15.47 kB / 0.5635 GB, free: 123.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008972/0.8966, allocations: 6.592 MB / 0.57 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002147/0.8988, allocations: 0.7666 MB / 0.5707 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008312/0.8996, allocations: 57.97 kB / 0.5708 GB, free: 119.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002124/0.9018, allocations: 171.7 kB / 0.5709 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004606/0.9022, allocations: 212.4 kB / 0.5711 GB, free: 119.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001942/0.9024, allocations: 79.8 kB / 0.5712 GB, free: 119.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003691/0.9061, allocations: 2.302 MB / 0.5734 GB, free: 118.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.9062, allocations: 0 / 0.5734 GB, free: 118.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004585/0.9107, allocations: 1.095 MB / 0.5745 GB, free: 118.7 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 (238): * Single equations (assignments): 228 * 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,3,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.0008337/0.9116, allocations: 288.5 kB / 0.5748 GB, free: 118.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007108/0.9187, allocations: 4.693 MB / 0.5794 GB, free: 115.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.518e-06/0.9188, allocations: 0 / 0.5794 GB, free: 115.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003935/0.9227, allocations: 2.847 MB / 0.5822 GB, free: 113 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003909/0.9266, allocations: 0.9052 MB / 0.583 GB, free: 112.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01609/0.9428, allocations: 10.42 MB / 0.5932 GB, free: 101.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002545/0.9453, allocations: 3.495 MB / 0.5966 GB, free: 98.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002513/0.9479, allocations: 0.8601 MB / 0.5975 GB, free: 97.23 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006974/0.9486, allocations: 263.4 kB / 0.5977 GB, free: 96.98 MB / 446.1 MB Notification: Performance of SimCode: time 8.01e-07/0.9486, allocations: 7.828 kB / 0.5977 GB, free: 96.97 MB / 446.1 MB Notification: Performance of Templates: time 0.07477/1.023, allocations: 50.35 MB / 0.6469 GB, free: 47.25 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches