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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.0008614/0.0008614, allocations: 95.72 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009484/0.0009483, allocations: 204.3 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 227.2 MB / 245.9 MB, free: 12.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002246/0.0002247, allocations: 4 kB / 306.6 MB, free: 1.637 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1119, allocations: 51.48 MB / 358.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.21/0.322, allocations: 30.35 MB / 388.4 MB, free: 5.375 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01961/0.3416, allocations: 9.868 MB / 398.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006942/0.3486, allocations: 240.3 kB / 398.5 MB, free: 14.09 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007707/0.3563, allocations: 2.017 MB / 400.6 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0136/0.37, allocations: 3.481 MB / 404 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006762/0.3768, allocations: 1.58 MB / 405.6 MB, free: 9.363 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02098/0.3978, allocations: 11.33 MB / 417 MB, free: 1.855 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03778/0.4356, allocations: 20.19 MB / 437.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01068/0.4463, allocations: 4.828 MB / 442 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009514/0.4559, allocations: 5.315 MB / 447.3 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003084/0.459, allocations: 0.789 MB / 448.1 MB, free: 2.602 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005757/0.4647, allocations: 1.117 MB / 449.2 MB, free: 1.484 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003344/0.4681, allocations: 2.422 MB / 451.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005285/0.4734, allocations: 2.636 MB / 454.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02972/0.5032, allocations: 22.59 MB / 476.8 MB, free: 5.758 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.5032, allocations: 7.938 kB / 476.8 MB, free: 5.75 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.168e-06/0.5032, allocations: 0 / 476.8 MB, free: 5.75 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.001134/0.5044, allocations: 0 / 476.8 MB, free: 5.75 MB / 382.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.03926/0.5436, allocations: 13.32 MB / 490.2 MB, free: 8.309 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.5437, allocations: 11.97 kB / 490.2 MB, free: 8.297 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03599/0.5797, allocations: 6.36 MB / 496.5 MB, free: 1.914 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01958/0.5993, allocations: 8.213 MB / 0.4929 GB, free: 9.625 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000929/0.6003, allocations: 0.9108 MB / 0.4938 GB, free: 8.711 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004131/0.6044, allocations: 1.191 MB / 0.495 GB, free: 7.52 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04296/0.6474, allocations: 18.6 MB / 0.5131 GB, free: 4.816 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004109/0.6479, allocations: 19.8 kB / 0.5132 GB, free: 4.797 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00255/0.6504, allocations: 0.4921 MB / 0.5136 GB, free: 4.305 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006642/0.6511, allocations: 0.6576 MB / 0.5143 GB, free: 3.645 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03287/0.684, allocations: 16.93 MB / 0.5308 GB, free: 2.688 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4891/1.173, allocations: 64 MB / 0.5933 GB, free: 79.86 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02468/1.198, allocations: 29.99 MB / 0.6226 GB, free: 51.41 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01899/1.217, allocations: 10.15 MB / 0.6325 GB, free: 41.38 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.653e-05/1.217, allocations: 77.84 kB / 0.6326 GB, free: 41.29 MB / 446.1 MB Notification: Performance of pre-optimization done (n=416): time 5.37e-06/1.217, allocations: 0 / 0.6326 GB, free: 41.29 MB / 446.1 MB Notification: Performance of matching and sorting (n=426): time 0.04208/1.259, allocations: 20.56 MB / 0.6527 GB, free: 20.32 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.034e-05/1.259, allocations: 128.7 kB / 0.6528 GB, free: 20.18 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006565/1.266, allocations: 5.028 MB / 0.6577 GB, free: 15.16 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008008/1.267, allocations: 97.7 kB / 0.6578 GB, free: 15.05 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002617/1.269, allocations: 5.345 MB / 0.663 GB, free: 9.676 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002146/1.271, allocations: 1.472 MB / 0.6645 GB, free: 8.215 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006233/1.272, allocations: 128 kB / 0.6646 GB, free: 8.09 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000357/1.272, allocations: 0.5631 MB / 0.6651 GB, free: 7.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004061/1.276, allocations: 2.906 MB / 0.668 GB, free: 4.609 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004969/1.281, allocations: 5.373 MB / 0.6732 GB, free: 14.08 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005772/1.287, allocations: 4.071 MB / 0.6772 GB, free: 9.992 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.686e-05/1.287, allocations: 28 kB / 0.6772 GB, free: 9.965 MB / 462.1 MB Notification: Performance of matching and sorting (n=841) (initialization): time 0.01581/1.303, allocations: 9.786 MB / 0.6868 GB, free: 108 kB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.485e-05/1.303, allocations: 40.66 kB / 0.6868 GB, free: 68 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001361/1.303, allocations: 84.05 kB / 0.6869 GB, free: 15.98 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002997/1.306, allocations: 1.132 MB / 0.688 GB, free: 14.83 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005609/1.312, allocations: 1.458 MB / 0.6894 GB, free: 13.37 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01525/1.327, allocations: 12.73 MB / 0.7018 GB, free: 120 kB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004862/1.332, allocations: 363.5 kB / 0.7022 GB, free: 15.76 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006499/1.333, allocations: 324 kB / 0.7025 GB, free: 15.45 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * 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 (774): * Single equations (assignments): 765 * 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%) 5,(1,100.0%) 1,(1,100.0%) 1,(10,52.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006751/1.339, allocations: 4.236 MB / 0.7066 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00111/1.341, allocations: 0.5325 MB / 0.7072 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01259/1.353, allocations: 7.262 MB / 0.7143 GB, free: 3.293 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2226/1.576, allocations: 4.325 MB / 0.7185 GB, free: 156.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.065e-05/1.576, allocations: 14.03 kB / 0.7185 GB, free: 156.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001391/1.576, allocations: 25.38 kB / 0.7185 GB, free: 156.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03496/1.611, allocations: 17.18 MB / 0.7353 GB, free: 150.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.229e-05/1.611, allocations: 8.406 kB / 0.7353 GB, free: 150.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003281/1.614, allocations: 0.7063 MB / 0.736 GB, free: 150.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003436/1.618, allocations: 1.17 MB / 0.7371 GB, free: 150.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006157/1.618, allocations: 100.7 kB / 0.7372 GB, free: 150.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01543/1.634, allocations: 16.26 MB / 0.7531 GB, free: 138.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/1.634, allocations: 13.73 kB / 0.7531 GB, free: 138.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01601/1.65, allocations: 11.16 MB / 0.764 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003052/1.653, allocations: 1.131 MB / 0.7651 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001053/1.654, allocations: 83.12 kB / 0.7652 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002605/1.657, allocations: 221.8 kB / 0.7654 GB, free: 132.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006126/1.657, allocations: 312.4 kB / 0.7657 GB, free: 132.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002732/1.658, allocations: 128.4 kB / 0.7658 GB, free: 132.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005065/1.663, allocations: 3.352 MB / 0.7691 GB, free: 131.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.21e-07/1.663, allocations: 0 / 0.7691 GB, free: 131.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007792/1.671, allocations: 1.966 MB / 0.771 GB, free: 130.5 MB / 494.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 (364): * Single equations (assignments): 354 * 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,52.0%) 46,(1,100.0%) 5,(1,100.0%) 1,(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.0009792/1.672, allocations: 297.4 kB / 0.7713 GB, free: 130.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01119/1.683, allocations: 7.813 MB / 0.7789 GB, free: 123.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/1.683, allocations: 0 / 0.7789 GB, free: 123.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00582/1.689, allocations: 4.146 MB / 0.783 GB, free: 119.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006275/1.695, allocations: 1.33 MB / 0.7843 GB, free: 118.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03376/1.729, allocations: 24.67 MB / 0.8084 GB, free: 94.33 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007643/1.736, allocations: 7.581 MB / 0.8158 GB, free: 86.71 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005953/1.742, allocations: 2.009 MB / 0.8177 GB, free: 84.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001098/1.743, allocations: 403.4 kB / 0.8181 GB, free: 84.3 MB / 494.1 MB Notification: Performance of SimCode: time 8.72e-07/1.743, allocations: 0 / 0.8181 GB, free: 84.3 MB / 494.1 MB Notification: Performance of Templates: time 0.2962/2.04, allocations: 78.8 MB / 0.8951 GB, free: 150.6 MB / 494.1 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/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