Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|Ptr|Pqs|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.strayReluctance.port_p.Phi.im|smee.stator.strayReluctance.port_p.Phi.re|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|Ptr|Pqs|smee.excitation.electroMagneticConverter.Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.strayReluctance.port_p.Phi.im|smee.stator.strayReluctance.port_p.Phi.re|smeeQS.short.port_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001435/0.001441, allocations: 170.7 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.331/1.331, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007766/0.0007763, allocations: 85.42 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000326/0.0003262, allocations: 8 kB / 327.5 MB, free: 15.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2195/0.2199, allocations: 47.57 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.02794/0.2479, allocations: 36.26 MB / 411.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01975/0.2677, allocations: 10.32 MB / 421.7 MB, free: 2.004 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008119/0.2759, allocations: 247.1 kB / 421.9 MB, free: 1.762 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006676/0.2826, allocations: 1.736 MB / 423.7 MB, free: 16 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01168/0.2943, allocations: 3.013 MB / 426.7 MB, free: 12.99 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006148/0.3005, allocations: 1.46 MB / 428.2 MB, free: 11.54 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01839/0.3189, allocations: 13.65 MB / 441.8 MB, free: 13.84 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03581/0.3548, allocations: 21.85 MB / 463.7 MB, free: 7.848 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007678/0.3625, allocations: 4.582 MB / 468.2 MB, free: 3.25 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008531/0.3711, allocations: 5.404 MB / 473.6 MB, free: 13.82 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002657/0.3738, allocations: 0.7188 MB / 474.4 MB, free: 13.11 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004953/0.3787, allocations: 1.109 MB / 475.5 MB, free: 12 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003512/0.3823, allocations: 2.332 MB / 477.8 MB, free: 9.656 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009364/0.3917, allocations: 5.489 MB / 483.3 MB, free: 4.137 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3746/0.7663, allocations: 20.21 MB / 0.4917 GB, free: 36.27 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.7664, allocations: 1.406 kB / 0.4917 GB, free: 36.27 MB / 378.8 MB Notification: Performance of FrontEnd: time 2.485e-06/0.7664, allocations: 0 / 0.4917 GB, free: 36.27 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.0008009/0.7672, allocations: 2.156 kB / 0.4917 GB, free: 36.27 MB / 378.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3112 * Number of variables: 3112 Notification: Performance of Generate backend data structure: time 0.03284/0.8, allocations: 12.05 MB / 0.5035 GB, free: 32.53 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.8001, allocations: 9.281 kB / 0.5035 GB, free: 32.53 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03275/0.8328, allocations: 6.178 MB / 0.5095 GB, free: 31.86 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01552/0.8484, allocations: 7.002 MB / 0.5163 GB, free: 30.79 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009762/0.8494, allocations: 0.857 MB / 0.5172 GB, free: 30.76 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004221/0.8537, allocations: 1.115 MB / 0.5183 GB, free: 30.75 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04149/0.8952, allocations: 17.12 MB / 0.535 GB, free: 22.78 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005102/0.8958, allocations: 11.91 kB / 0.535 GB, free: 22.77 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004281/0.9, allocations: 470.4 kB / 0.5354 GB, free: 22.68 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006743/0.9007, allocations: 0.6066 MB / 0.536 GB, free: 22.1 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0339/0.9346, allocations: 15.53 MB / 0.5512 GB, free: 12.31 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1035/1.038, allocations: 58.8 MB / 0.6086 GB, free: 2.23 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01942/1.058, allocations: 20.92 MB / 0.6291 GB, free: 10.74 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006065/1.064, allocations: 3.399 MB / 0.6324 GB, free: 7.344 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01778/1.082, allocations: 9.704 MB / 0.6419 GB, free: 13.62 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.684e-05/1.082, allocations: 69.56 kB / 0.6419 GB, free: 13.55 MB / 474.8 MB Notification: Performance of pre-optimization done (n=319): time 6.062e-06/1.082, allocations: 4 kB / 0.6419 GB, free: 13.55 MB / 474.8 MB Notification: Performance of matching and sorting (n=346): time 0.03524/1.117, allocations: 17.04 MB / 0.6586 GB, free: 12.34 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.322e-05/1.117, allocations: 120.4 kB / 0.6587 GB, free: 12.2 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008937/1.126, allocations: 5.377 MB / 0.6639 GB, free: 6.84 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006325/1.127, allocations: 81.7 kB / 0.664 GB, free: 6.754 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003513/1.13, allocations: 5.334 MB / 0.6692 GB, free: 1.395 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001478/1.132, allocations: 1.223 MB / 0.6704 GB, free: 184 kB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004866/1.132, allocations: 132 kB / 0.6705 GB, free: 52 kB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.19/1.322, allocations: 0.5776 MB / 0.6711 GB, free: 188.5 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005265/1.328, allocations: 2.789 MB / 0.6738 GB, free: 188.5 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006108/1.334, allocations: 5.843 MB / 0.6795 GB, free: 183.5 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01146/1.345, allocations: 9.059 MB / 0.6884 GB, free: 176.6 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001319/1.345, allocations: 29.66 kB / 0.6884 GB, free: 176.6 MB / 490.8 MB Notification: Performance of matching and sorting (n=873) (initialization): time 0.0192/1.365, allocations: 9.777 MB / 0.698 GB, free: 172.8 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.558e-05/1.365, allocations: 46.97 kB / 0.698 GB, free: 172.8 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000176/1.365, allocations: 102 kB / 0.6981 GB, free: 172.8 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002363/1.367, allocations: 0.9385 MB / 0.699 GB, free: 172.6 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00543/1.373, allocations: 1.587 MB / 0.7006 GB, free: 172.4 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01031/1.383, allocations: 9.772 MB / 0.7101 GB, free: 165.7 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00606/1.389, allocations: 443.6 kB / 0.7105 GB, free: 165.6 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001185/1.39, allocations: 362.2 kB / 0.7109 GB, free: 165.5 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 470 * 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 (821): * Single equations (assignments): 813 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(8,67.2%) 26,(2,100.0%) 8,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006644/1.397, allocations: 3.839 MB / 0.7146 GB, free: 162.5 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00128/1.398, allocations: 0.5143 MB / 0.7151 GB, free: 162.2 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009648/1.408, allocations: 6.021 MB / 0.721 GB, free: 157.1 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004438/1.413, allocations: 3.125 MB / 0.7241 GB, free: 154.4 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.392e-05/1.413, allocations: 12 kB / 0.7241 GB, free: 154.4 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.723e-05/1.413, allocations: 18.7 kB / 0.7241 GB, free: 154.4 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02403/1.437, allocations: 14.86 MB / 0.7386 GB, free: 140.9 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.56e-05/1.437, allocations: 8 kB / 0.7386 GB, free: 140.9 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00231/1.439, allocations: 0.6094 MB / 0.7392 GB, free: 140.2 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002159/1.441, allocations: 0.9085 MB / 0.7401 GB, free: 139.3 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002874/1.442, allocations: 81.05 kB / 0.7402 GB, free: 139.2 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01113/1.453, allocations: 12.89 MB / 0.7528 GB, free: 125.8 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/1.453, allocations: 7.938 kB / 0.7528 GB, free: 125.8 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01278/1.465, allocations: 8.707 MB / 0.7613 GB, free: 117.2 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003011/1.469, allocations: 1.048 MB / 0.7623 GB, free: 116.1 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00134/1.47, allocations: 72 kB / 0.7624 GB, free: 116.1 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002896/1.473, allocations: 211.8 kB / 0.7626 GB, free: 115.9 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006292/1.473, allocations: 258.5 kB / 0.7628 GB, free: 115.6 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002218/1.474, allocations: 99.98 kB / 0.7629 GB, free: 115.5 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.005806/1.48, allocations: 3.546 MB / 0.7664 GB, free: 112 MB / 490.8 MB Notification: Performance of sort global known variables: time 4.71e-07/1.48, allocations: 0 / 0.7664 GB, free: 112 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.007798/1.487, allocations: 1.835 MB / 0.7682 GB, free: 110.2 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smee.phiMechanical,smee.stator.zeroInductor.i0,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smeeQS.short.port_p.reference.gamma,mechanicalPowerSensorQS.relSpeedSensor.phi_rel) * 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 (301): * Single equations (assignments): 292 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8,(3,77.8%) 4,(8,62.5%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009247/1.488, allocations: 260.6 kB / 0.7684 GB, free: 109.9 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.012/1.5, allocations: 7.2 MB / 0.7754 GB, free: 102.6 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/1.5, allocations: 4.281 kB / 0.7754 GB, free: 102.6 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005726/1.506, allocations: 3.462 MB / 0.7788 GB, free: 99.12 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01018/1.516, allocations: 1.119 MB / 0.7799 GB, free: 98.02 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03328/1.55, allocations: 22.04 MB / 0.8014 GB, free: 75.91 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008008/1.558, allocations: 6.471 MB / 0.8078 GB, free: 69.4 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001974/1.56, allocations: 455.3 kB / 0.8082 GB, free: 68.95 MB / 490.8 MB Notification: Performance of SimCode: time 2.915e-06/1.56, allocations: 0 / 0.8082 GB, free: 68.95 MB / 490.8 MB Notification: Performance of Templates: time 0.7523/2.312, allocations: 395.9 MB / 1.195 GB, free: 30.37 MB / 490.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,Ptr,Pqs,smee.excitation.electroMagneticConverter.Phi.re,smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[1].Phi.re,smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.stator.strayReluctance.port_p.Phi.im,smee.stator.strayReluctance.port_p.Phi.re,smeeQS.short.port_p.reference.gamma Variables in the result:Pqs,Ptr,smee.excitation.electroMagneticConverter.Phi.re,smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[1].Phi.re,smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.stator.strayReluctance.port_p.Phi.im,smee.stator.strayReluctance.port_p.Phi.re,smeeQS.short.port_p.reference.gamma,time