Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_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.00224/0.00224, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 226.7 MB / 245.5 MB, free: 6.977 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001177/0.001177, allocations: 106.1 kB / 296.7 MB, free: 6.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009258/0.0009257, allocations: 44.11 kB / 356.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.183/0.1839, allocations: 50.45 MB / 407.1 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.0275/0.2115, allocations: 37.19 MB / 444.3 MB, free: 6.445 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01868/0.2302, allocations: 10.15 MB / 454.4 MB, free: 12.27 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007015/0.2372, allocations: 267.1 kB / 454.7 MB, free: 12 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01849/0.2558, allocations: 8.544 MB / 463.2 MB, free: 3.441 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01091/0.2667, allocations: 3.557 MB / 466.8 MB, free: 15.87 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006337/0.2731, allocations: 2.254 MB / 469 MB, free: 13.63 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01767/0.2907, allocations: 14.68 MB / 483.7 MB, free: 14.91 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03376/0.3245, allocations: 20.93 MB / 0.4928 GB, free: 9.82 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009367/0.334, allocations: 6.168 MB / 0.4988 GB, free: 3.633 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1832/0.5172, allocations: 7.471 MB / 0.5061 GB, free: 24.84 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004828/0.5221, allocations: 1.297 MB / 0.5074 GB, free: 24.84 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006171/0.5282, allocations: 1.71 MB / 0.5091 GB, free: 24.84 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004155/0.5324, allocations: 3.277 MB / 0.5123 GB, free: 24.84 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01107/0.5435, allocations: 7.046 MB / 0.5192 GB, free: 24.4 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02127/0.5648, allocations: 26.32 MB / 0.5449 GB, free: 12.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.225e-06/0.5649, allocations: 0 / 0.5449 GB, free: 12.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.5649, allocations: 2.469 kB / 0.5449 GB, free: 12.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0007151/0.5656, allocations: 0 / 0.5449 GB, free: 12.3 MB / 378.7 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.0444/0.61, allocations: 15.94 MB / 0.5604 GB, free: 2.301 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.6101, allocations: 13.86 kB / 0.5604 GB, free: 2.297 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03452/0.6446, allocations: 6.403 MB / 0.5667 GB, free: 14.19 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0196/0.6642, allocations: 8.309 MB / 0.5748 GB, free: 6.188 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009241/0.6652, allocations: 0.907 MB / 0.5757 GB, free: 5.289 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004384/0.6696, allocations: 1.195 MB / 0.5769 GB, free: 4.105 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04687/0.7165, allocations: 18.79 MB / 0.5952 GB, free: 1.254 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005199/0.717, allocations: 19.56 kB / 0.5952 GB, free: 1.238 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003375/0.7204, allocations: 0.4933 MB / 0.5957 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006747/0.7211, allocations: 0.6498 MB / 0.5963 GB, free: 108 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03498/0.7561, allocations: 17.01 MB / 0.613 GB, free: 15.09 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3083/1.064, allocations: 63.92 MB / 0.6754 GB, free: 145.8 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02497/1.089, allocations: 30.06 MB / 0.7047 GB, free: 122.3 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006134/1.096, allocations: 4.083 MB / 0.7087 GB, free: 122.3 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01828/1.114, allocations: 10.5 MB / 0.719 GB, free: 121.1 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.758e-05/1.114, allocations: 78.19 kB / 0.719 GB, free: 121 MB / 490.7 MB Notification: Performance of pre-optimization done (n=408): time 5.42e-06/1.114, allocations: 3.688 kB / 0.719 GB, free: 121 MB / 490.7 MB Notification: Performance of matching and sorting (n=418): time 0.03781/1.152, allocations: 20.36 MB / 0.7389 GB, free: 111.7 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.121e-05/1.152, allocations: 121.4 kB / 0.739 GB, free: 111.6 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006387/1.158, allocations: 5.174 MB / 0.7441 GB, free: 109.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004551/1.159, allocations: 94.73 kB / 0.7442 GB, free: 109.6 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002109/1.161, allocations: 5.351 MB / 0.7494 GB, free: 105.6 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00103/1.162, allocations: 1.445 MB / 0.7508 GB, free: 104.5 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001663/1.164, allocations: 1.248 MB / 0.752 GB, free: 103.9 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 4.712e-05/1.164, allocations: 301.1 kB / 0.7523 GB, free: 103.6 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003578/1.167, allocations: 2.89 MB / 0.7552 GB, free: 102.5 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00438/1.172, allocations: 5.385 MB / 0.7604 GB, free: 97.88 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008348/1.18, allocations: 8.81 MB / 0.769 GB, free: 88.85 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.085e-05/1.18, allocations: 28 kB / 0.769 GB, free: 88.82 MB / 490.7 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.0134/1.193, allocations: 9.767 MB / 0.7786 GB, free: 78.98 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.767e-05/1.194, allocations: 43.98 kB / 0.7786 GB, free: 78.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-05/1.194, allocations: 84 kB / 0.7787 GB, free: 78.85 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002698/1.196, allocations: 1.114 MB / 0.7798 GB, free: 77.73 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004542/1.201, allocations: 1.447 MB / 0.7812 GB, free: 76.28 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01181/1.213, allocations: 12.53 MB / 0.7934 GB, free: 63.22 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004662/1.217, allocations: 351.6 kB / 0.7938 GB, free: 62.88 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005501/1.218, allocations: 320 kB / 0.7941 GB, free: 62.57 MB / 490.7 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.00601/1.224, allocations: 4.244 MB / 0.7982 GB, free: 58.31 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001011/1.225, allocations: 0.5325 MB / 0.7987 GB, free: 57.77 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01046/1.235, allocations: 7.16 MB / 0.8057 GB, free: 50.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005594/1.241, allocations: 4.305 MB / 0.8099 GB, free: 46.15 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.989e-05/1.241, allocations: 19.94 kB / 0.81 GB, free: 46.13 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.792e-05/1.241, allocations: 19.92 kB / 0.81 GB, free: 46.11 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02462/1.266, allocations: 17.1 MB / 0.8267 GB, free: 28.87 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.367e-05/1.266, allocations: 4.594 kB / 0.8267 GB, free: 28.87 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002674/1.269, allocations: 0.6826 MB / 0.8273 GB, free: 28.18 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002959/1.271, allocations: 1.194 MB / 0.8285 GB, free: 26.97 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002842/1.272, allocations: 99.97 kB / 0.8286 GB, free: 26.88 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01426/1.286, allocations: 16.01 MB / 0.8442 GB, free: 10.08 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/1.286, allocations: 8.125 kB / 0.8443 GB, free: 10.07 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2435/1.53, allocations: 49.44 MB / 0.8925 GB, free: 124.6 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002373/1.532, allocations: 1.125 MB / 0.8936 GB, free: 124.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006602/1.533, allocations: 86.91 kB / 0.8937 GB, free: 124.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002406/1.535, allocations: 209.2 kB / 0.8939 GB, free: 124.1 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006632/1.536, allocations: 302.9 kB / 0.8942 GB, free: 124 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002576/1.536, allocations: 129.9 kB / 0.8943 GB, free: 124 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004613/1.541, allocations: 3.473 MB / 0.8977 GB, free: 122.7 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.11e-07/1.541, allocations: 0 / 0.8977 GB, free: 122.7 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007711/1.548, allocations: 2.464 MB / 0.9001 GB, free: 122.5 MB / 490.7 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.0007977/1.549, allocations: 288.4 kB / 0.9004 GB, free: 122.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01024/1.559, allocations: 7.764 MB / 0.908 GB, free: 119.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/1.56, allocations: 3.875 kB / 0.908 GB, free: 119.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005338/1.565, allocations: 4.154 MB / 0.912 GB, free: 117.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00597/1.571, allocations: 1.368 MB / 0.9134 GB, free: 116.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03753/1.608, allocations: 29.5 MB / 0.9422 GB, free: 91.46 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01092/1.619, allocations: 7.508 MB / 0.9495 GB, free: 85.55 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007304/1.627, allocations: 2.013 MB / 0.9515 GB, free: 83.53 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001718/1.628, allocations: 407.4 kB / 0.9519 GB, free: 83.14 MB / 490.7 MB Notification: Performance of SimCode: time 1.122e-06/1.628, allocations: 0 / 0.9519 GB, free: 83.14 MB / 490.7 MB Notification: Performance of Templates: time 0.3101/1.939, allocations: 93.54 MB / 1.043 GB, free: 130.3 MB / 490.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches