Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001863/0.001863, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002296/0.002296, allocations: 213.2 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.513/1.513, allocations: 230.6 MB / 258.2 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,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.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,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.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001626, allocations: 51.92 kB / 379 MB, free: 2.426 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2597, allocations: 53.36 MB / 432.4 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.02677/0.2865, allocations: 21.32 MB / 453.7 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01523/0.3017, allocations: 7.094 MB / 460.8 MB, free: 10.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004766/0.3065, allocations: 182.9 kB / 461 MB, free: 9.984 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005492/0.312, allocations: 1.591 MB / 462.6 MB, free: 8.383 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008467/0.3204, allocations: 2.345 MB / 464.9 MB, free: 6.023 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004514/0.325, allocations: 1.478 MB / 466.4 MB, free: 4.551 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01077/0.3357, allocations: 7.272 MB / 473.7 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005677/0.3414, allocations: 3.025 MB / 476.7 MB, free: 10.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005886/0.3473, allocations: 3.294 MB / 480 MB, free: 6.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006988/0.3543, allocations: 3.739 MB / 483.7 MB, free: 3.086 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002371/0.3567, allocations: 0.8711 MB / 484.6 MB, free: 2.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003893/0.3605, allocations: 1.281 MB / 485.9 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003069/0.3636, allocations: 2.142 MB / 488 MB, free: 14.79 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005921/0.3695, allocations: 3.026 MB / 491 MB, free: 11.75 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01572/0.3853, allocations: 11.59 MB / 0.4909 GB, free: 116 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.3853, allocations: 4 kB / 0.4909 GB, free: 112 kB / 398.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.3853, allocations: 4 kB / 0.4909 GB, free: 108 kB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002988/0.3856, allocations: 0 / 0.4909 GB, free: 108 kB / 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.02051/0.4061, allocations: 7.535 MB / 0.4982 GB, free: 8.496 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.4061, allocations: 8.031 kB / 0.4982 GB, free: 8.488 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006692/0.4128, allocations: 1.265 MB / 0.4995 GB, free: 7.219 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0107/0.4235, allocations: 4.088 MB / 0.5035 GB, free: 3.055 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004522/0.424, allocations: 427.8 kB / 0.5039 GB, free: 2.637 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001722/0.4257, allocations: 0.5625 MB / 0.5044 GB, free: 2.074 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01648/0.4422, allocations: 7.568 MB / 0.5118 GB, free: 10.38 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001561/0.4423, allocations: 11.95 kB / 0.5118 GB, free: 10.37 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007553/0.4431, allocations: 232 kB / 0.512 GB, free: 10.14 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003238/0.4434, allocations: 259.3 kB / 0.5123 GB, free: 9.891 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0134/0.4568, allocations: 6.119 MB / 0.5183 GB, free: 3.766 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.245/0.7017, allocations: 20.31 MB / 0.5381 GB, free: 91.45 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007299/0.709, allocations: 3.9 MB / 0.5419 GB, free: 91.33 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003888/0.7129, allocations: 2.288 MB / 0.5441 GB, free: 91.29 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01104/0.724, allocations: 5.638 MB / 0.5496 GB, free: 88.87 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.724, allocations: 59.84 kB / 0.5497 GB, free: 88.81 MB / 446.1 MB Notification: Performance of pre-optimization done (n=238): time 6.472e-06/0.724, allocations: 3.438 kB / 0.5497 GB, free: 88.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=282): time 0.02993/0.7539, allocations: 13.18 MB / 0.5626 GB, free: 81.84 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.754, allocations: 89.53 kB / 0.5627 GB, free: 81.74 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003849/0.7578, allocations: 3.065 MB / 0.5657 GB, free: 78.72 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003835/0.7582, allocations: 73.7 kB / 0.5657 GB, free: 78.64 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001144/0.7593, allocations: 2.79 MB / 0.5684 GB, free: 76.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000716/0.7601, allocations: 1.016 MB / 0.5694 GB, free: 75.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008018/0.7609, allocations: 0.6411 MB / 0.5701 GB, free: 74.56 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.879e-05/0.7609, allocations: 301.1 kB / 0.5704 GB, free: 74.26 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002145/0.763, allocations: 1.549 MB / 0.5719 GB, free: 72.71 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002499/0.7655, allocations: 2.781 MB / 0.5746 GB, free: 69.39 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004943/0.7705, allocations: 4.599 MB / 0.5791 GB, free: 64.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.698e-05/0.7705, allocations: 12 kB / 0.5791 GB, free: 64.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.008218/0.7787, allocations: 5.321 MB / 0.5843 GB, free: 58.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.256e-05/0.7788, allocations: 20 kB / 0.5843 GB, free: 58.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.666e-05/0.7788, allocations: 40 kB / 0.5843 GB, free: 58.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001382/0.7802, allocations: 0.677 MB / 0.585 GB, free: 58.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003046/0.7833, allocations: 0.854 MB / 0.5858 GB, free: 57.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007701/0.791, allocations: 9.88 MB / 0.5955 GB, free: 46.95 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003243/0.7942, allocations: 223.7 kB / 0.5957 GB, free: 46.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004648/0.7947, allocations: 175.2 kB / 0.5959 GB, free: 46.56 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.002588/0.7973, allocations: 1.625 MB / 0.5974 GB, free: 44.92 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007964/0.7981, allocations: 369.7 kB / 0.5978 GB, free: 44.56 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006568/0.8046, allocations: 4.247 MB / 0.6019 GB, free: 40.24 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.881e-05/0.8047, allocations: 39.94 kB / 0.602 GB, free: 40.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.411e-05/0.8047, allocations: 8 kB / 0.602 GB, free: 40.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.432e-05/0.8047, allocations: 15.89 kB / 0.602 GB, free: 40.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01464/0.8193, allocations: 8.368 MB / 0.6102 GB, free: 31.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.509e-05/0.8193, allocations: 8 kB / 0.6102 GB, free: 31.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002118/0.8215, allocations: 0.4921 MB / 0.6107 GB, free: 31.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001723/0.8232, allocations: 0.735 MB / 0.6114 GB, free: 30.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003387/0.8235, allocations: 71.97 kB / 0.6115 GB, free: 30.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009954/0.8335, allocations: 13.4 MB / 0.6245 GB, free: 16.39 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.8335, allocations: 7.938 kB / 0.6245 GB, free: 16.39 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00953/0.843, allocations: 6.351 MB / 0.6307 GB, free: 9.844 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002077/0.8451, allocations: 0.6689 MB / 0.6314 GB, free: 9.176 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006801/0.8458, allocations: 63.98 kB / 0.6315 GB, free: 9.113 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002037/0.8478, allocations: 159.8 kB / 0.6316 GB, free: 8.957 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004173/0.8482, allocations: 217.6 kB / 0.6318 GB, free: 8.742 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001691/0.8484, allocations: 87.97 kB / 0.6319 GB, free: 8.656 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002894/0.8513, allocations: 2.008 MB / 0.6339 GB, free: 6.656 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.8513, allocations: 0 / 0.6339 GB, free: 6.656 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004206/0.8555, allocations: 1.09 MB / 0.6349 GB, free: 5.566 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.0007325/0.8562, allocations: 287.8 kB / 0.6352 GB, free: 5.285 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006618/0.8629, allocations: 4.396 MB / 0.6395 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.297e-06/0.8629, allocations: 0 / 0.6395 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004808/0.8677, allocations: 2.718 MB / 0.6422 GB, free: 14.01 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003907/0.8716, allocations: 0.7436 MB / 0.6429 GB, free: 13.27 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02032/0.8919, allocations: 10.6 MB / 0.6532 GB, free: 2.555 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004129/0.896, allocations: 2.93 MB / 0.6561 GB, free: 15.59 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001308/0.8973, allocations: 279.4 kB / 0.6564 GB, free: 15.31 MB / 478.1 MB Notification: Performance of SimCode: time 1.002e-06/0.8973, allocations: 0 / 0.6564 GB, free: 15.31 MB / 478.1 MB Notification: Performance of Templates: time 0.4432/1.341, allocations: 240.7 MB / 0.8914 GB, free: 63.12 MB / 0.545 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 19.959803125355393]