Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.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.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001505/0.001504, allocations: 106 kB / 17.16 MB, free: 6.32 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.002125/0.002125, allocations: 190 kB / 18.07 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.362/1.362, allocations: 205.1 MB / 223.9 MB, free: 12.47 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001734, allocations: 47.92 kB / 280 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1202, allocations: 46.62 MB / 326.6 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.02397/0.1442, allocations: 23.72 MB / 350.3 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01581/0.1601, allocations: 7.036 MB / 357.4 MB, free: 6.004 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005975/0.1662, allocations: 123.5 kB / 357.5 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006429/0.1727, allocations: 1.345 MB / 358.8 MB, free: 4.527 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01071/0.1834, allocations: 2.055 MB / 360.9 MB, free: 2.461 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005015/0.1885, allocations: 1.334 MB / 362.2 MB, free: 1.125 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01176/0.2002, allocations: 7.765 MB / 370 MB, free: 9.328 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007295/0.2076, allocations: 4.558 MB / 374.5 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005889/0.2135, allocations: 2.658 MB / 377.2 MB, free: 2.023 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1846/0.3981, allocations: 3.575 MB / 380.8 MB, free: 17.49 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002906/0.4011, allocations: 0.5115 MB / 381.3 MB, free: 17.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004055/0.4051, allocations: 0.9554 MB / 382.2 MB, free: 17.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002299/0.4075, allocations: 1.759 MB / 384 MB, free: 17.49 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006385/0.4139, allocations: 3.38 MB / 387.4 MB, free: 17.29 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0137/0.4276, allocations: 11.09 MB / 398.5 MB, free: 14.88 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.013e-06/0.4277, allocations: 0.75 kB / 398.5 MB, free: 14.88 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.4277, allocations: 5.031 kB / 398.5 MB, free: 14.87 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005298/0.4282, allocations: 3.5 kB / 398.5 MB, free: 14.87 MB / 318.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.02419/0.4524, allocations: 7.405 MB / 405.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.881e-05/0.4525, allocations: 12.91 kB / 405.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007719/0.4602, allocations: 1.226 MB / 407.1 MB, free: 9.977 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007491/0.4677, allocations: 3.673 MB / 410.8 MB, free: 7.555 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003018/0.4681, allocations: 444.1 kB / 411.2 MB, free: 7.355 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001409/0.4695, allocations: 0.5497 MB / 411.8 MB, free: 7.172 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01401/0.4835, allocations: 7.296 MB / 419.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001401/0.4837, allocations: 7.5 kB / 419.1 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005912/0.4843, allocations: 231.5 kB / 419.3 MB, free: 2.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001969/0.4845, allocations: 265.1 kB / 419.6 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01318/0.4976, allocations: 6.133 MB / 425.7 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05245/0.5501, allocations: 23.78 MB / 449.5 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009866/0.56, allocations: 8.76 MB / 458.2 MB, free: 12.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005359/0.5655, allocations: 2.385 MB / 460.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01571/0.5812, allocations: 7.024 MB / 467.6 MB, free: 2.887 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.851e-05/0.5813, allocations: 63.84 kB / 467.7 MB, free: 2.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=238): time 5.681e-06/0.5813, allocations: 0 / 467.7 MB, free: 2.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=282): time 0.03502/0.6163, allocations: 13.92 MB / 481.6 MB, free: 4.762 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.891e-05/0.6165, allocations: 81.59 kB / 481.7 MB, free: 4.668 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007921/0.6244, allocations: 3.497 MB / 485.2 MB, free: 1.188 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006319/0.6251, allocations: 69.7 kB / 485.3 MB, free: 1.113 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002216/0.6273, allocations: 2.676 MB / 487.9 MB, free: 14.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00149/0.6288, allocations: 0.9603 MB / 488.9 MB, free: 13.46 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001263/0.6301, allocations: 0.6392 MB / 489.5 MB, free: 12.82 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.6302, allocations: 305.1 kB / 489.8 MB, free: 12.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003166/0.6334, allocations: 1.569 MB / 491.4 MB, free: 10.95 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003819/0.6372, allocations: 2.767 MB / 494.2 MB, free: 7.664 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007291/0.6446, allocations: 4.625 MB / 498.8 MB, free: 2.625 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.465e-05/0.6446, allocations: 16 kB / 498.8 MB, free: 2.609 MB / 398.1 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.00987/0.6545, allocations: 5.519 MB / 0.4925 GB, free: 13.24 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.241e-05/0.6546, allocations: 24.06 kB / 0.4925 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.572e-05/0.6546, allocations: 40 kB / 0.4926 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001669/0.6563, allocations: 0.6825 MB / 0.4932 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003357/0.6597, allocations: 0.8686 MB / 0.4941 GB, free: 11.67 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009715/0.6694, allocations: 9.586 MB / 0.5035 GB, free: 1.609 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004022/0.6735, allocations: 235.7 kB / 0.5037 GB, free: 1.379 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006622/0.6742, allocations: 164 kB / 0.5038 GB, free: 1.219 MB / 414.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 (429): * Single equations (assignments): 419 * 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.003839/0.678, allocations: 1.632 MB / 0.5054 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001245/0.6793, allocations: 387.3 kB / 0.5058 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009295/0.6886, allocations: 4.559 MB / 0.5103 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.763e-05/0.6887, allocations: 28 kB / 0.5103 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.648e-05/0.6887, allocations: 8 kB / 0.5103 GB, free: 10.56 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-05/0.6887, allocations: 19.92 kB / 0.5103 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02564/0.7144, allocations: 10.04 MB / 0.5201 GB, free: 380 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.492e-05/0.7145, allocations: 4 kB / 0.5201 GB, free: 376 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002546/0.717, allocations: 0.5024 MB / 0.5206 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002237/0.7193, allocations: 0.7517 MB / 0.5213 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004068/0.7197, allocations: 74.41 kB / 0.5214 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01318/0.7329, allocations: 13.03 MB / 0.5341 GB, free: 1.273 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.7329, allocations: 5.781 kB / 0.5341 GB, free: 1.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1979/0.9308, allocations: 6.664 MB / 0.5406 GB, free: 154.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002851/0.9337, allocations: 0.7837 MB / 0.5414 GB, free: 154.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001364/0.9351, allocations: 62.39 kB / 0.5415 GB, free: 154.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00302/0.9381, allocations: 168.2 kB / 0.5416 GB, free: 154.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008022/0.939, allocations: 207.5 kB / 0.5418 GB, free: 154.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002719/0.9393, allocations: 84.11 kB / 0.5419 GB, free: 154.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00548/0.9447, allocations: 2.356 MB / 0.5442 GB, free: 154.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.82e-07/0.9448, allocations: 4.344 kB / 0.5442 GB, free: 154.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008299/0.9531, allocations: 1.113 MB / 0.5453 GB, free: 154 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.strayReluctance.Phi.re,smeeM.stator.strayReluctance.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.001288/0.9544, allocations: 280.5 kB / 0.5456 GB, free: 153.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008672/0.9631, allocations: 4.719 MB / 0.5502 GB, free: 151.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.257e-05/0.9631, allocations: 0 / 0.5502 GB, free: 151.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004959/0.9681, allocations: 2.86 MB / 0.553 GB, free: 150.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005421/0.9736, allocations: 0.8497 MB / 0.5538 GB, free: 150 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01779/0.9914, allocations: 12.97 MB / 0.5665 GB, free: 142.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003117/0.9945, allocations: 3.505 MB / 0.5699 GB, free: 140.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003113/0.9977, allocations: 0.8528 MB / 0.5707 GB, free: 139.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000747/0.9984, allocations: 263 kB / 0.571 GB, free: 139.5 MB / 446.1 MB Notification: Performance of SimCode: time 8.32e-07/0.9984, allocations: 0 / 0.571 GB, free: 139.5 MB / 446.1 MB Notification: Performance of Templates: time 0.08119/1.08, allocations: 52.57 MB / 0.6223 GB, free: 89.14 MB / 446.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_Generator/SMEE_Generator.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches