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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 221.3 MB / 235.5 MB, free: 2.961 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008665/0.0008665, allocations: 89.84 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.234e-05/2.237e-05, allocations: 0 / 343.9 MB, free: 4.289 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1135, allocations: 50.42 MB / 394.3 MB, free: 1.828 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4499/0.5635, allocations: 158.9 MB / 0.5402 GB, free: 8.434 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002933/0.5638, allocations: 105.5 kB / 0.5403 GB, free: 8.336 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.575/2.139, allocations: 387.5 MB / 0.9187 GB, free: 38.73 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.535e-06/2.139, allocations: 3.562 kB / 0.9187 GB, free: 38.73 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001139/2.14, allocations: 279 kB / 0.919 GB, free: 38.7 MB / 474.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.05629/2.197, allocations: 11.15 MB / 0.9299 GB, free: 35.21 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.129e-05/2.197, allocations: 7.5 kB / 0.9299 GB, free: 35.21 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03215/2.229, allocations: 4.563 MB / 0.9343 GB, free: 34.54 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02733/2.256, allocations: 9.738 MB / 0.9438 GB, free: 33.34 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001139/2.257, allocations: 0.8764 MB / 0.9447 GB, free: 33.31 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0055/2.263, allocations: 1.168 MB / 0.9458 GB, free: 33.3 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05514/2.318, allocations: 18.32 MB / 0.9637 GB, free: 31.81 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00078/2.319, allocations: 16.25 kB / 0.9637 GB, free: 31.81 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00641/2.325, allocations: 0.4984 MB / 0.9642 GB, free: 31.81 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001557/2.327, allocations: 0.799 MB / 0.965 GB, free: 31.78 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04291/2.37, allocations: 15.55 MB / 0.9802 GB, free: 31.67 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1483/2.518, allocations: 61.25 MB / 1.04 GB, free: 13.45 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3813/2.9, allocations: 29.62 MB / 1.069 GB, free: 66.64 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00839/2.908, allocations: 4 MB / 1.073 GB, free: 66.59 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01992/2.928, allocations: 9.936 MB / 1.083 GB, free: 65.84 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.487e-05/2.928, allocations: 76.62 kB / 1.083 GB, free: 65.79 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=410): time 7.644e-06/2.928, allocations: 0 / 1.083 GB, free: 65.79 MB / 0.4948 GB Notification: Performance of matching and sorting (n=420): time 0.03255/2.961, allocations: 15.18 MB / 1.097 GB, free: 62.39 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.121e-05/2.961, allocations: 124.5 kB / 1.098 GB, free: 62.3 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01156/2.972, allocations: 4.508 MB / 1.102 GB, free: 61.94 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001012/2.974, allocations: 94.3 kB / 1.102 GB, free: 61.91 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004865/2.978, allocations: 5.352 MB / 1.107 GB, free: 59.2 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002232/2.981, allocations: 1.448 MB / 1.109 GB, free: 58.29 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001166/2.982, allocations: 128.5 kB / 1.109 GB, free: 58.29 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005107/2.982, allocations: 0.5621 MB / 1.109 GB, free: 57.98 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004544/2.987, allocations: 2.812 MB / 1.112 GB, free: 57.96 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005894/2.993, allocations: 5.278 MB / 1.117 GB, free: 54.96 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007029/3, allocations: 4.016 MB / 1.121 GB, free: 54.89 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001497/3, allocations: 25.89 kB / 1.121 GB, free: 54.89 MB / 0.4948 GB Notification: Performance of matching and sorting (n=835) (initialization): time 0.02156/3.022, allocations: 9.612 MB / 1.131 GB, free: 54.29 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000168/3.022, allocations: 38.97 kB / 1.131 GB, free: 54.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001978/3.022, allocations: 84.19 kB / 1.131 GB, free: 54.29 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003373/3.025, allocations: 1.129 MB / 1.132 GB, free: 54.24 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005947/3.031, allocations: 1.462 MB / 1.133 GB, free: 54.24 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01458/3.046, allocations: 12.47 MB / 1.145 GB, free: 48.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006528/3.053, allocations: 360.8 kB / 1.146 GB, free: 48.88 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001627/3.054, allocations: 323 kB / 1.146 GB, free: 48.88 MB / 0.4948 GB 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (768): * Single equations (assignments): 759 * 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,50.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002944/3.057, allocations: 0.5142 MB / 1.147 GB, free: 48.71 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002325/3.06, allocations: 0.534 MB / 1.147 GB, free: 48.44 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01609/3.076, allocations: 7.052 MB / 1.154 GB, free: 47.91 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008186/3.084, allocations: 4.212 MB / 1.158 GB, free: 47.74 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.515e-05/3.084, allocations: 17.84 kB / 1.158 GB, free: 47.74 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.697e-05/3.084, allocations: 27.22 kB / 1.158 GB, free: 47.74 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04254/3.127, allocations: 17.04 MB / 1.175 GB, free: 40.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.271e-05/3.127, allocations: 3.438 kB / 1.175 GB, free: 40.69 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003308/3.13, allocations: 0.6874 MB / 1.175 GB, free: 40.67 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003509/3.134, allocations: 1.19 MB / 1.177 GB, free: 40.37 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008624/3.135, allocations: 98.88 kB / 1.177 GB, free: 40.31 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01773/3.152, allocations: 16.03 MB / 1.192 GB, free: 28.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.406e-06/3.152, allocations: 9.969 kB / 1.192 GB, free: 28.4 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.019/3.171, allocations: 10.84 MB / 1.203 GB, free: 23 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003744/3.175, allocations: 1.134 MB / 1.204 GB, free: 22.29 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002361/3.177, allocations: 92.72 kB / 1.204 GB, free: 22.22 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0045/3.182, allocations: 223.4 kB / 1.204 GB, free: 22.16 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001303/3.183, allocations: 305.4 kB / 1.205 GB, free: 22.12 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007912/3.184, allocations: 131.6 kB / 1.205 GB, free: 22.09 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007618/3.192, allocations: 3.362 MB / 1.208 GB, free: 20.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.72e-07/3.192, allocations: 0 / 1.208 GB, free: 20.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01208/3.204, allocations: 2.042 MB / 1.21 GB, free: 19.12 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (357): * Single equations (assignments): 347 * 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,50.0%) 46,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002179/3.206, allocations: 0.9186 MB / 1.211 GB, free: 18.39 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01393/3.22, allocations: 7.616 MB / 1.218 GB, free: 11.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/3.22, allocations: 4 kB / 1.218 GB, free: 11.59 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007334/3.227, allocations: 4.047 MB / 1.222 GB, free: 7.906 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007934/3.235, allocations: 1.314 MB / 1.224 GB, free: 6.898 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04684/3.282, allocations: 17.35 MB / 1.241 GB, free: 7.414 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01215/3.295, allocations: 7.58 MB / 1.248 GB, free: 1.75 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.009942/3.305, allocations: 2.597 MB / 1.251 GB, free: 1.637 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3462/3.651, allocations: 453.3 kB / 1.251 GB, free: 68.23 MB / 0.5105 GB Notification: Performance of SimCode: time 2.605e-06/3.651, allocations: 2.375 kB / 1.251 GB, free: 68.23 MB / 0.5105 GB Notification: Performance of Templates: time 0.1574/3.808, allocations: 85.64 MB / 1.335 GB, free: 64.07 MB / 0.5105 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/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_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