Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001309/0.001309, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 226.6 MB / 244.3 MB, free: 8.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008313/0.0008312, allocations: 95.28 kB / 296.4 MB, free: 7.039 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002368/0.0002368, allocations: 4 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2393/0.2396, allocations: 51.29 MB / 407.5 MB, free: 27.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.02283/0.2625, allocations: 33.13 MB / 440.7 MB, free: 10.62 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01715/0.2797, allocations: 9.51 MB / 450.2 MB, free: 1.102 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005175/0.2849, allocations: 251.2 kB / 450.4 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004784/0.2897, allocations: 1.856 MB / 452.3 MB, free: 14.98 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0087/0.2984, allocations: 3.215 MB / 455.5 MB, free: 11.76 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004192/0.3026, allocations: 1.536 MB / 457 MB, free: 10.23 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01668/0.3193, allocations: 15.63 MB / 472.6 MB, free: 10.55 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03226/0.3516, allocations: 20.38 MB / 493 MB, free: 6.074 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007227/0.3588, allocations: 5.182 MB / 498.2 MB, free: 0.875 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008415/0.3673, allocations: 5.868 MB / 0.4923 GB, free: 10.98 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002188/0.3695, allocations: 0.7969 MB / 0.493 GB, free: 10.19 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004155/0.3737, allocations: 1.183 MB / 0.4942 GB, free: 9.004 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002103/0.3758, allocations: 2.511 MB / 0.4966 GB, free: 6.484 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003726/0.3795, allocations: 2.628 MB / 0.4992 GB, free: 3.844 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3403/0.7198, allocations: 22.68 MB / 0.5214 GB, free: 25.27 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.7199, allocations: 0 / 0.5214 GB, free: 25.27 MB / 378.8 MB Notification: Performance of FrontEnd: time 3.196e-06/0.7199, allocations: 0 / 0.5214 GB, free: 25.27 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.0006355/0.7205, allocations: 3.5 kB / 0.5214 GB, free: 25.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: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.033/0.7535, allocations: 13.4 MB / 0.5344 GB, free: 18.64 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.7536, allocations: 15.45 kB / 0.5345 GB, free: 18.64 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03284/0.7864, allocations: 6.439 MB / 0.5407 GB, free: 16.15 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01809/0.8046, allocations: 8.182 MB / 0.5487 GB, free: 13.95 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007644/0.8054, allocations: 0.9083 MB / 0.5496 GB, free: 13.92 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00497/0.8103, allocations: 1.197 MB / 0.5508 GB, free: 13.91 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04202/0.8524, allocations: 18.7 MB / 0.5691 GB, free: 3.82 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003381/0.8528, allocations: 15.81 kB / 0.5691 GB, free: 3.805 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001927/0.8547, allocations: 0.4986 MB / 0.5696 GB, free: 3.703 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005221/0.8552, allocations: 0.6522 MB / 0.5702 GB, free: 3.09 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03693/0.8922, allocations: 16.94 MB / 0.5867 GB, free: 4.938 MB / 394.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1164/1.009, allocations: 64.1 MB / 0.6493 GB, free: 4.047 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02942/1.038, allocations: 30 MB / 0.6786 GB, free: 2.535 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2542/1.292, allocations: 4.103 MB / 0.6826 GB, free: 168.8 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01949/1.312, allocations: 10.5 MB / 0.6929 GB, free: 165.6 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.583e-05/1.312, allocations: 85.44 kB / 0.693 GB, free: 165.6 MB / 490.8 MB Notification: Performance of pre-optimization done (n=408): time 7.243e-06/1.312, allocations: 0 / 0.693 GB, free: 165.6 MB / 490.8 MB Notification: Performance of matching and sorting (n=418): time 0.04422/1.356, allocations: 21.72 MB / 0.7142 GB, free: 156.1 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.882e-05/1.356, allocations: 120 kB / 0.7143 GB, free: 156 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006231/1.363, allocations: 5.134 MB / 0.7193 GB, free: 153.4 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005378/1.363, allocations: 93.7 kB / 0.7194 GB, free: 153.3 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002119/1.365, allocations: 5.352 MB / 0.7246 GB, free: 148.6 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001067/1.366, allocations: 1.449 MB / 0.726 GB, free: 147.3 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003027/1.367, allocations: 132 kB / 0.7262 GB, free: 147.2 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0002911/1.367, allocations: 0.5576 MB / 0.7267 GB, free: 146.7 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00364/1.371, allocations: 2.875 MB / 0.7295 GB, free: 144.2 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004436/1.375, allocations: 5.372 MB / 0.7348 GB, free: 138.2 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004832/1.38, allocations: 4.039 MB / 0.7387 GB, free: 134.4 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.52e-05/1.38, allocations: 31.84 kB / 0.7387 GB, free: 134.3 MB / 490.8 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.01418/1.394, allocations: 9.723 MB / 0.7482 GB, free: 124.5 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.455e-05/1.394, allocations: 45.89 kB / 0.7483 GB, free: 124.5 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000121/1.394, allocations: 84 kB / 0.7484 GB, free: 124.4 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002704/1.397, allocations: 1.136 MB / 0.7495 GB, free: 123.3 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004647/1.402, allocations: 1.443 MB / 0.7509 GB, free: 121.8 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01226/1.414, allocations: 12.51 MB / 0.7631 GB, free: 108.8 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006266/1.42, allocations: 359.6 kB / 0.7634 GB, free: 108.4 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001023/1.421, allocations: 327.9 kB / 0.7637 GB, free: 108.1 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (767): * Single equations (assignments): 758 * 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: 4 * 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: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(10,48.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008706/1.43, allocations: 4.228 MB / 0.7679 GB, free: 103.9 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0017/1.432, allocations: 0.5286 MB / 0.7684 GB, free: 103.3 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01123/1.443, allocations: 7.168 MB / 0.7754 GB, free: 96.06 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005444/1.448, allocations: 4.293 MB / 0.7796 GB, free: 91.72 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.227e-05/1.449, allocations: 12 kB / 0.7796 GB, free: 91.71 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.936e-05/1.449, allocations: 27.92 kB / 0.7796 GB, free: 91.68 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02446/1.473, allocations: 17.1 MB / 0.7963 GB, free: 74.45 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.409e-05/1.473, allocations: 6.188 kB / 0.7963 GB, free: 74.45 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002679/1.476, allocations: 0.6794 MB / 0.797 GB, free: 73.77 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002855/1.479, allocations: 1.185 MB / 0.7981 GB, free: 72.57 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003217/1.479, allocations: 99.97 kB / 0.7982 GB, free: 72.47 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01407/1.493, allocations: 16.03 MB / 0.8139 GB, free: 55.68 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/1.493, allocations: 12 kB / 0.8139 GB, free: 55.66 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01383/1.507, allocations: 10.39 MB / 0.8241 GB, free: 45.11 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002466/1.509, allocations: 1.139 MB / 0.8252 GB, free: 43.94 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006394/1.51, allocations: 79.98 kB / 0.8252 GB, free: 43.86 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002249/1.512, allocations: 219.8 kB / 0.8255 GB, free: 43.65 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005418/1.513, allocations: 303.4 kB / 0.8257 GB, free: 43.35 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002418/1.513, allocations: 124 kB / 0.8259 GB, free: 43.23 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.004766/1.518, allocations: 3.434 MB / 0.8292 GB, free: 39.81 MB / 490.8 MB Notification: Performance of sort global known variables: time 1.5e-07/1.518, allocations: 0 / 0.8292 GB, free: 39.81 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.007257/1.525, allocations: 1.966 MB / 0.8311 GB, free: 37.85 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi) * 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 (356): * Single equations (assignments): 346 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(10,48.0%) 46,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007357/1.526, allocations: 290.5 kB / 0.8314 GB, free: 37.57 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01047/1.536, allocations: 7.749 MB / 0.839 GB, free: 29.74 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/1.537, allocations: 4 kB / 0.839 GB, free: 29.74 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005439/1.542, allocations: 4.142 MB / 0.843 GB, free: 25.52 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006843/1.549, allocations: 1.396 MB / 0.8444 GB, free: 24.14 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.268/1.817, allocations: 24.36 MB / 0.8682 GB, free: 150.1 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007212/1.824, allocations: 7.137 MB / 0.8751 GB, free: 149.2 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001908/1.826, allocations: 462.7 kB / 0.8756 GB, free: 149.2 MB / 490.8 MB Notification: Performance of SimCode: time 2.104e-06/1.826, allocations: 0 / 0.8756 GB, free: 149.2 MB / 490.8 MB Notification: Performance of Templates: time 1.008/2.834, allocations: 0.4934 GB / 1.369 GB, free: 30.02 MB / 0.4949 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches