Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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.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_4.0.0_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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 93.47 kB / 17.31 MB, free: 6.535 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.001378/0.001378, allocations: 175.4 kB / 18.21 MB, free: 5.684 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.102/1.102, allocations: 223.3 MB / 242.3 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000201/0.000201, allocations: 11.94 kB / 302.1 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06909/0.06931, allocations: 50.41 MB / 352.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.1434/0.2127, allocations: 35.16 MB / 387.7 MB, free: 8.059 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01371/0.2264, allocations: 9.845 MB / 397.5 MB, free: 2.145 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002876/0.2293, allocations: 253.3 kB / 397.8 MB, free: 2.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003778/0.2331, allocations: 2.378 MB / 400.2 MB, free: 1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007155/0.2403, allocations: 3.545 MB / 403.7 MB, free: 14.4 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003801/0.2441, allocations: 1.997 MB / 405.7 MB, free: 12.81 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01212/0.2562, allocations: 14.3 MB / 420 MB, free: 2.344 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02945/0.2857, allocations: 24.59 MB / 444.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005951/0.2917, allocations: 5.102 MB / 449.7 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005747/0.2974, allocations: 6.13 MB / 455.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001009/0.2984, allocations: 0.793 MB / 456.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002224/0.3007, allocations: 1.187 MB / 457.8 MB, free: 12.35 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001726/0.3024, allocations: 2.564 MB / 460.4 MB, free: 9.773 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004896/0.3073, allocations: 6.213 MB / 466.6 MB, free: 3.523 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01563/0.3229, allocations: 22.67 MB / 489.2 MB, free: 12.79 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.323, allocations: 0 / 489.2 MB, free: 12.79 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.323, allocations: 4 kB / 489.2 MB, free: 12.79 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003067/0.3233, allocations: 0 / 489.2 MB, free: 12.79 MB / 398.1 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.02732/0.3506, allocations: 13.24 MB / 0.4907 GB, free: 15.43 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.3507, allocations: 12.03 kB / 0.4907 GB, free: 15.42 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02995/0.3806, allocations: 6.401 MB / 0.497 GB, free: 9 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0112/0.3918, allocations: 8.296 MB / 0.5051 GB, free: 0.625 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005319/0.3924, allocations: 0.9072 MB / 0.506 GB, free: 15.71 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00165/0.394, allocations: 1.199 MB / 0.5071 GB, free: 14.52 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2743/0.6683, allocations: 18.79 MB / 0.5255 GB, free: 108.4 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002444/0.6686, allocations: 20.61 kB / 0.5255 GB, free: 108.4 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00106/0.6697, allocations: 0.4938 MB / 0.526 GB, free: 108.3 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005015/0.6702, allocations: 0.6519 MB / 0.5266 GB, free: 108.3 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02356/0.6937, allocations: 17.03 MB / 0.5432 GB, free: 101.8 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05748/0.7512, allocations: 62.83 MB / 0.6046 GB, free: 50.29 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01771/0.769, allocations: 29.73 MB / 0.6336 GB, free: 17.09 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004177/0.7732, allocations: 4.082 MB / 0.6376 GB, free: 13 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01112/0.7843, allocations: 10.22 MB / 0.6476 GB, free: 2.797 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/0.7844, allocations: 77.81 kB / 0.6477 GB, free: 2.711 MB / 430.1 MB Notification: Performance of pre-optimization done (n=408): time 4.698e-06/0.7844, allocations: 0 / 0.6477 GB, free: 2.711 MB / 430.1 MB Notification: Performance of matching and sorting (n=418): time 0.03328/0.8177, allocations: 20.46 MB / 0.6676 GB, free: 13.92 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.798e-05/0.8177, allocations: 124.4 kB / 0.6678 GB, free: 13.77 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005886/0.8236, allocations: 5.157 MB / 0.6728 GB, free: 8.625 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002149/0.8238, allocations: 97.7 kB / 0.6729 GB, free: 8.523 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002719/0.8266, allocations: 5.336 MB / 0.6781 GB, free: 3.152 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008974/0.8275, allocations: 1.45 MB / 0.6795 GB, free: 1.715 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006045/0.8281, allocations: 0.5002 MB / 0.68 GB, free: 1.207 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.876e-05/0.8282, allocations: 301.1 kB / 0.6803 GB, free: 0.9102 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00369/0.8319, allocations: 2.898 MB / 0.6831 GB, free: 14.01 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004959/0.8368, allocations: 5.392 MB / 0.6884 GB, free: 7.457 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1539/0.9907, allocations: 8.824 MB / 0.697 GB, free: 141.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-05/0.9908, allocations: 27.12 kB / 0.697 GB, free: 141.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.01385/1.005, allocations: 9.785 MB / 0.7066 GB, free: 138.7 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.219e-05/1.005, allocations: 40.28 kB / 0.7066 GB, free: 138.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000119/1.005, allocations: 80.94 kB / 0.7067 GB, free: 138.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002571/1.007, allocations: 1.118 MB / 0.7078 GB, free: 138.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004242/1.012, allocations: 1.449 MB / 0.7092 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01134/1.023, allocations: 12.53 MB / 0.7214 GB, free: 129.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003739/1.027, allocations: 354.5 kB / 0.7218 GB, free: 129.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003438/1.027, allocations: 325.6 kB / 0.7221 GB, free: 129.5 MB / 478.1 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 (not torn): 1 * 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): 1 system {(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 {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004642/1.032, allocations: 4.23 MB / 0.7262 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006901/1.033, allocations: 0.5317 MB / 0.7267 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009251/1.042, allocations: 7.186 MB / 0.7338 GB, free: 124.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005044/1.047, allocations: 4.313 MB / 0.738 GB, free: 122.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.615e-05/1.047, allocations: 15.56 kB / 0.738 GB, free: 122.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-05/1.047, allocations: 22.55 kB / 0.738 GB, free: 122.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01785/1.065, allocations: 17.11 MB / 0.7547 GB, free: 114.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/1.065, allocations: 7.312 kB / 0.7547 GB, free: 114.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00232/1.067, allocations: 0.6839 MB / 0.7554 GB, free: 114.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002467/1.07, allocations: 1.182 MB / 0.7566 GB, free: 113.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000198/1.07, allocations: 102 kB / 0.7566 GB, free: 113.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01239/1.082, allocations: 16.04 MB / 0.7723 GB, free: 97.05 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/1.082, allocations: 13.58 kB / 0.7723 GB, free: 97.04 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01102/1.093, allocations: 10.43 MB / 0.7825 GB, free: 86.74 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00147/1.095, allocations: 1.138 MB / 0.7836 GB, free: 85.59 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005054/1.095, allocations: 87.92 kB / 0.7837 GB, free: 85.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002067/1.097, allocations: 223.8 kB / 0.7839 GB, free: 85.28 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004301/1.098, allocations: 303.3 kB / 0.7842 GB, free: 84.98 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000201/1.098, allocations: 120 kB / 0.7843 GB, free: 84.87 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003574/1.102, allocations: 3.465 MB / 0.7877 GB, free: 81.42 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.142e-06/1.102, allocations: 4 kB / 0.7877 GB, free: 81.41 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004477/1.106, allocations: 1.969 MB / 0.7896 GB, free: 79.45 MB / 478.1 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 (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 {(1,1,100.0%), (10,46,48.0%), (1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004407/1.106, allocations: 285.8 kB / 0.7899 GB, free: 79.18 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008143/1.115, allocations: 7.793 MB / 0.7975 GB, free: 71.31 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/1.115, allocations: 4.062 kB / 0.7975 GB, free: 71.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004442/1.119, allocations: 4.162 MB / 0.8016 GB, free: 67.06 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007285/1.126, allocations: 1.347 MB / 0.8029 GB, free: 65.75 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02312/1.149, allocations: 25.5 MB / 0.8278 GB, free: 40.16 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004739/1.154, allocations: 7.139 MB / 0.8348 GB, free: 32.98 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001291/1.156, allocations: 459.3 kB / 0.8352 GB, free: 32.54 MB / 478.1 MB Notification: Performance of SimCode: time 1.272e-06/1.156, allocations: 0 / 0.8352 GB, free: 32.54 MB / 478.1 MB Notification: Performance of Templates: time 0.7611/1.917, allocations: 0.4923 GB / 1.328 GB, free: 117.7 MB / 0.5138 GB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Mains/SMPM_Mains.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches