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.001725/0.001725, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001982/0.001982, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.394/1.394, allocations: 222.9 MB / 242.2 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009828/0.0009828, allocations: 52.39 kB / 301.3 MB, free: 5.828 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09564/0.09664, allocations: 49.44 MB / 350.7 MB, free: 4.379 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.208/0.3047, allocations: 24.1 MB / 374.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01476/0.3195, allocations: 7.128 MB / 382 MB, free: 10 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00606/0.3256, allocations: 142.9 kB / 382.1 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006182/0.3318, allocations: 1.577 MB / 383.7 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01032/0.3422, allocations: 2.293 MB / 386 MB, free: 8.117 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004897/0.3471, allocations: 1.448 MB / 387.4 MB, free: 7.328 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01154/0.3587, allocations: 7.159 MB / 394.6 MB, free: 3.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007731/0.3664, allocations: 5.56 MB / 400.1 MB, free: 1.344 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005993/0.3725, allocations: 3.19 MB / 403.3 MB, free: 15.53 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007353/0.3799, allocations: 3.815 MB / 407.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00259/0.3825, allocations: 0.8711 MB / 408 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004952/0.3875, allocations: 1.314 MB / 409.3 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002643/0.3901, allocations: 2.129 MB / 411.5 MB, free: 8.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007712/0.3979, allocations: 3.782 MB / 415.2 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01445/0.4123, allocations: 11.38 MB / 426.6 MB, free: 9.254 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.4124, allocations: 0 / 426.6 MB, free: 9.254 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4124, allocations: 0 / 426.6 MB, free: 9.254 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003468/0.4128, allocations: 0 / 426.6 MB, free: 9.254 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.0215/0.4343, allocations: 7.414 MB / 434 MB, free: 1.789 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.4343, allocations: 8.031 kB / 434 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006489/0.4408, allocations: 1.225 MB / 435.3 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008423/0.4493, allocations: 4.024 MB / 439.3 MB, free: 12.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003871/0.4497, allocations: 442.6 kB / 439.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001293/0.451, allocations: 0.5614 MB / 440.3 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01594/0.467, allocations: 7.277 MB / 447.6 MB, free: 4.203 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001492/0.4672, allocations: 15.84 kB / 447.6 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005589/0.4677, allocations: 231.1 kB / 447.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000275/0.468, allocations: 263.3 kB / 448.1 MB, free: 3.707 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01294/0.481, allocations: 6.123 MB / 454.2 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04537/0.5264, allocations: 23.67 MB / 477.9 MB, free: 5.457 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009558/0.536, allocations: 8.72 MB / 486.6 MB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004328/0.5403, allocations: 2.385 MB / 489 MB, free: 9.414 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01383/0.5542, allocations: 6.93 MB / 495.9 MB, free: 2.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.061e-05/0.5543, allocations: 60.56 kB / 496 MB, free: 2.273 MB / 398.1 MB Notification: Performance of pre-optimization done (n=238): time 6.642e-06/0.5543, allocations: 7.984 kB / 496 MB, free: 2.266 MB / 398.1 MB Notification: Performance of matching and sorting (n=282): time 0.03508/0.5894, allocations: 13.7 MB / 0.4977 GB, free: 4.371 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.929e-05/0.5895, allocations: 81.53 kB / 0.4978 GB, free: 4.277 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005759/0.5953, allocations: 3.424 MB / 0.5011 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005547/0.5959, allocations: 69.7 kB / 0.5012 GB, free: 0.793 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002161/0.598, allocations: 2.697 MB / 0.5038 GB, free: 14.15 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009448/0.599, allocations: 0.9653 MB / 0.5048 GB, free: 13.2 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000956/0.6, allocations: 0.637 MB / 0.5054 GB, free: 12.55 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.251e-05/0.6001, allocations: 301.1 kB / 0.5057 GB, free: 12.26 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002632/0.6027, allocations: 1.545 MB / 0.5072 GB, free: 10.7 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003408/0.6061, allocations: 2.763 MB / 0.5099 GB, free: 7.402 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006344/0.6125, allocations: 4.595 MB / 0.5144 GB, free: 2.234 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.447e-05/0.6125, allocations: 16 kB / 0.5144 GB, free: 2.219 MB / 430.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.009824/0.6224, allocations: 5.459 MB / 0.5197 GB, free: 12.66 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.838e-05/0.6224, allocations: 20.66 kB / 0.5197 GB, free: 12.64 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.445e-05/0.6225, allocations: 40 kB / 0.5198 GB, free: 12.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001585/0.6241, allocations: 0.6639 MB / 0.5204 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003137/0.6272, allocations: 0.858 MB / 0.5213 GB, free: 11.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01038/0.6376, allocations: 10.35 MB / 0.5314 GB, free: 156 kB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.192/0.8297, allocations: 220.5 kB / 0.5316 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008705/0.8306, allocations: 168.7 kB / 0.5318 GB, free: 141.5 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.003842/0.8345, allocations: 1.623 MB / 0.5333 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001118/0.8356, allocations: 388.3 kB / 0.5337 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008243/0.8439, allocations: 4.501 MB / 0.5381 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.414e-05/0.8439, allocations: 33.28 kB / 0.5381 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.371e-05/0.844, allocations: 7.094 kB / 0.5381 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-05/0.844, allocations: 12.73 kB / 0.5382 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01796/0.862, allocations: 9.913 MB / 0.5478 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.62e-05/0.862, allocations: 5.656 kB / 0.5478 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00214/0.8642, allocations: 0.4905 MB / 0.5483 GB, free: 135.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001688/0.8659, allocations: 0.7369 MB / 0.549 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000251/0.8662, allocations: 74.92 kB / 0.5491 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01053/0.8767, allocations: 14.11 MB / 0.5629 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.803e-06/0.8767, allocations: 13 kB / 0.5629 GB, free: 124.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009802/0.8866, allocations: 6.584 MB / 0.5693 GB, free: 121.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001721/0.8883, allocations: 0.7681 MB / 0.5701 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006271/0.889, allocations: 67.56 kB / 0.5701 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001965/0.8909, allocations: 162.1 kB / 0.5703 GB, free: 120.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004363/0.8914, allocations: 214.5 kB / 0.5705 GB, free: 120.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000165/0.8915, allocations: 81.31 kB / 0.5706 GB, free: 120.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003037/0.8946, allocations: 2.307 MB / 0.5728 GB, free: 120 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8946, allocations: 0 / 0.5728 GB, free: 120 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003965/0.8986, allocations: 1.093 MB / 0.5739 GB, free: 119.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 (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.000676/0.8993, allocations: 294 kB / 0.5742 GB, free: 119.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0134/0.9127, allocations: 6.668 MB / 0.5807 GB, free: 115.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/0.9127, allocations: 0 / 0.5807 GB, free: 115.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0043/0.917, allocations: 2.848 MB / 0.5835 GB, free: 112.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004546/0.9216, allocations: 0.8966 MB / 0.5844 GB, free: 111.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01611/0.9377, allocations: 10.58 MB / 0.5947 GB, free: 100.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002624/0.9404, allocations: 3.424 MB / 0.598 GB, free: 97.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001235/0.9417, allocations: 291.4 kB / 0.5983 GB, free: 97.18 MB / 446.1 MB Notification: Performance of SimCode: time 1.423e-06/0.9417, allocations: 0 / 0.5983 GB, free: 97.18 MB / 446.1 MB Notification: Performance of Templates: time 0.3585/1.3, allocations: 239.2 MB / 0.8319 GB, free: 42.15 MB / 462.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 -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